Log a warning instead of silently ignoring errors during kernel lookup.
PiperOrigin-RevId: 332928223 Change-Id: Ia8bbb34d196799047ab9969d9eb67e13d70b72bd
This commit is contained in:
parent
906fac3188
commit
317cf7280e
@ -49,9 +49,12 @@ string TryFindKernelClass(const string& serialized_node_def) {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
string class_name = "";
|
string class_name = "";
|
||||||
tensorflow::FindKernelDef(tensorflow::DeviceType(parsed_name.type.c_str()),
|
status = tensorflow::FindKernelDef(
|
||||||
node_def, nullptr /* kernel_def */, &class_name)
|
tensorflow::DeviceType(parsed_name.type.c_str()), node_def,
|
||||||
.IgnoreError();
|
nullptr /* kernel_def */, &class_name);
|
||||||
|
if (!status.ok()) {
|
||||||
|
LOG(WARNING) << "Op [" << node_def.op() << "]: " << status;
|
||||||
|
}
|
||||||
return class_name;
|
return class_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user