Open enesmsahin opened 2 years ago
os.makedirs("/results")
tensor_batch
inference(im, model, class_list, args)
torch._C.set_grad_enabled()
torch.set_grad_enabled()
AttributeError
AttributeError: module 'torch._C' has no attribute 'set_grad_enabled'
os.makedirs("/results")
.tensor_batch
frominference(im, model, class_list, args)
function since it is to be used in example loss calculation.torch._C.set_grad_enabled()
calls withtorch.set_grad_enabled()
since it throws followingAttributeError
with PyTorch version 1.10.1: