Skip to content

Add annotations from info on default constructor#699

Merged
saudet merged 2 commits into
bytedeco:masterfrom
HGuillemet:annotation_default_constructor
Aug 8, 2023
Merged

Add annotations from info on default constructor#699
saudet merged 2 commits into
bytedeco:masterfrom
HGuillemet:annotation_default_constructor

Conversation

@HGuillemet
Copy link
Copy Markdown
Contributor

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.

@saudet saudet merged commit 283e87a into bytedeco:master Aug 8, 2023
@HGuillemet HGuillemet deleted the annotation_default_constructor branch January 1, 2024 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants