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

Function SelectReshape

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

Source from the content-addressed store, hash-verified

96}
97
98std::vector<ComputeTaskDescriptorPtr> SelectReshape(
99 const GraphFloat32& graph, int id, ValueId input_id, ValueId output_id,
100 const ReshapeAttributes& attr) {
101 const auto src_shape = graph.FindInputs(id)[0]->tensor.shape;
102 if (src_shape.c % 4 == 0 && attr.new_shape.c % 4 == 0) {
103 return Reshapex4(id, input_id, output_id, attr);
104 } else {
105 return Reshape(id, input_id, output_id, attr);
106 }
107}
108
109std::vector<ComputeTaskDescriptorPtr> SelectSoftmax(const GraphFloat32& graph,
110 int id, ValueId input_id,

Callers 1

RegisterPrimaryOpsFunction · 0.70

Calls 3

FindInputsMethod · 0.80
Reshapex4Function · 0.50
ReshapeFunction · 0.50

Tested by

no test coverage detected