Open mctigger opened 1 month ago
https://github.com/pytorch/tensordict/blob/02ff68645a1e0950791125671cd9e88ee2592762/tensordict/nn/distributions/continuous.py#L25
Is there a reason for this line? I think it should be removed. validate_args is set to False when python is run in optimized mode (python -O) and True. The default should not be changed since errors may not be caught while developing.
False
python -O
True
https://github.com/pytorch/tensordict/pull/872
https://github.com/pytorch/tensordict/blob/02ff68645a1e0950791125671cd9e88ee2592762/tensordict/nn/distributions/continuous.py#L25
Is there a reason for this line? I think it should be removed. validate_args is set to
False
when python is run in optimized mode (python -O
) andTrue
. The default should not be changed since errors may not be caught while developing.https://github.com/pytorch/tensordict/pull/872