-
Notifications
You must be signed in to change notification settings - Fork 359
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
[Embedding] Refactor the code of Save Ops for EmbeddingVariable. #900
Conversation
ff66442
to
a11c5ca
Compare
@@ -20,6 +20,7 @@ limitations under the License. | |||
#include "tensorflow/core/framework/embedding/embedding_memory_pool.h" | |||
#include "tensorflow/core/framework/embedding/embedding_var_restore.h" | |||
#include "tensorflow/core/framework/embedding/filter_policy.h" | |||
#include "tensorflow/core/framework/embedding/embedding_var_ckpt_data.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include最好按字母序
tensorflow/core/kernels/BUILD
Outdated
@@ -5443,7 +5443,8 @@ tf_kernel_library( | |||
|
|||
tf_kernel_library( | |||
name = "group_embedding_ops", | |||
hdrs = ["group_embedding/group_embedding_lookup_sparse_forward_base_ops.h"], | |||
hdrs = ["group_embedding/group_embedding_lookup_sparse_forward_base_ops.h", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
多余的换行
mutex_lock l(*(dram_->get_mutex())); | ||
TF_CHECK_OK(dram_->GetSnapshot(key_list, value_ptr_list)); | ||
Status Save( | ||
const string& tensor_name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
换行风格保持一致
@@ -508,86 +508,6 @@ TF_CALL_GPU_NUMBER_TYPES(REGISTER_KERNELS_GPU) | |||
#undef REGISTER_KERNELS_GPU | |||
#endif // GOOGLE_CUDA | |||
|
|||
#undef REGISTER_KERNELS_ALL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里要不顺便改一下文件名吧,现在存放的都是restore的Op
a11c5ca
to
1506453
Compare
Signed-off-by: lixy9474 <lxy268263@alibaba-inc.com>
1506453
to
5fe6219
Compare
No description provided.