diff --git a/python/paddle/fluid/framework.py b/python/paddle/fluid/framework.py index 5ef1ffeb4dca054b3d47193fd3f5ae2cc0606d5d..efb038669e89956aa228bca738fe8a22c88f2735 100644 --- a/python/paddle/fluid/framework.py +++ b/python/paddle/fluid/framework.py @@ -62,6 +62,7 @@ __all__ = [ 'device_guard', 'set_flags', 'get_flags', + '_stride_in_no_check_dy2st_diff', ] EMPTY_VAR_NAME = core.kEmptyVarName() diff --git a/python/paddle/framework/__init__.py b/python/paddle/framework/__init__.py index 16f12fd41eca5aefd163735aaa43ad8fc87edf77..778e2b55cd79347020e43150644b439383135437 100755 --- a/python/paddle/framework/__init__.py +++ b/python/paddle/framework/__init__.py @@ -79,5 +79,8 @@ from ..fluid.framework import _set_expected_place # noqa: F401 from ..fluid.framework import Block, Program # noqa: F401 from ..fluid.framework import IrGraph # noqa: F401 from ..fluid.framework import deprecate_stat_dict +from ..fluid.framework import ( + _stride_in_no_check_dy2st_diff as _no_check_dy2st_diff, +) # noqa: F401 __all__ = []