tqchen commented on code in PR #18733:
URL: https://github.com/apache/tvm/pull/18733#discussion_r2783101415
##########
src/relax/ir/dataflow_matcher.cc:
##########
@@ -54,6 +54,38 @@ namespace relax {
using tvm::arith::Analyzer;
+/*!
+ * \brief Normalize a value so that IntImm becomes boxed int64_t
+ * and FloatImm becomes boxed double. This allows StructuralEqual
+ * to compare pattern values (which may contain IntImm from Python)
+ * against attr field values that use boxed primitives (e.g. Array<int64_t>).
+ */
+ffi::Any NormalizeImmToPrimitive(const ffi::Any& value) {
Review Comment:
is this still needed if we enforce attr to be i64?
--
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]