You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/03/22 00:07:49 UTC

[GitHub] [tvm] masahi commented on a change in pull request #10691: [Relay] Remove DynamicToStatic pass from graph runtime build

masahi commented on a change in pull request #10691:
URL: https://github.com/apache/tvm/pull/10691#discussion_r831640916



##########
File path: python/tvm/relay/frontend/tflite.py
##########
@@ -846,7 +846,7 @@ def convert_shape(self, op):
         input_tensors = self.get_input_tensors(op)
         assert len(input_tensors) == 1, "input tensors length should be 1"
 
-        out = _op.shape_of(self.get_tensor_expr(input_tensors[0]))
+        out = shape_of(self.get_tensor_expr(input_tensors[0]))

Review comment:
       Before this PR, tflite mobilenet was returning a dynamic shape output :man_facepalming: 

##########
File path: python/tvm/relay/frontend/tflite.py
##########
@@ -846,7 +846,7 @@ def convert_shape(self, op):
         input_tensors = self.get_input_tensors(op)
         assert len(input_tensors) == 1, "input tensors length should be 1"
 
-        out = _op.shape_of(self.get_tensor_expr(input_tensors[0]))
+        out = shape_of(self.get_tensor_expr(input_tensors[0]))

Review comment:
       Before this PR, tflite mobilenet was returning a dynamic shape output :man_facepalming: 




-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org