junrushao opened a new pull request, #174: URL: https://github.com/apache/tvm-ffi/pull/174
Previously, when `SomeObject.__init__` is not defined, `SomeObject(anything, ...)` will silently do nothing but returns a `SomeObject` with `chandle=None`, which triggers further segfault when trying to access its fields. This PR fixes this issue by auto-generating `__init__` when it's not available: - if `__ffi_init__` method is defined, generate a method that calls `__ffi_init__`; - if not, generate an `__init__` method that explicitly errors out saying it's undefined -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
