hiddenlayer icon indicating copy to clipboard operation
hiddenlayer copied to clipboard

Failed to export an ONNX attribute, since it's not constant, please try to make things (e.g., kernel size) static if possible

Open Max-ChenFei opened this issue 5 years ago • 2 comments

Hi, I meet the problem using torchvision model = torchvision.models.segmentation.deeplabv3_resnet101(pretrained=True) model.eval() trace, _ = torch.jit.get_trace_graph(model, torch.randn(1, 3, 224, 224)) torch.onnx._optimize_trace(trace, torch.onnx.OperatorExportTypes.ONNX) Could you please give some hits to save this problem?

Max-ChenFei avatar Jul 18 '19 15:07 Max-ChenFei

Same problem here, trying to visualize a model from https://github.com/JiaminRen/RandWireNN

fmcarlucci avatar Oct 18 '19 12:10 fmcarlucci

Hello I also faced the same issue, did you guys managed to solve it ?

cthnguyen avatar Oct 31 '19 14:10 cthnguyen