diff --git a/python/paddle/fluid/initializer.py b/python/paddle/fluid/initializer.py index 11015b612795a2de308f3c469cb04cb3ea8ed144..ad15c32a35e12a01128c2bd21e783fe9ee043b67 100644 --- a/python/paddle/fluid/initializer.py +++ b/python/paddle/fluid/initializer.py @@ -17,7 +17,8 @@ import numpy as np import contextlib __all__ = [ - 'ConstantInitializer', 'UniformInitializer', 'NormalInitializer', 'XavierInitializer', 'Constant', 'Uniform', 'Normal', 'Xavier', 'force_init_on_cpu','init_on_cpu' + 'Constant', 'Uniform', 'Normal', 'Xavier', 'force_init_on_cpu', + 'init_on_cpu', 'ConstantInitializer', 'UniformInitializer', 'NormalInitializer', 'XavierInitializer' ] _force_init_on_cpu_ = False