Home
last modified time | relevance | path

Searched refs:index_to_axis (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Dmodel_builder_helper.cc131 std::vector<Axis> index_to_axis; in ExtractAxisFromIndex() local
135 index_to_axis = {Axis::BATCH}; in ExtractAxisFromIndex()
139 index_to_axis = {Axis::BATCH, Axis::CHANNELS}; in ExtractAxisFromIndex()
143 index_to_axis = {Axis::BATCH, Axis::WIDTH, Axis::CHANNELS}; in ExtractAxisFromIndex()
147 index_to_axis = {Axis::BATCH, Axis::HEIGHT, Axis::WIDTH, Axis::CHANNELS}; in ExtractAxisFromIndex()
152 *axis = index_to_axis[index]; in ExtractAxisFromIndex()
Dmodel_builder.cc2156 std::vector<Axis> index_to_axis = {Axis::BATCH, Axis::WIDTH, in Parse() local
2158 attr.perm.b = axis_to_index[index_to_axis[perm.data[0]]]; in Parse()
2160 attr.perm.w = axis_to_index[index_to_axis[perm.data[1]]]; in Parse()
2161 attr.perm.c = axis_to_index[index_to_axis[perm.data[2]]]; in Parse()
2163 std::vector<Axis> index_to_axis = {Axis::BATCH, Axis::CHANNELS}; in Parse() local
2164 attr.perm.b = axis_to_index[index_to_axis[perm.data[0]]]; in Parse()
2167 attr.perm.c = axis_to_index[index_to_axis[perm.data[1]]]; in Parse()