Traceback (most recent call last):


 "/Users/glennjocher/opt/anaconda3/envs/env1/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3331, in run_code

exec(code_obj, self.user_global_ns, self.user_ns)


 "<ipython-input-5-be04c762b799>", line 5, in <module>

c = a / 0
RuntimeError: ZeroDivisionError

Traceback (most recent call last):


 "model_convert.py", line 97, in <module>

traced_script_module = torch.jit.trace(net,data)


 "/home/zhongzhiwei/anaconda3/envs/tsm/lib/python3.6/site-packages/torch/jit/__init__.py", line 636, in trace

var_lookup_fn, _force_outplace)


 "/home/zhongzhiwei/anaconda3/envs/tsm/lib/python3.6/site-packages/torch/nn/modules/module.py", line 487, in __call__

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


 "/home/zhongzhiwei/anaconda3/envs/tsm/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in _slow_forward

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


 "/home/zhongzhiwei/video_analyze/temporal-shift-module/ops/models.py", line 286, in forward

output = self.consensus(base_out)


 "/home/zhongzhiwei/anaconda3/envs/tsm/lib/python3.6/site-packages/torch/nn/modules/module.py", line 487, in __call__

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


 "/home/zhongzhiwei/anaconda3/envs/tsm/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in _slow_forward

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


 "/home/zhongzhiwei/video_analyze/temporal-shift-module/ops/basic_ops.py", line 46, in forward

return SegmentConsensus(self.consensus_type, self.dim)(input)
RuntimeError: Attempted to trace SegmentConsensus, but tracing of legacy functions is not supported
