Home
last modified time | relevance | path

Searched refs:array_name (Results 1 – 25 of 32) sorted by relevance

12

/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Ddequantize.cc44 Model* model, const std::string& array_name) { in FindFirstOpWithInput() argument
47 if (input == array_name) { in FindFirstOpWithInput()
55 void ClearArrayQuantizationParams(const std::string& array_name, Model* model) { in ClearArrayQuantizationParams() argument
56 auto* array = &model->GetArray(array_name); in ClearArrayQuantizationParams()
59 if (input_array.name() == array_name) { in ClearArrayQuantizationParams()
78 bool DequantizeArray(const std::string& array_name, in DequantizeArray() argument
80 auto* array = &model->GetArray(array_name); in DequantizeArray()
84 transformation->AddMessageF("Dequantizing array: %s", array_name); in DequantizeArray()
99 ClearArrayQuantizationParams(array_name, model); in DequantizeArray()
106 ClearArrayQuantizationParams(array_name, model); in DequantizeArray()
[all …]
Dlstm_utils.cc20 const std::string& array_name) { in CreateOptionalArray() argument
21 *input_array_buffer = array_name; in CreateOptionalArray()
22 model->CreateOptionalArray(array_name); in CreateOptionalArray()
42 std::string* array_name, in CreateFloatArrayBuffer() argument
44 *array_name = AvailableArrayName(*model, *array_name); in CreateFloatArrayBuffer()
45 auto& array = model->GetOrCreateArray(*array_name); in CreateFloatArrayBuffer()
54 void CopySubArrayToArray(Model* model, std::string* array_name, in CopySubArrayToArray() argument
62 CreateFloatArrayBuffer(model, array_name, shape); in CopySubArrayToArray()
Dread_array_minmax_and_narrow_range_from_fake_quant.cc32 const std::string& array_name) { in ApplyAttrsToArray() argument
34 auto& annotated_array = model->GetArray(array_name); in ApplyAttrsToArray()
39 "Read min/max annotation for array %s: min=%g, max=%g", array_name, in ApplyAttrsToArray()
46 array_name); in ApplyAttrsToArray()
Dlstm_utils.h66 const std::string& array_name);
70 std::string* array_name,
94 void CopySubArrayToArray(Model* model, std::string* array_name,
Dpropagate_default_min_max.cc73 bool PropagateDefaultMinMax::SetArrayMinMax(const std::string& array_name, in SetArrayMinMax() argument
89 ArrayDataTypeName(quantized_data_type), array_name); in SetArrayMinMax()
94 array->GetMinMax().min, array->GetMinMax().max, array_name, in SetArrayMinMax()
Dhardcode_min_max.cc285 for (const std::string& array_name : array_names) { in PropagateMinMaxAmongArrays() local
286 if (model->GetArray(array_name).minmax) { in PropagateMinMaxAmongArrays()
287 reference_array_name = array_name; in PropagateMinMaxAmongArrays()
288 reference_minmax = model->GetArray(array_name).minmax.get(); in PropagateMinMaxAmongArrays()
297 for (const std::string& array_name : array_names) { in PropagateMinMaxAmongArrays() local
298 auto& array = model->GetArray(array_name); in PropagateMinMaxAmongArrays()
303 << reference_minmax->max << ") and " << array_name << " (" in PropagateMinMaxAmongArrays()
Dresolve_tensorflow_matmul.cc30 const std::string& array_name) { in FindTransposeOpWithInput() argument
36 if (op->inputs[0] != array_name) { in FindTransposeOpWithInput()
Dquantize.cc124 const MinMax& GetOrComputeMinMax(Model* model, const std::string& array_name) { in GetOrComputeMinMax() argument
125 auto& array = model->GetArray(array_name); in GetOrComputeMinMax()
170 << "Constant array " << array_name in GetOrComputeMinMax()
186 LOG(FATAL) << "Array " << array_name in GetOrComputeMinMax()
Didentify_lstm.cc38 bool ValidateSourceOp(const Model& model, const std::string& array_name, in ValidateSourceOp() argument
44 *source_op = GetOpWithOutput(model, array_name); in ValidateSourceOp()
/external/tensorflow/tensorflow/lite/toco/
Dallocate_transient_arrays.cc58 const std::string& array_name, std::size_t op_index, in UpdateArrayLifespan() argument
60 if (array_lifespans->count(array_name)) { in UpdateArrayLifespan()
61 auto& lifespan = array_lifespans->at(array_name); in UpdateArrayLifespan()
70 (*array_lifespans)[array_name] = lifespan; in UpdateArrayLifespan()
163 const std::string& array_name, in TransientArraySize() argument
165 if (!IsAllocatableTransientArray(model, array_name)) { in TransientArraySize()
168 const auto& array = &model.GetArray(array_name); in TransientArraySize()
170 << "Array '" << array_name << "' doesn't have a shape"; in TransientArraySize()
174 if (rnn_state.state_array() == array_name) { in TransientArraySize()
176 << "A RNN state array, " << array_name << ", still does not " in TransientArraySize()
[all …]
Dtooling_util.h59 bool IsInputArray(const Model& model, const std::string& array_name);
61 bool IsOutputArray(const Model& model, const std::string& array_name);
66 int CountOpsWithInput(const Model& model, const std::string& array_name);
67 bool DeleteArrayIfUnused(const std::string& array_name, Model* model);
74 const Model& model, const std::string& array_name);
75 Operator* GetOpWithOutput(const Model& model, const std::string& array_name);
78 Model& model, const std::string& array_name);
81 const Model& model, const std::string& array_name);
84 Model& model, const std::string& array_name);
86 Operator* GetOpWithInput(const Model& model, const std::string& array_name);
[all …]
Dtooling_util.cc99 bool IsInputArray(const Model& model, const std::string& array_name) { in IsInputArray() argument
101 if (array_name == input_array.name()) { in IsInputArray()
108 bool IsOutputArray(const Model& model, const std::string& array_name) { in IsOutputArray() argument
110 if (array_name == output_array) { in IsOutputArray()
142 int CountOpsWithInput(const Model& model, const std::string& array_name) { in CountOpsWithInput() argument
146 if (input == array_name) { in CountOpsWithInput()
158 bool DeleteArrayIfUnused(const std::string& array_name, Model* model) { in DeleteArrayIfUnused() argument
159 if (IsDiscardableArray(*model, array_name) && in DeleteArrayIfUnused()
160 CountOpsWithInput(*model, array_name) == 0 && in DeleteArrayIfUnused()
161 GetOpWithOutput(*model, array_name) == nullptr) { in DeleteArrayIfUnused()
[all …]
Ddump_graphviz.cc125 void GetArrayColorAndShape(const Model& model, const std::string& array_name, in GetArrayColorAndShape() argument
132 if (array_name == rnn_state.state_array()) { in GetArrayColorAndShape()
139 if (array_name == rnn_state.back_edge_source_array()) { in GetArrayColorAndShape()
146 if (model.GetArray(array_name).buffer) { in GetArrayColorAndShape()
155 if (IsInputArray(model, array_name)) { in GetArrayColorAndShape()
160 if (IsOutputArray(model, array_name)) { in GetArrayColorAndShape()
173 const std::string& array_name) { in GetArrayCompassPt() argument
180 if (array_name == rnn_state.state_array()) { in GetArrayCompassPt()
184 if (array_name == rnn_state.back_edge_source_array()) { in GetArrayCompassPt()
188 if (IsInputArray(model, array_name)) { in GetArrayCompassPt()
[all …]
Dtoco_tooling.cc175 std::string const& array_name = model->flags.input_arrays(i).name(); in SetFinalDataTypeOnInputs() local
176 auto* array = &model->GetArray(array_name); in SetFinalDataTypeOnInputs()
Dexport_tensorflow.cc85 const std::string& array_name) { in GetTensorFlowDataType() argument
86 return GetTensorFlowDataType(model.GetArray(array_name).data_type, in GetTensorFlowDataType()
87 "array '" + array_name + "'"); in GetTensorFlowDataType()
2502 const std::string& array_name = array_pair.first; in ExportTensorFlowGraphDefImplementation() local
2507 ConvertBoolTensorConst(model, array_name, tensorflow_graph); in ExportTensorFlowGraphDefImplementation()
2510 ConvertFloatTensorConst(model, array_name, tensorflow_graph); in ExportTensorFlowGraphDefImplementation()
2513 ConvertIntTensorConst(model, array_name, tensorflow_graph); in ExportTensorFlowGraphDefImplementation()
2516 ConvertComplex64TensorConst(model, array_name, tensorflow_graph); in ExportTensorFlowGraphDefImplementation()
2528 const std::string& array_name = array_kv.first; in EncodeConstantArraysMinMaxByWrappingThemInFakeQuantNodes() local
2534 AvailableArrayName(*model, array_name + "/data"); in EncodeConstantArraysMinMaxByWrappingThemInFakeQuantNodes()
[all …]
/external/tensorflow/tensorflow/lite/experimental/acceleration/compatibility/
Dconvert_binary_to_cc_source.py36 array_name, argument
71 include_guard = "TENSORFLOW_LITE_UTIL_" + array_name.upper() + "_DATA_H_"
124 array_name=array_name,
148 array_name=array_name,
184 array_name=flags.array_variable_name,
/external/python/pycparser/examples/
Dc_json.py105 array_name, array_index = match.groups()
108 result[array_name] = result.get(array_name, [])
109 if array_index != len(result[array_name]):
112 array_name, len(result[array_name]), array_index))
113 result[array_name].append(to_dict(child))
/external/dynamic_depth/internal/xmpmeta/xml/
Dserializer_impl.cc159 const string& array_name, in WriteIntArray() argument
178 if (array_name.empty()) { in WriteIntArray()
185 ToXmlChar(array_name.data())); in WriteIntArray()
203 const string& array_name, in WriteDoubleArray() argument
222 if (array_name.empty()) { in WriteDoubleArray()
229 ToXmlChar(array_name.data())); in WriteDoubleArray()
Dserializer.h68 virtual bool WriteIntArray(const string& prefix, const string& array_name,
70 virtual bool WriteDoubleArray(const string& prefix, const string& array_name,
Dserializer_impl.h150 bool WriteIntArray(const string& prefix, const string& array_name,
152 bool WriteDoubleArray(const string& prefix, const string& array_name,
/external/tensorflow/tensorflow/lite/python/
Dutil.py462 array_name, argument
497 include_guard = "TENSORFLOW_LITE_UTIL_" + array_name.upper() + "_DATA_H_"
550 array_name=array_name,
574 array_name=array_name,
Dconvert_file_to_c_source.py58 array_name=FLAGS.array_variable_name,
/external/tensorflow/tensorflow/java/src/gen/cc/
Dop_generator.cc118 string array_name = attr.var().name() + "Array"; in WriteSetAttrDirective() local
120 .Append("[] " + array_name + " = new ") in WriteSetAttrDirective()
124 .BeginBlock("for (int i = 0; i < " + array_name + ".length; ++i)") in WriteSetAttrDirective()
125 .Append(array_name + "[i] = "); in WriteSetAttrDirective()
134 .Append(array_name + ");") in WriteSetAttrDirective()
/external/vulkan-validation-layers/layers/
Dstateless_validation.h415 …andle_array(const char *api_name, const ParameterName &count_name, const ParameterName &array_name, in validate_handle_array() argument
420 …skip_call |= validate_array(api_name, count_name, array_name, count, &array, count_required, array… in validate_handle_array()
429 api_name, array_name.get_name().c_str(), i); in validate_handle_array()
775 …flags_array(const char *api_name, const ParameterName &count_name, const ParameterName &array_name, in validate_flags_array() argument
781 …skip_call |= validate_array(api_name, count_name, array_name, count, &array, count_required, array… in validate_flags_array()
792 array_name.get_name().c_str(), i); in validate_flags_array()
798 array_name.get_name().c_str(), i, flag_bits_name); in validate_flags_array()
/external/freetype/src/tools/
Dglnames.py5248 def dump_array( the_array, write, array_name ): argument
5258 write( " const unsigned char " + array_name +

12