提交 841f5d9f 编写于 作者: E Eugene Zhulenev 提交者: TensorFlower Gardener

Do not fail PartitionedCallOp kernel if Grappler failed

PiperOrigin-RevId: 224856604
上级 95358d2d
......@@ -191,10 +191,12 @@ class PartitionedCallOp : public AsyncOpKernel {
// Run grappler passes on the graph. It is possible that these are
// optimized by the graph executor already.
OP_REQUIRES_OK_ASYNC(ctx,
OptimizeGraph(ctx, fbody->ret_nodes, overlay_lib,
device_set, cpu_device, &graph),
done);
Status optimized = OptimizeGraph(ctx, fbody->ret_nodes, overlay_lib,
device_set, cpu_device, &graph);
if (!optimized.ok()) {
LOG(WARNING) << "Grappler optimization failed. Error: "
<< optimized.error_message();
}
OP_REQUIRES_OK_ASYNC(
ctx,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册