/external/tflite-support/tensorflow_lite_support/cc/task/core/ |
D | tflite_engine.cc | 101 void TfLiteEngine::VerifyAndBuildModelFromBuffer(const char* buffer_data, in VerifyAndBuildModelFromBuffer() argument 107 reinterpret_cast<const uint8_t*>(buffer_data), buffer_size); in VerifyAndBuildModelFromBuffer() 116 if (!verifier_.Verify(buffer_data, buffer_size, &error_reporter_)) { in VerifyAndBuildModelFromBuffer() 121 model_.reset(TfLiteModelCreate(buffer_data, buffer_size)); in VerifyAndBuildModelFromBuffer() 124 buffer_data, buffer_size, &verifier_, &error_reporter_); in VerifyAndBuildModelFromBuffer() 129 const char* buffer_data = model_file_handler_->GetFileContent().data(); in InitializeFromModelFileHandler() local 131 VerifyAndBuildModelFromBuffer(buffer_data, buffer_size); in InitializeFromModelFileHandler() 155 buffer_data, buffer_size)); in InitializeFromModelFileHandler() 160 absl::Status TfLiteEngine::BuildModelFromFlatBuffer(const char* buffer_data, in BuildModelFromFlatBuffer() argument 166 external_file_.set_file_content(std::string(buffer_data, buffer_size)); in BuildModelFromFlatBuffer()
|
D | task_api_factory.h | 44 const char* buffer_data, size_t buffer_size, 49 RETURN_IF_ERROR(engine->BuildModelFromFlatBuffer(buffer_data, buffer_size));
|
D | tflite_engine.h | 145 absl::Status BuildModelFromFlatBuffer(const char* buffer_data, 209 void VerifyAndBuildModelFromBuffer(const char* buffer_data,
|
/external/tensorflow/tensorflow/core/kernels/ |
D | redux_functor.h | 83 AccumT* buffer_data = buffer.data(); in operator() local 94 input_data, buffer_data]( in operator() 103 Buffer buf(buffer_data + inner_dim_start, my_job_len); in operator() 149 AccumT* buffer_data = buffer.template flat<AccumT>().data(); in operator() local 160 buffer_data, input_data, outer_dim]( in operator() 167 Buffer buf(buffer_data + start * inner_dim, inner_dim); in operator() 187 auto buf0 = Buffer(buffer_data, inner_dim); in operator() 190 auto buf = Buffer(buffer_data + i * inner_dim, inner_dim); in operator() 264 AccumT* buffer_data = buffer.data(); in operator() local 273 const auto compute = [inner_dim, middle_dim, input_data, buffer_data, in operator() [all …]
|
/external/tensorflow/tensorflow/lite/toco/graph_transformations/ |
D | ensure_uint8_weights_safe_for_fast_int8_kernels.cc | 163 auto& buffer_data = array.GetMutableBuffer<ArrayDataType::kUint8>().data; in Run() local 169 for (int i = 0, end = buffer_data.size(); i < end; i++) { in Run() 170 if (buffer_data[i] == 0) { in Run() 186 buffer_data[i] = 1; in Run()
|
D | remove_trivial_binary.cc | 32 bool AreAllBufferElementsEqualTo(const std::vector<Scalar>& buffer_data, in AreAllBufferElementsEqualTo() argument 34 for (const auto& x : buffer_data) { in AreAllBufferElementsEqualTo()
|
D | resolve_multiply_by_zero.cc | 30 bool AreAllBufferElementsZero(const std::vector<T>& buffer_data) { in AreAllBufferElementsZero() argument 31 for (auto x : buffer_data) { in AreAllBufferElementsZero()
|
/external/tflite-support/tensorflow_lite_support/metadata/cc/python/ |
D | metadata_version.cc | 41 [](const std::string& buffer_data) -> std::string { in PYBIND11_MODULE() argument 44 reinterpret_cast<const uint8_t*>(buffer_data.c_str()), in PYBIND11_MODULE() 45 buffer_data.length(), &min_version) != kTfLiteOk) { in PYBIND11_MODULE()
|
/external/tflite-support/tensorflow_lite_support/metadata/cc/ |
D | metadata_extractor.cc | 82 ModelMetadataExtractor::CreateFromModelBuffer(const char* buffer_data, in CreateFromModelBuffer() argument 88 RETURN_IF_ERROR(extractor->InitFromModelBuffer(buffer_data, buffer_size)); in CreateFromModelBuffer() 137 const char* buffer_data, size_t buffer_size) { in InitFromModelBuffer() argument 142 reinterpret_cast<const uint8_t*>(buffer_data), buffer_size); in InitFromModelBuffer() 149 model_ = tflite::GetModel(buffer_data); in InitFromModelBuffer() 186 return ExtractAssociatedFiles(buffer_data, buffer_size); in InitFromModelBuffer() 193 const char* buffer_data, size_t buffer_size) { in ExtractAssociatedFiles() argument 201 zip_source_buffer_create(buffer_data, buffer_size, /*freep=*/0, &error); in ExtractAssociatedFiles()
|
D | metadata_extractor.h | 50 CreateFromModelBuffer(const char* buffer_data, size_t buffer_size); 139 absl::Status InitFromModelBuffer(const char* buffer_data, size_t buffer_size); 142 absl::Status ExtractAssociatedFiles(const char* buffer_data,
|
D | metadata_version.cc | 265 TfLiteStatus GetMinimumMetadataParserVersion(const uint8_t* buffer_data, in GetMinimumMetadataParserVersion() argument 269 flatbuffers::Verifier(buffer_data, buffer_size); in GetMinimumMetadataParserVersion() 282 const tflite::ModelMetadata* model_metadata = GetModelMetadata(buffer_data); in GetMinimumMetadataParserVersion()
|
D | metadata_version.h | 31 TfLiteStatus GetMinimumMetadataParserVersion(const uint8_t* buffer_data,
|
/external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
D | cpu_transfer_manager.cc | 205 std::vector<std::pair<void*, int64>> buffer_data; in TransferLiteralFromOutfeed() local 210 buffer_data.push_back({literal.untyped_data({i}), size}); in TransferLiteralFromOutfeed() 214 TransferTupleBuffersFromOutfeed(executor, buffer_data)); in TransferLiteralFromOutfeed() 230 absl::Span<const std::pair<void*, int64>> buffer_data) { in TransferTupleBuffersFromOutfeed() argument 231 return TransferBuffersFromOutfeedInternal(executor, buffer_data, in TransferTupleBuffersFromOutfeed() 243 absl::Span<const std::pair<void*, int64>> buffer_data, bool is_tuple) { in TransferBuffersFromOutfeedInternal() argument 245 for (auto b : buffer_data) { in TransferBuffersFromOutfeedInternal()
|
D | cpu_transfer_manager.h | 71 absl::Span<const std::pair<void*, int64>> buffer_data); 83 absl::Span<const std::pair<void*, int64>> buffer_data, bool is_tuple);
|
/external/adhd/cras/src/libcras/ |
D | cras_helpers.c | 13 struct buffer_data { struct 26 struct buffer_data *data = (struct buffer_data *)user_arg; in play_buffer_callback() argument 144 struct buffer_data *data; in cras_helper_play_buffer()
|
/external/deqp/external/openglcts/modules/gl/ |
D | gl4cMapBufferAlignmentTests.cpp | 204 std::vector<GLubyte> buffer_data; in iterate() local 218 buffer_data.resize(buffer_data_size); in iterate() 223 buffer_data[i] = (GLubyte)i; in iterate() 271 gl.bufferStorage(buffer.m_target, buffer_size, &buffer_data[0], storage_set); in iterate() 292 if (buffer_data[i] != map_buffer_ptr[i]) in iterate() 315 if (buffer_data[i + offset] != map_buffer_range_ptr[i]) in iterate()
|
D | gl3cClipDistance.hpp | 447 std::vector<T> buffer_data(m_size / sizeof(T)); in readBuffer() local 455 memcpy(&buffer_data[0], results, m_size); in readBuffer() 460 return buffer_data; in readBuffer()
|
/external/webrtc/modules/audio_processing/test/ |
D | simulator_buffers.cc | 58 std::vector<float*>* buffer_data, in CreateConfigAndBuffer() argument 72 buffer_data->resize(num_channels); in CreateConfigAndBuffer() 74 (*buffer_data)[ch] = &(*buffer_data_samples)[ch * samples_per_channel]; in CreateConfigAndBuffer()
|
D | simulator_buffers.h | 40 std::vector<float*>* buffer_data,
|
/external/bsdiff/ |
D | bz2_compressor.cc | 51 bz_strm_.next_out = reinterpret_cast<char*>(comp_buffer_.buffer_data()); in Write() 75 bz_strm_.next_out = reinterpret_cast<char*>(comp_buffer_.buffer_data()); in Finish()
|
D | brotli_compressor.cc | 52 uint8_t* next_out = comp_buffer_.buffer_data(); in Write() 77 uint8_t* next_out = comp_buffer_.buffer_data(); in Finish()
|
D | compressor_buffer.h | 29 uint8_t* buffer_data() { return comp_buffer_.data(); } in buffer_data() function
|
/external/tensorflow/tensorflow/lite/tools/versioning/ |
D | runtime_version.cc | 397 auto buffer_data = in UpdateMinimumRuntimeVersionForModel() local 399 memset(buffer_data->data(), 0, buffer_data->size()); in UpdateMinimumRuntimeVersionForModel() 400 memcpy(buffer_data->data(), model_min_version.data(), in UpdateMinimumRuntimeVersionForModel()
|
/external/OpenCSD/decoder/tests/snapshot_parser_lib/source/ |
D | snapshot_parser.cpp | 773 …urceTree(const std::string &buffer_name, ParsedTrace &metadata, TraceBufferSourceTree &buffer_data) in ExtractSourceTree() argument 783 buffer_data.buffer_info = *it; in ExtractSourceTree() 793 if(sbit->second == buffer_data.buffer_info.bufferName) in ExtractSourceTree() 796 buffer_data.source_core_assoc[sbit->first] = metadata.cpu_source_assoc[sbit->first]; in ExtractSourceTree()
|
/external/tensorflow/tensorflow/lite/tools/ |
D | visualize.py | 416 def CreateDictFromFlatbuffer(buffer_data): argument 417 model_obj = schema_fb.Model.GetRootAsModel(buffer_data, 0)
|