Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Ddequantize.cc44 Model* model, const string& array_name) { in FindFirstOpWithInput() argument
47 if (input == array_name) { in FindFirstOpWithInput()
55 void ClearArrayQuantizationParams(const 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 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 string& array_name) { in CreateOptionalArray() argument
21 *input_array_buffer = array_name; in CreateOptionalArray()
22 model->CreateOptionalArray(array_name); in CreateOptionalArray()
42 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, 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 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 string& array_name);
70 string* array_name,
94 void CopySubArrayToArray(Model* model, string* array_name,
Dpropagate_default_min_max.cc73 bool PropagateDefaultMinMax::SetArrayMinMax(const 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 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 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()
Dremove_trivial_passthrough.cc147 for (const auto& array_name : model->flags.output_arrays()) { in RemoveTrivialPassthroughOp() local
148 if (array_name == removal_candidate) { in RemoveTrivialPassthroughOp()
Dresolve_tensorflow_matmul.cc30 const string& array_name) { in FindTransposeOpWithInput() argument
36 if (op->inputs[0] != array_name) { in FindTransposeOpWithInput()
Dquantize.cc83 const MinMax& GetOrComputeMinMax(Model* model, const string& array_name) { in GetOrComputeMinMax() argument
84 auto& array = model->GetArray(array_name); in GetOrComputeMinMax()
129 << "Constant array " << array_name in GetOrComputeMinMax()
145 LOG(FATAL) << "Array " << array_name in GetOrComputeMinMax()
Didentify_lstm.cc38 bool ValidateSourceOp(const Model& model, const string& array_name, in ValidateSourceOp() argument
44 *source_op = GetOpWithOutput(model, array_name); in ValidateSourceOp()
Dgraph_transformations.h230 bool SetArrayMinMax(const string& array_name, Array* array); in DECLARE_GRAPH_TRANSFORMATION()
/external/tensorflow/tensorflow/lite/toco/
Dallocate_transient_arrays.cc58 const 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()
162 std::size_t TransientArraySize(const Model& model, const string& array_name, in TransientArraySize() argument
164 if (!IsAllocatableTransientArray(model, array_name)) { in TransientArraySize()
167 const auto& array = &model.GetArray(array_name); in TransientArraySize()
169 << "Array '" << array_name << "' doesn't have a shape"; in TransientArraySize()
173 if (rnn_state.state_array() == array_name) { in TransientArraySize()
175 << "A RNN state array, " << array_name << ", still does not " in TransientArraySize()
[all …]
Dtooling_util.h62 bool IsInputArray(const Model& model, const string& array_name);
64 bool IsOutputArray(const Model& model, const string& array_name);
69 int CountOpsWithInput(const Model& model, const string& array_name);
70 bool DeleteArrayIfUnused(const string& array_name, Model* model);
71 bool DeleteArrayIfUsedOnce(const string& array_name, Model* model);
78 const Model& model, const string& array_name);
79 Operator* GetOpWithOutput(const Model& model, const string& array_name);
82 Model& model, const string& array_name);
85 const Model& model, const string& array_name);
88 Model& model, const string& array_name);
[all …]
Dtooling_util.cc99 bool IsInputArray(const Model& model, const string& array_name) { in IsInputArray() argument
101 if (array_name == input_array.name()) { in IsInputArray()
108 bool IsOutputArray(const Model& model, const string& array_name) { in IsOutputArray() argument
110 if (array_name == output_array) { in IsOutputArray()
142 int CountOpsWithInput(const Model& model, const string& array_name) { in CountOpsWithInput() argument
146 if (input == array_name) { in CountOpsWithInput()
158 bool DeleteArrayIfUnused(const 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 model->EraseArray(array_name); in DeleteArrayIfUnused()
[all …]
Ddump_graphviz.cc123 void GetArrayColorAndShape(const Model& model, const string& array_name, in GetArrayColorAndShape() argument
130 if (array_name == rnn_state.state_array()) { in GetArrayColorAndShape()
137 if (array_name == rnn_state.back_edge_source_array()) { in GetArrayColorAndShape()
144 if (model.GetArray(array_name).buffer) { in GetArrayColorAndShape()
153 if (IsInputArray(model, array_name)) { in GetArrayColorAndShape()
158 if (IsOutputArray(model, array_name)) { in GetArrayColorAndShape()
170 string GetArrayCompassPt(const Model& model, const string& array_name) { in GetArrayCompassPt() argument
177 if (array_name == rnn_state.state_array()) { in GetArrayCompassPt()
181 if (array_name == rnn_state.back_edge_source_array()) { in GetArrayCompassPt()
185 if (IsInputArray(model, array_name)) { in GetArrayCompassPt()
[all …]
Dtoco_tooling.cc170 string const& array_name = model->flags.input_arrays(i).name(); in SetFinalDataTypeOnInputs() local
171 auto* array = &model->GetArray(array_name); in SetFinalDataTypeOnInputs()
Dexport_tensorflow.cc82 const string& array_name) { in GetTensorFlowDataType() argument
83 return GetTensorFlowDataType(model.GetArray(array_name).data_type, in GetTensorFlowDataType()
84 "array '" + array_name + "'"); in GetTensorFlowDataType()
2458 const string& array_name = array_pair.first; in ExportTensorFlowGraphDefImplementation() local
2463 ConvertBoolTensorConst(model, array_name, tensorflow_graph); in ExportTensorFlowGraphDefImplementation()
2466 ConvertFloatTensorConst(model, array_name, tensorflow_graph); in ExportTensorFlowGraphDefImplementation()
2469 ConvertIntTensorConst(model, array_name, tensorflow_graph); in ExportTensorFlowGraphDefImplementation()
2472 ConvertComplex64TensorConst(model, array_name, tensorflow_graph); in ExportTensorFlowGraphDefImplementation()
2484 const string& array_name = array_kv.first; in EncodeConstantArraysMinMaxByWrappingThemInFakeQuantNodes() local
2490 AvailableArrayName(*model, array_name + "/data"); in EncodeConstantArraysMinMaxByWrappingThemInFakeQuantNodes()
[all …]
Dimport_tensorflow.cc533 string array_name = toco::AvailableArrayName(*model, name); in CreateConstArray() local
534 auto& array = model->GetOrCreateArray(array_name); in CreateConstArray()
538 return array_name; in CreateConstArray()
/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/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.h417 …andle_array(const char *api_name, const ParameterName &count_name, const ParameterName &array_name, in validate_handle_array() argument
422 …skip_call |= validate_array(api_name, count_name, array_name, count, &array, count_required, array… in validate_handle_array()
431 api_name, array_name.get_name().c_str(), i); in validate_handle_array()
765 …flags_array(const char *api_name, const ParameterName &count_name, const ParameterName &array_name, in validate_flags_array() argument
771 …skip_call |= validate_array(api_name, count_name, array_name, count, &array, count_required, array… in validate_flags_array()
782 array_name.get_name().c_str(), i); in validate_flags_array()
788 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 +
/external/brotli/c/dec/
Ddecode.c35 #define BROTLI_LOG_ARRAY_INDEX(array_name, idx) \ argument
36 BROTLI_LOG(("[%s] %s[%lu] = %lu\n", __func__, #array_name, \
37 (unsigned long)(idx), (unsigned long)array_name[idx]))

12