mbrookhart commented on a change in pull request #9475:
URL: https://github.com/apache/tvm/pull/9475#discussion_r748643329
##########
File path: src/relay/transforms/pattern_utils.h
##########
@@ -450,6 +450,23 @@ static inline Array<Integer> ToVector(const
runtime::NDArray& array) {
return out;
}
+/*!
+ * \brief Convert a NDArray with type int or float to Array<FloatImm>.
+ * \param array Input NDArray
+ * \return Converted Array.
+ */
+static inline Array<FloatImm> ToFloatVector(const runtime::NDArray& array) {
Review comment:
I used it in DynamicToStatic to convert the ROI argument.
--
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]