From cb5bf583c947d3eb026833a1b9005191dee23099 Mon Sep 17 00:00:00 2001 From: levi131 <83750468+levi131@users.noreply.github.com> Date: Thu, 14 Oct 2021 10:43:12 +0800 Subject: [PATCH] fix import bug for assign (#36406) --- python/paddle/autograd/functional.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/autograd/functional.py b/python/paddle/autograd/functional.py index 4d7fcd733c..17c7ad5b18 100644 --- a/python/paddle/autograd/functional.py +++ b/python/paddle/autograd/functional.py @@ -16,7 +16,7 @@ import contextlib import paddle from ..fluid import framework from ..fluid.dygraph import grad -from ..nn.initializer import assign +from ..tensor.creation import assign from ..tensor import reshape, zeros_like, to_tensor from .utils import _tensors, _stack_tensor_or_return_none, _replace_none_with_zero_tensor -- GitLab