You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2021/06/04 06:04:19 UTC
[GitHub] [incubator-mxnet] Light-- opened a new issue #20329: TypeError: Compose expect `Symbol` as arguments
Light-- opened a new issue #20329:
URL: https://github.com/apache/incubator-mxnet/issues/20329
## Description
(A clear and concise description of what the bug is.)
### Error Message
```
Traceback (most recent call last):
File "/home/user1/batch_vis_mxnet.py", line 708, in <module>
batch_vis(image_path=imgDir, modelPrefix=modelPrefix, fc7Prefix=fc7Prefix, iterNum=iterNum, frameWork='mxnet')
File "/home/user1/batch_vis_mxnet.py", line 642, in batch_vis
generate_heatmap(i, grad_cam, savePath, gb_model)
File "/home/user1/batch_vis_mxnet.py", line 417, in generate_heatmap
mask = grad_cam(input, target_index)
File "/home/user1/batch_vis_mxnet.py", line 170, in __call__
features, output = self.extractor(input.cuda())
File "/home/user1/batch_vis_mxnet.py", line 122, in __call__
target_activations, output = self.feature_extractor(x)
File "/home/user1/batch_vis_mxnet.py", line 85, in __call__
x = module(x)
File "/home/user1/miniconda3/lib/python3.7/site-packages/mxnet/symbol/symbol.py", line 454, in __call__
s._compose(*args, **kwargs)
File "/home/user1/miniconda3/lib/python3.7/site-packages/mxnet/symbol/symbol.py", line 497, in _compose
raise TypeError('Compose expect `Symbol` as arguments')
TypeError: Compose expect `Symbol` as arguments
Process finished with exit code 1
```
## To Reproduce
```
all_layers = self.model.symbol.get_internals() # list all symbol
names = all_layers.list_outputs()
for name in names:
module = all_layers[name]
x = module(x)
```
## Environment
mxnet 1.6.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org
[GitHub] [incubator-mxnet] github-actions[bot] commented on issue #20329: TypeError: Compose expect `Symbol` as arguments
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #20329:
URL: https://github.com/apache/incubator-mxnet/issues/20329#issuecomment-854385701
Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue.
Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly.
If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on [contributing to MXNet](https://mxnet.apache.org/community/contribute) and our [development guides wiki](https://cwiki.apache.org/confluence/display/MXNET/Developments).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org
[GitHub] [incubator-mxnet] github-actions[bot] commented on issue #20329: TypeError: Compose expect `Symbol` as arguments
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #20329:
URL: https://github.com/apache/incubator-mxnet/issues/20329#issuecomment-854385701
Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue.
Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly.
If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on [contributing to MXNet](https://mxnet.apache.org/community/contribute) and our [development guides wiki](https://cwiki.apache.org/confluence/display/MXNET/Developments).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org