Skip to content

Commit

Permalink
Fix the issue where returned Status is not used.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 198146500
  • Loading branch information
aaroey authored and tensorflower-gardener committed May 26, 2018
1 parent 31c544c commit fce6e5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow/contrib/tensorrt/convert/convert_nodes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2534,7 +2534,7 @@ tensorflow::Status InjectCalibrationNode(tensorrt::convert::SubGraphParams& s) {
// Build the TRT op
// TODO(sami,ben,jie): proper naming!
tensorflow::NodeDefBuilder op_builder(calib_op_name, "TRTCalibOp");
SetInputList(s, &op_builder, &input_names, &input_dtypes);
TF_RETURN_IF_ERROR(SetInputList(s, &op_builder, &input_names, &input_dtypes));

std::vector<string> segment_names;
segment_names.reserve(s.subgraph_node_ids.size());
Expand Down Expand Up @@ -2632,7 +2632,7 @@ tensorflow::Status ConvertSubGraphToTensorRTNodeDef(

// Build the TRT op
tensorflow::NodeDefBuilder op_builder(engine_name, "TRTEngineOp");
SetInputList(s, &op_builder, &input_names, &input_dtypes);
TF_RETURN_IF_ERROR(SetInputList(s, &op_builder, &input_names, &input_dtypes));

VLOG(0) << "Finished op preparation";

Expand Down

0 comments on commit fce6e5f

Please sign in to comment.