gussmith23 commented on a change in pull request #9816:
URL: https://github.com/apache/tvm/pull/9816#discussion_r778350526
##########
File path: src/relay/op/tensor/transform.cc
##########
@@ -51,6 +51,76 @@ namespace tvm {
namespace relay {
using tir::IntImmNode;
+TVM_REGISTER_NODE_TYPE(WindowsAttrs);
+
+bool WindowsRel(const Array<Type>& types, int num_inputs, const Attrs& attrs,
+ const TypeReporter& reporter) {
+ // `types` contains: [data, result]
+ ICHECK_EQ(types.size(), 2);
+ const auto* data = types[0].as<TensorTypeNode>();
+ if (data == nullptr) {
+ ICHECK(types[0].as<IncompleteTypeNode>())
+ << "windows: expect input type to be TensorType but get " << types[0];
Review comment:
Thanks, done!
--
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]