Unverified Commit e5ab6be7 authored by jim's avatar jim Committed by GitHub
Browse files

[hotfix[ fix colotensor.type() raise NotImplementedError (#1682)

parent 3b2a59b0
......@@ -18,6 +18,8 @@ def register_elementwise_op(op):
output = op(input_tensor, *args, **kwargs)
if isinstance(input_tensor, ColoTensor):
if isinstance(output, str):
return output
if not isinstance(output, torch.Tensor):
raise NotImplementedError
return ColoTensor.from_torch_tensor(output,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment