-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
torch.cat不支持吗?unexpected keyword argument 'dim' #22
Comments
Change dim to dimension or just delete "dim=" will be fine |
@wangshankun |
我这边CenterNet去掉DCN模型转caffe可以转成功,但caffe转coreml时反卷积出错 |
@cwjhx @wangshankun hi |
放弃caffe了,我转onnx,用tensorrt执行 |
我这边转ONNX还是出现RuntimeError: Only tuples, lists and Variables supported as JIT inputs, but got dict. |
好像在centernet的问题下回答了 |
@JayLSU should I change all dims in pytorch_to_caffe file to dimentions? |
just change the function _cat(raw, inputs, dimemsion) to _cat(raw, inputs, dim) |
改了之后会出现这个key error是为什么呢
File "./pytorch_to_caffe.py", line 594, in call |
解决拉,是cat前一层的问题。。 |
请问你是怎么解决的,我也碰到同样的问题 |
您好,我转这层的时候修改了参数的问题,可还是转不过去是什么原因?非常期待您的帮助 |
File "/home/shankun.shankunwan/CenterNet/src/lib/models/networks/DCNv2/dcn_v2.py", line 173, in forward
offset = torch.cat((o1, o2), dim=1)
File "/home/shankun.shankunwan/PytorchToCaffe/pytorch_to_caffe.py", line 534, in call
out=self.obj(self.raw,*args,**kwargs)
TypeError: _cat() got an unexpected keyword argument 'dim'
The text was updated successfully, but these errors were encountered: