forked from mindspore-Ecosystem/mindspore
!12017 add ps cache mode check
From: @zyli2020 Reviewed-by: @cristoval,@limingqi107 Signed-off-by: @limingqi107
This commit is contained in:
commit
0d24b45a71
|
@ -1148,6 +1148,11 @@ void KernelRuntime::CheckIfSupportPSEmbeddingCache(const session::KernelGraph *g
|
|||
<< input_index.first->fullname_with_scope();
|
||||
MS_LOG(EXCEPTION) << "The embeddingLookup whose input index isn't from dataset doesn't support cache in "
|
||||
"parameter server training mode.";
|
||||
} else if (input_index.first->isa<CNode>() && (AnfAlgo::GetCNodeName(input_index.first) == kGetNextOpName)) {
|
||||
MS_LOG(ERROR) << "The EmbeddingLookup kernel(" << kernel->fullname_with_scope() << ") doesn't enable cache.";
|
||||
MS_LOG(EXCEPTION) << "All EmbeddingLookup kernels whose input indices are from dataset must enable cache at "
|
||||
"the same time and parameter 'sparse' must be equal to the value of 'enable_sparse' in "
|
||||
"context setting in parameter server training mode.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue