You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "test_HigherHRNet_mlu.py", line 394, in <module>
higherhrnet = HigherHRNet(args, cfg)
File "test_HigherHRNet_mlu.py", line 87, in __init__
ts = torch.jit.trace(self.model, trace_input, check_trace=False)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 858, in trace
check_tolerance, _force_outplace, _module_class)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 991, in trace_module
module = make_module(mod, _module_class, _compilation_unit, tuple(inputs.keys()))
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 709, in make_module
return _module_class(mod, _compilation_unit=_compilation_unit)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 1462, in init_then_register
original_init(self, *args, **kwargs)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 1462, in init_then_register
original_init(self, *args, **kwargs)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 1733, in __init__
self._modules[name] = make_module(submodule, TracedModule, _compilation_unit)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 709, in make_module
return _module_class(mod, _compilation_unit=_compilation_unit)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 1462, in init_then_register
original_init(self, *args, **kwargs)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 1733, in __init__
self._modules[name] = make_module(submodule, TracedModule, _compilation_unit)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 709, in make_module
return _module_class(mod, _compilation_unit=_compilation_unit)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 1462, in init_then_register
original_init(self, *args, **kwargs)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 1733, in __init__
self._modules[name] = make_module(submodule, TracedModule, _compilation_unit)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 709, in make_module
return _module_class(mod, _compilation_unit=_compilation_unit)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 1462, in init_then_register
original_init(self, *args, **kwargs)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 1733, in __init__
self._modules[name] = make_module(submodule, TracedModule, _compilation_unit)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 709, in make_module
return _module_class(mod, _compilation_unit=_compilation_unit)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 1462, in init_then_register
original_init(self, *args, **kwargs)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 1733, in __init__
self._modules[name] = make_module(submodule, TracedModule, _compilation_unit)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 709, in make_module
return _module_class(mod, _compilation_unit=_compilation_unit)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 1462, in init_then_register
original_init(self, *args, **kwargs)
File "/torch/venv3/pytorch/lib/python3.6/site-packages/torch/jit/__init__.py", line 1710, in __init__
assert(isinstance(orig, torch.nn.Module))
AssertionError
The text was updated successfully, but these errors were encountered:
When I trace model on cpu,I got the assert error
Have you met this before?
My environment version:
torch 1.3.0
torchvision 0.2.1
trace code:
assert Error:
The text was updated successfully, but these errors were encountered: