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
9c88b6cb
"tests/vscode:/vscode.git/clone" did not exist on "44c866a3e3af2c0020458d08e63ce5e5a303d448"
Unverified
Commit
9c88b6cb
authored
Jun 07, 2023
by
Hongxin Liu
Committed by
GitHub
Jun 07, 2023
Browse files
[lazy] fix compatibility problem on torch 1.13 (#3911)
parent
b5f05663
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
colossalai/lazy/lazy_init.py
colossalai/lazy/lazy_init.py
+1
-1
No files found.
colossalai/lazy/lazy_init.py
View file @
9c88b6cb
...
...
@@ -37,7 +37,7 @@ _EARLY_MATERIALIZED_OPS = ['__getitem__', 'split']
# If your intent is to change the metadata of a Tensor (such as sizes / strides / storage / storage_offset)
# without autograd tracking the change, remove the .data / .detach() call and wrap the change in a `with torch.no_grad():` block.
# These ops cannot be unwrapped using .data
_CHANGE_META_OPS
=
[
'_cudnn_rnn_flatten_weight'
,
'requires_grad_'
,
'__get__'
,
'__set__'
]
_CHANGE_META_OPS
=
[
'_cudnn_rnn_flatten_weight'
,
'requires_grad_'
,
'__get__'
,
'__set__'
,
'numel'
,
'size'
,
'dim'
]
_LEGACY_TENSOR_CONSTRUCTOR
=
{
'FloatTensor'
:
torch
.
float
,
...
...
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