mirror of https://github.com/Jittor/Jittor
allow the input of `concat` to be tuple`
This commit is contained in:
parent
a5c37bd58e
commit
7b142f51a6
|
@ -59,7 +59,7 @@ class ConcatACL(jt.Function):
|
||||||
super(ConcatACL, self).__init__()
|
super(ConcatACL, self).__init__()
|
||||||
|
|
||||||
def __call__(self, *args):
|
def __call__(self, *args):
|
||||||
assert isinstance(args[0], list)
|
assert isinstance(args[0], (list, tuple))
|
||||||
assert isinstance(args[1], int)
|
assert isinstance(args[1], int)
|
||||||
if jt.flags.no_grad:
|
if jt.flags.no_grad:
|
||||||
return self.execute(*args)
|
return self.execute(*args)
|
||||||
|
|
Loading…
Reference in New Issue