MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ConvertRelu6Operator

Function ConvertRelu6Operator

tensorflow/lite/toco/export_tensorflow.cc:773–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771}
772
773void ConvertRelu6Operator(const Relu6Operator& src_op,
774 GraphDef* tensorflow_graph) {
775 tensorflow::NodeDef* relu_op = tensorflow_graph->add_node();
776 relu_op->set_op("Relu6");
777 relu_op->set_name(src_op.outputs[0]);
778 *relu_op->add_input() = src_op.inputs[0];
779 (*relu_op->mutable_attr())["T"].set_type(DT_FLOAT);
780}
781
782void ConvertLogOperator(const LogOperator& src_op, GraphDef* tensorflow_graph) {
783 tensorflow::NodeDef* op = tensorflow_graph->add_node();

Callers 1

ConvertOperatorFunction · 0.85

Calls 3

set_opMethod · 0.80
set_nameMethod · 0.45
add_inputMethod · 0.45

Tested by

no test coverage detected