tensordict icon indicating copy to clipboard operation
tensordict copied to clipboard

Do not set global validate_args

Open mctigger opened this issue 1 year ago • 0 comments

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.

https://github.com/pytorch/tensordict/pull/872

mctigger avatar Jul 11 '24 11:07 mctigger