shiwenloong commented on a change in pull request #6232:
URL: https://github.com/apache/incubator-tvm/pull/6232#discussion_r467018665



##########
File path: python/tvm/relay/frontend/pytorch.py
##########
@@ -1263,27 +1263,32 @@ def _impl(inputs, input_types):
             unbiased = bool(inputs[2])
 
         if unbiased:
-            msg = "Currently only supports standard-deviation calculated via 
the biased "\
-                  "estimator. PyTorch's Bessel's correction is not supported."
-            raise NotImplementedError(msg)
+            std_op = _op.reduce.unbiased_std
+        else:
+            std_op = _op.reduce.std

Review comment:
       This change will make the code cleaner. It has been applied. Thanks.




----------------------------------------------------------------
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]


Reply via email to