Autograd cannot create the backward pass without a grad_fn and you should get an error like:
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn

Did you detach the tensor manually from the computation graph or what is your exact use case?