mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-07-14 11:17:47 +08:00
ran isort
isort --recursive --atomic --apply pts
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import torch
|
||||
import torch.nn as nn
|
||||
|
||||
|
||||
class LambdaLayer(nn.Module):
|
||||
def __init__(self, function):
|
||||
super().__init__()
|
||||
self._func = function
|
||||
|
||||
def forward(self, x, *args):
|
||||
return self._func(x, *args)
|
||||
Reference in New Issue
Block a user