mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-09-10 12:37:53 +08:00
upstream fix for transform chain
This commit is contained in:
@@ -33,7 +33,7 @@ class Transformation(ABC):
|
||||
return data_it # default is to pass through without estimation
|
||||
|
||||
def chain(self, other: "Transformation") -> "Chain":
|
||||
return Chain(self, other)
|
||||
return Chain([self, other])
|
||||
|
||||
def __add__(self, other: "Transformation") -> "Chain":
|
||||
return self.chain(other)
|
||||
|
||||
Reference in New Issue
Block a user