Home
last modified time | relevance | path

Searched refs:buffer_data (Results 1 – 25 of 113) sorted by relevance

12345

/external/tflite-support/tensorflow_lite_support/cc/task/core/
Dtflite_engine.cc101 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()
Dtask_api_factory.h44 const char* buffer_data, size_t buffer_size,
49 RETURN_IF_ERROR(engine->BuildModelFromFlatBuffer(buffer_data, buffer_size));
Dtflite_engine.h145 absl::Status BuildModelFromFlatBuffer(const char* buffer_data,
209 void VerifyAndBuildModelFromBuffer(const char* buffer_data,
/external/tensorflow/tensorflow/core/kernels/
Dredux_functor.h83 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/
Densure_uint8_weights_safe_for_fast_int8_kernels.cc163 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()
Dremove_trivial_binary.cc32 bool AreAllBufferElementsEqualTo(const std::vector<Scalar>& buffer_data, in AreAllBufferElementsEqualTo() argument
34 for (const auto& x : buffer_data) { in AreAllBufferElementsEqualTo()
Dresolve_multiply_by_zero.cc30 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/
Dmetadata_version.cc41 [](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/
Dmetadata_extractor.cc82 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()
Dmetadata_extractor.h50 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,
Dmetadata_version.cc265 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()
Dmetadata_version.h31 TfLiteStatus GetMinimumMetadataParserVersion(const uint8_t* buffer_data,
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_transfer_manager.cc205 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()
Dcpu_transfer_manager.h71 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/
Dcras_helpers.c13 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/
Dgl4cMapBufferAlignmentTests.cpp204 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()
Dgl3cClipDistance.hpp447 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/
Dsimulator_buffers.cc58 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()
Dsimulator_buffers.h40 std::vector<float*>* buffer_data,
/external/bsdiff/
Dbz2_compressor.cc51 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()
Dbrotli_compressor.cc52 uint8_t* next_out = comp_buffer_.buffer_data(); in Write()
77 uint8_t* next_out = comp_buffer_.buffer_data(); in Finish()
Dcompressor_buffer.h29 uint8_t* buffer_data() { return comp_buffer_.data(); } in buffer_data() function
/external/tensorflow/tensorflow/lite/tools/versioning/
Druntime_version.cc397 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/
Dsnapshot_parser.cpp773 …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/
Dvisualize.py416 def CreateDictFromFlatbuffer(buffer_data): argument
417 model_obj = schema_fb.Model.GetRootAsModel(buffer_data, 0)

12345