FrozenGene commented on a change in pull request #4652: 
[Relay][Frontend][TFLite] Add parser support for squared difference
URL: https://github.com/apache/incubator-tvm/pull/4652#discussion_r367434404
 
 

 ##########
 File path: python/tvm/relay/frontend/tflite.py
 ##########
 @@ -735,6 +736,16 @@ def convert_greater(self, op):
                 'TFlite quantized greater operator is not supported yet.')
         return self._convert_elemwise(_op.greater, op)
 
+    def convert_squared_difference(self, op):
+        # Check if the input tensor is quantized, call QNN op
+        if self.is_quantized(op):
+            raise tvm.error.OpNotImplemented(
+                'TFlite quantized squared difference operator is not supported 
yet.')
+        difference = self._convert_elemwise(_op.subtract, op)
+        exp_type = 
self.get_tensor_type_str(self.get_output_tensors(op)[0].tensor.Type())
 
 Review comment:
   better add one comment
   ``_convert_elemwise has guaranteed only have one output tensor``

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to