From 4598de383fa46a5e240e584f65e882aacf1a1907 Mon Sep 17 00:00:00 2001 From: liuwei1031 <46661762+liuwei1031@users.noreply.github.com> Date: Mon, 20 Apr 2020 14:06:43 +0800 Subject: [PATCH] add comments for dygraph behavior of dot op (#23874) --- python/paddle/tensor/linalg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle/tensor/linalg.py b/python/paddle/tensor/linalg.py index 2a6ffc0ab66..66d8c1fd3ec 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) -- GitLab