pytorch_backend
pytorch_backend copied to clipboard
Enable configurable deterministic algorithm flag
This PR introduces a new model configuration parameter, ENABLE_DETERMINISTIC_ALGORITHMS, to control whether PyTorch runs with deterministic algorithms enabled.
- Adds
enable_deterministic_algorithms_flag inModelState - Parses the flag from model configuration
- Calls
at::globalContext().setDeterministicAlgorithms(...)during model execution - Updates
README.mdto document the new parameter
When enabled, operations without deterministic implementations will raise errors. Default behavior remains unchanged (disabled).