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

Function SelectSoftmax

tensorflow/lite/delegates/gpu/metal/api.cc:109–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109std::vector<ComputeTaskDescriptorPtr> SelectSoftmax(const GraphFloat32& graph,
110 int id, ValueId input_id,
111 ValueId output_id) {
112 const auto src_shape = graph.FindInputs(id)[0]->tensor.shape;
113 if (src_shape.w == 1 && src_shape.h == 1) {
114 return Softmax1x1(id, input_id, output_id, src_shape.c);
115 } else {
116 return Softmax(id, input_id, output_id, src_shape.c);
117 }
118}
119
120Status RegisterPrimaryOps(const GraphFloat32& graph, const Node* node,
121 const std::vector<ValueId>& inputs,

Callers 1

RegisterPrimaryOpsFunction · 0.70

Calls 3

FindInputsMethod · 0.80
Softmax1x1Function · 0.50
SoftmaxFunction · 0.50

Tested by

no test coverage detected