/external/tensorflow/tensorflow/lite/toco/graph_transformations/ |
D | dequantize.cc | 44 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 …]
|
D | lstm_utils.cc | 20 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()
|
D | read_array_minmax_and_narrow_range_from_fake_quant.cc | 32 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()
|
D | lstm_utils.h | 66 const string& array_name); 70 string* array_name, 94 void CopySubArrayToArray(Model* model, string* array_name,
|
D | propagate_default_min_max.cc | 73 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()
|
D | hardcode_min_max.cc | 285 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()
|
D | remove_trivial_passthrough.cc | 147 for (const auto& array_name : model->flags.output_arrays()) { in RemoveTrivialPassthroughOp() local 148 if (array_name == removal_candidate) { in RemoveTrivialPassthroughOp()
|
D | resolve_tensorflow_matmul.cc | 30 const string& array_name) { in FindTransposeOpWithInput() argument 36 if (op->inputs[0] != array_name) { in FindTransposeOpWithInput()
|
D | quantize.cc | 83 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()
|
D | identify_lstm.cc | 38 bool ValidateSourceOp(const Model& model, const string& array_name, in ValidateSourceOp() argument 44 *source_op = GetOpWithOutput(model, array_name); in ValidateSourceOp()
|
D | graph_transformations.h | 230 bool SetArrayMinMax(const string& array_name, Array* array); in DECLARE_GRAPH_TRANSFORMATION()
|
/external/tensorflow/tensorflow/lite/toco/ |
D | allocate_transient_arrays.cc | 58 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 …]
|
D | tooling_util.h | 62 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 …]
|
D | tooling_util.cc | 99 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 …]
|
D | dump_graphviz.cc | 123 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 …]
|
D | toco_tooling.cc | 170 string const& array_name = model->flags.input_arrays(i).name(); in SetFinalDataTypeOnInputs() local 171 auto* array = &model->GetArray(array_name); in SetFinalDataTypeOnInputs()
|
D | export_tensorflow.cc | 82 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 …]
|
D | import_tensorflow.cc | 533 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/ |
D | serializer_impl.cc | 159 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()
|
D | serializer.h | 68 virtual bool WriteIntArray(const string& prefix, const string& array_name, 70 virtual bool WriteDoubleArray(const string& prefix, const string& array_name,
|
D | serializer_impl.h | 150 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/ |
D | op_generator.cc | 118 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/ |
D | stateless_validation.h | 417 …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/ |
D | glnames.py | 5248 def dump_array( the_array, write, array_name ): argument 5258 write( " const unsigned char " + array_name +
|
/external/brotli/c/dec/ |
D | decode.c | 35 #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]))
|