z pochodnią.no_grad () if

  with torch.set_grad_enabled(not no_grad_condition):
    out=network(input)
Bored Coder