Skip to content
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

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

lixy9474
Copy link
Collaborator

No description provided.

@lixy9474 lixy9474 force-pushed the refine_save_ops branch 2 times, most recently from ff66442 to a11c5ca Compare July 19, 2023 02:06
@@ -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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include最好按字母序

@@ -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",
Copy link
Contributor

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,
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里要不顺便改一下文件名吧,现在存放的都是restore的Op

Signed-off-by: lixy9474 <lxy268263@alibaba-inc.com>
@candyzone candyzone merged commit 4cd9ed8 into DeepRec-AI:main Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants