diff --git a/python/paddle/tensor/linalg.py b/python/paddle/tensor/linalg.py index 2a6ffc0ab66d3ac82c2da02db61e137139c0dec4..66d8c1fd3ecf1eaeab57168b1bb1a247fc8e6cf3 100644 --- a/python/paddle/tensor/linalg.py +++ b/python/paddle/tensor/linalg.py @@ -440,6 +440,7 @@ def dot(x, y, name=None): """ op_type = 'dot' + # skip var type check in dygraph mode to improve efficiency if in_dygraph_mode(): op = getattr(core.ops, op_type) return op(x, y)