chainer / onnx-chainer

Add-on package for ONNX format support in Chainer
MIT License
85 stars 24 forks source link

Export error with temporary variable #201

Closed disktnk closed 5 years ago

disktnk commented 5 years ago

A value is not set to model attribute or other global parameter, export is failed.

class Model(chainer.Chain):

    def forward(self, x):
        return x + chainer.Variable(np.array(3, dtype=np.float32))