PyTransformer icon indicating copy to clipboard operation
PyTransformer copied to clipboard

_build_graph error: while model contain module that have more then one input

Open dancingpipi opened this issue 5 years ago • 3 comments

https://github.com/ricky40403/PyTransformer/blob/22a0a824be0ef7d4dd65312c4b3e190e4cde4fee/transformers/utils.py#L320

how can I solve the problem?

dancingpipi avatar Mar 11 '20 08:03 dancingpipi

Hi, z13974509906:

The purpose we build this repository is for general torch.nn layers. So it rarely required multiple inputs.

Could you explain the detail or provide some examples for testing the error.

Regards, Ricky

ricky40403 avatar Mar 11 '20 10:03 ricky40403

Hi @ricky40403 . For example, this one.

liming312 avatar Aug 06 '20 17:08 liming312

Hmm, I did not consider the non-tensor output.

If you are in a hurry to use the visualization/summary part, you may try some rules to change the rule of the graph. Or, there is one way to parse the model by using onnx and convert as the graph and visualize them.

ricky40403 avatar Aug 10 '20 14:08 ricky40403