目录

torch.utils.deterministic

torch.utils.deterministic.fill_uninitialized_memory

A bool that, if True, causes uninitialized memory to be filled with a known value when torch.use_deterministic_algorithms() is set to True. Floating point and complex values are set to NaN, and integer values are set to the maximum value.

Default: True

Filling uninitialized memory is detrimental to performance. So if your program is valid and does not use uninitialized memory as the input to an operation, then this setting can be turned off for better performance and still be deterministic.

The following operations will fill uninitialized memory when this setting is turned on:

文档

访问 PyTorch 的全面开发人员文档

查看文档

教程

获取面向初学者和高级开发人员的深入教程

查看教程

资源

查找开发资源并解答您的问题

查看资源