strict_fusion
-
class torch.jit.strict_fusion[source] -
Этот класс возвращает ошибку, если не все узлы были объединены во время вывода или символически дифференцированы во время обучения.
Пример:
Принудительное объединение сложений.
@torch.jit.script def foo(x): with torch.jit.strict_fusion(): return x + x + x
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.jit.strict_fusion.html