When an info defines an annotation on a constructor, it's applied to the allocate() native method.
However, this works only if the C++ headers defines an explicit constructor. The info is ignored for default constructors.
This PR fixes that.
No changes in existing presets but in Pytorch: 10 modules (SigmoidImpl...) don't have explicit constructors.
When an info defines an annotation on a constructor, it's applied to the
allocate()
native method. However, this works only if the C++ headers defines an explicit constructor. The info is ignored for default constructors.This PR fixes that.
No changes in existing presets but in Pytorch: 10 modules (
SigmoidImpl
...) don't have explicit constructors.