"vscode:/vscode.git/clone" did not exist on "32749512f4b799bf889bc59e73d51cac92ab7958"
Unverified Commit bb6cec23 authored by Rhett Ying's avatar Rhett Ying Committed by GitHub
Browse files

[BugFix] fix incorrect name when fetch data in sparse optim (#3808)

parent 8f0136b0
......@@ -130,6 +130,17 @@ class DistEmbedding:
"""
return self._tensor.tensor_name
@property
def data_name(self):
"""Return the data name of the embeddings
Returns
-------
str
The data name of the embeddings
"""
return self._tensor._name
@property
def kvstore(self):
"""Return the kvstore client
......
......@@ -74,7 +74,7 @@ class DistSparseGradOptimizer(abc.ABC):
# will send grad to each corresponding trainer
if self._world_size > 1:
# get idx split from kvstore
idx_split = kvstore.get_partid(name, idics)
idx_split = kvstore.get_partid(emb.data_name, idics)
idx_split_size = []
idics_list = []
grad_list = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment