I get following error when backward() is called from my code:
torch/autograd/init.py in backward(variables, grad_variables, retain_graph, create_graph, retain_variables)
Variable._execution_engine.run_backward(
variables, grad_variables, retain_graph)
RuntimeError: Expected object of type Variable[torch.cuda.ByteTensor] but found type Variable[torch.ByteTensor] for argument #1 ‘mask’
I am not using any ByteTensor variable in my code, so not able to understand this.
Any help is appreciated.