torch.fx.experimental.symbolic_shapes.guard_or_false
-
torch.fx.experimental.symbolic_shapes.guard_or_false(a)[исходный код] -
Попытаться установить ограничение для a; если возникла ошибка, связанная с зависимостью от данных, просто вернуть false.
- Тип возвращаемого значения:
© 2026, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.14/generated/torch.fx.experimental.symbolic_shapes.guard_or_false.html