Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Nov 14, 2024
1 parent db2b5e6 commit 4d5b38c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tensordict/_td.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,10 @@ def reduction(val):
)

def reduction(val):
print(type(val), reduction_name)
print(val.device)
print(getattr(val, reduction_name))
print(kwargs)
return getattr(val, reduction_name)(**kwargs)

return self._fast_apply(
Expand Down
2 changes: 1 addition & 1 deletion tensordict/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10965,7 +10965,7 @@ def set_(x):
tgt = mb_unwrap_functional_tensor(new_thing)
src = mb_unwrap_functional_tensor(ragged_source)
tgt.nested_int_memo = src.nested_int_memo
else:
elif new_thing is not None:
_tensor_symint_registry[new_thing] = _tensor_symint_registry[
ragged_source
]
Expand Down

0 comments on commit 4d5b38c

Please sign in to comment.