Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
e5ab6be7
Unverified
Commit
e5ab6be7
authored
Oct 10, 2022
by
jim
Committed by
GitHub
Oct 10, 2022
Browse files
[hotfix[ fix colotensor.type() raise NotImplementedError (#1682)
parent
3b2a59b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
colossalai/nn/_ops/element_wise.py
colossalai/nn/_ops/element_wise.py
+2
-0
No files found.
colossalai/nn/_ops/element_wise.py
View file @
e5ab6be7
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment