提交 f1ad9aa9 编写于 作者: A Alexandre Passos 提交者: TensorFlower Gardener

Fixes build broken on mac compilers

PiperOrigin-RevId: 224893836
上级 a571aba2
......@@ -113,7 +113,8 @@ mutex* GetTrainingVariableMutex(OpKernelContext* ctx, int input, bool sparse,
if (ctx->input_dtype(input) == DT_RESOURCE) {
if (LookupResource(ctx, HandleFromInput(ctx, input), maybe_resource).ok()) {
if (sparse) {
EnsureSparseVariableAccess<Device, T>(ctx, *maybe_resource);
EnsureSparseVariableAccess<Device, T>(ctx, *maybe_resource)
.IgnoreError();
}
return (*maybe_resource)->mu();
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册