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
Exception has occurred: RuntimeError (note: full exception trace is shown but execution is paused at: _run_module_as_main)
shape '[1]' is invalid for input of size 2621440
File "/Users/mac/workspace/.venv/lib/python3.8/site-packages/tinynn/converter/operators/torch/base.py", line 559, in handle_reduce
self.output_tensors[0] = self.output_tensors[0].view(1)
File "/Users/mac/workspace/.venv/lib/python3.8/site-packages/tinynn/converter/operators/torch/aten.py", line 3299, in parse
self.handle_reduce(tfl.ReduceMaxOperator, args, graph_converter, False)
File "/Users/mac/workspace/.venv/lib/python3.8/site-packages/tinynn/converter/base.py", line 443, in init_operations
converter.parse(node, attrs, args, self.common_graph)
File "/Users/mac/workspace/.venv/lib/python3.8/site-packages/tinynn/converter/base.py", line 480, in convert
self.init_operations()
File "/Users/mac/workspace/mobile_model_converter.py", line 16, in convertToTflite
converter.convert()
File "/Users/mac/workspace/mobile_model_converter.py", line 82, in <module>
convertToTflite(deshadowNet, 'deshadow')
File "/Users/mac/.pyenv/versions/3.8.5/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/mac/.pyenv/versions/3.8.5/lib/python3.8/runpy.py", line 194, in _run_module_as_main (Current frame)
The root of the problem is this torch.max() operator.
The text was updated successfully, but these errors were encountered:
@weinixuehao Yes, it is because we only support the reduction logic of torch.max/min before (e.g. torch.max(x, dim=-1)). We will add the support for torch.maximum/mininum for transforming elementwise ops first. And then we will fix this issue.
I implement a custom PReLU with the following code.
Failed to convert with the following exception.
The root of the problem is this torch.max() operator.
The text was updated successfully, but these errors were encountered: