Skip to content

Conversation

@Lunderberg
Copy link
Contributor

Prior to this commit, FAttrsGetter was defined as a function that returned Map<String, String>. However, it is used to define attributes in a Map<String, ObjectRef>, and in some cases is used to define attributes whose value is a dictionary (e.g. msc_attrs_getter in python/tvm/contrib/msc/core/transform/pattern.py).

This commit updates the type signature of FAttrsGetter to match its usage, returning a Map<String, ObjectRef>.

Prior to this commit, `FAttrsGetter` was defined as a function that
returned `Map<String, String>`.  However, it is used to define
attributes in a `Map<String, ObjectRef>`, and in some cases is used to
define attributes whose value is a dictionary (e.g. `msc_attrs_getter`
in `python/tvm/contrib/msc/core/transform/pattern.py`).

This commit updates the type signature of `FAttrsGetter` to match its
usage, returning a `Map<String, ObjectRef>`.
@Lunderberg
Copy link
Contributor Author

This change is split out from #16183 as an independent change for ease of review.

@Lunderberg Lunderberg merged commit e58cb27 into apache:main Jun 18, 2024
@Lunderberg Lunderberg deleted the fattrsgetter_return_objectref branch June 18, 2024 16:22
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