-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove all global variables in Paddle #852
Comments
There are two kind of global variable in Paddle: |
Yes. This issue is a list of subtasks. I am finding all global variables in Paddle and trying to give a list on this issue. Python code's global variables are currently harmless, we could focus in Paddle Cpp Part now. |
i have already removed some flags in parameter server in #1051 , change some of them to proto config, some of them are in the list above. But for Compatibility i keep the old way to set flag. you can see if this way is properly. |
We are refactoring Paddle, and do not allow global variables expect registries. |
…-ipu_10c74067247701b2cf4ed6d88a1c893d5a35a6e1 [AUTO PR] Pulling [develop] into [develop-ipu] [2022-06-30 03:05:47+08:00]
This issue used to record which variables are removed and will be removed. Related issue #849
FLAGS_cudnn_dir
inhl_dso_loader.cc
@gangliaoFLAGS_cuda_dir
inhl_dso_loader.cc
@gangliaoFLAGS_warpctc_dir
inhl_dso_loader.cc
@gangliaoFLAGS_memory_threshold_on_load_data
FLAGS_allow_only_one_model_on_one_gpu
inMultiGradientMachine.cpp
maybe it should be in ModelConfigdiy_beam_search_prob_so
in RecurrentGradientMachine.cpplog_error_clipping
in Layer.cpprnn_use_batch
in RecurrentLayer.cppallow_inefficient_sparse_update
inSparseRowMatrix.cpp
removeallow_inefficient_sparse_update
since it's only defined but never used. #1238pool_limit_size
in Storage.cpplog_clipping
in FirstOrderOptimizer.cppenable_grad_share
in Parameter.cppgrad_share_block_num
in Parameter.cppsmall_message
in LightNetwork.cppsock_send_buf_size
in LightNetwork.cppsock_recv_buf_size
in LightNetwork.cpppservers
in ParameterClient2.cppparallel_thread_num
in ParameterClient2.cpppserver_num_threads
in ParameterServer2.cppasync_lagged_ratio_min
in ParameterServer2.cppasync_lagged_ratio_default
in ParameterServer2.cppI just go through Paddle code quickly, it seems the Flags.h should be our first thing to removed.
Or maybe we should think a strategy about how to remove them.
The text was updated successfully, but these errors were encountered: