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

Function ConvertLogisticOperator

tensorflow/lite/toco/export_tensorflow.cc:791–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789}
790
791void ConvertLogisticOperator(const LogisticOperator& src_op,
792 GraphDef* tensorflow_graph) {
793 tensorflow::NodeDef* relu_op = tensorflow_graph->add_node();
794 relu_op->set_op("Sigmoid");
795 relu_op->set_name(src_op.outputs[0]);
796 *relu_op->add_input() = src_op.inputs[0];
797 (*relu_op->mutable_attr())["T"].set_type(DT_FLOAT);
798}
799
800void ConvertTanhOperator(const TanhOperator& src_op,
801 GraphDef* tensorflow_graph) {

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