| 722 | } |
| 723 | |
| 724 | void ConvertReluOperator(const Model& model, const ReluOperator& src_op, |
| 725 | GraphDef* tensorflow_graph) { |
| 726 | tensorflow::NodeDef* relu_op = tensorflow_graph->add_node(); |
| 727 | relu_op->set_op("Relu"); |
| 728 | relu_op->set_name(src_op.outputs[0]); |
| 729 | *relu_op->add_input() = src_op.inputs[0]; |
| 730 | (*relu_op->mutable_attr())["T"].set_type( |
| 731 | GetTensorFlowDataType(model, src_op.outputs[0])); |
| 732 | } |
| 733 | |
| 734 | void ConvertRelu1Operator(const Relu1Operator& src_op, |
| 735 | GraphDef* tensorflow_graph) { |
no test coverage detected