ShapeEnvSettings¶
- class torch.fx.experimental.symbolic_shapes.ShapeEnvSettings(allow_scalar_outputs, allow_dynamic_output_shape_ops, assume_static_by_default, specialize_zero_one, duck_shape, prefer_deferred_runtime_asserts_over_guards, allow_complex_guards_as_runtime_asserts)[源代码]¶
封装可能影响 FakeTensor 调度的所有形状环境设置。在创建调度缓存键时使用。