Skip to content

Add function to get type index from Python class#12393

Merged
junrushao merged 1 commit intoapache:mainfrom
yelite:get-object-type-index
Aug 12, 2022
Merged

Add function to get type index from Python class#12393
junrushao merged 1 commit intoapache:mainfrom
yelite:get-object-type-index

Conversation

@yelite
Copy link
Contributor

@yelite yelite commented Aug 11, 2022

This PR adds a Python function to get type index from Python class object. It's useful when type index needs to be passed from Python to C++. For example, in #11912 we need to get the type index from Python class in order to register a printing function in Python.

cc @junrushao1994

@github-actions github-actions bot requested a review from junrushao August 11, 2022 23:11
Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is definitely a good change. Thank you for the PR!

@junrushao junrushao merged commit e3e65ce into apache:main Aug 12, 2022
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
mikeseven pushed a commit to mikeseven/tvm that referenced this pull request Sep 27, 2023
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