
Comment: An exception occurred in this state: Traceback (most recent call last):

 "/usr/lib/pymodules/python2.7/salt/state.py", line 1371, in call
**cdata['kwargs'])

 "/usr/lib/pymodules/python2.7/salt/states/file.py", line 2534, in append
for chunk in text:
TypeError: 'NoneType' object is not iterable
Changes:

Traceback (most recent call last):


 "tmp.py", line 13, in <module>

loss = criterion(output, label)


 "/home/hanxiao/miniconda3/envs/DFF/lib/python3.8/site-packages/torch/nn/modules/module.py", line 722, in _call_impl

result = self.forward(*input, **kwargs)


 "/home/hanxiao/miniconda3/envs/DFF/lib/python3.8/site-packages/encoding/parallel.py", line 132, in forward

outputs = _criterion_parallel_apply(replicas, inputs, targets, kwargs)


 "/home/hanxiao/miniconda3/envs/DFF/lib/python3.8/site-packages/encoding/parallel.py", line 185, in _criterion_parallel_apply

raise output


 "/home/hanxiao/miniconda3/envs/DFF/lib/python3.8/site-packages/encoding/parallel.py", line 160, in _worker

output = module(*(input + target), **kwargs)
TypeError: unsupported operand type(s) for +: 'Tensor' and 'tuple'
