Closed bqth29 closed 9 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
775cc10
) 100.00% compared to head (9885b97
) 100.00%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
💬 Pull Request Description
The
get/set/reset_env
functions have been moved to their own file namedenvironment.py
and all the dtype and device occurences in methods signatures have been made optional with a default value toNone
.✔️ Check list
🚀 New features
None
🐞 Bug fixes
None
📣 Supplementary information
The configure default values for the tensors' dtype and device, it is recommanded to ather use PyTorch's
torch.set_default_dtype
andtorch.set_default_device
functions.We considered the possibility of configuring these values via the SB environment directly, but this would risk creating a mismatch between the information stored in the environment and the actual default value, should a call be made to one of PyTorch's functions in the meantime.