mrkn / mxnet.rb

MXNet binding for Ruby
MIT License
48 stars 10 forks source link

Infer Methods Crash without Keyword Arguments #30

Closed toddsundsted closed 6 years ago

toddsundsted commented 6 years ago

The following both cause the Ruby runtime to crash:

a = MXNet::Symbol.var('a')
a.send(:infer_shape_impl, false) # => crash
a.infer_type # => crash

The cause is access to a NULL/nil value in the respective C functions.

See https://github.com/mrkn/mxnet.rb/pull/29 for a fix.