Spec-Zone.ru › PyTorch 1

torch.is_grad_enabled

torch.is_grad_enabled()

Returns True if grad mode is currently enabled.

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/1.13/generated/torch.is_grad_enabled.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API