Home
last modified time | relevance | path

Searched refs:metadata_buffer (Results 1 – 25 of 26) sorted by relevance

12

/external/libtextclassifier/native/utils/flatbuffers/
Dreflection_test.cc29 std::string metadata_buffer = LoadTestMetadata(); in TEST() local
31 flatbuffers::GetRoot<reflection::Schema>(metadata_buffer.data()); in TEST()
47 std::string metadata_buffer = LoadTestMetadata(); in TEST() local
49 flatbuffers::GetRoot<reflection::Schema>(metadata_buffer.data()); in TEST()
/external/pigweed/pw_hdlc/
Dencoder.cc87 std::array<std::byte, 16> metadata_buffer; in StartFrame() local
89 varint::Encode(address, metadata_buffer, kAddressFormat); in StartFrame()
94 metadata_buffer[metadata_size++] = control; in StartFrame()
95 return WriteData(std::span(metadata_buffer).first(metadata_size)); in StartFrame()
/external/tensorflow/tensorflow/lite/micro/
Dmicro_allocator_test.cc462 const int32_t metadata_buffer[tflite::testing::kOfflinePlannerHeaderSize + in TF_LITE_MICRO_TEST() local
485 number_tensors, metadata_buffer, node_list, number_connections); in TF_LITE_MICRO_TEST()
522 const int32_t metadata_buffer[tflite::testing::kOfflinePlannerHeaderSize + in TF_LITE_MICRO_TEST() local
538 number_tensors, metadata_buffer, node_list, number_connections); in TF_LITE_MICRO_TEST()
566 const int32_t metadata_buffer[tflite::testing::kOfflinePlannerHeaderSize + in TF_LITE_MICRO_TEST() local
584 number_tensors, metadata_buffer, node_list, number_connections); in TF_LITE_MICRO_TEST()
613 const int32_t metadata_buffer[tflite::testing::kOfflinePlannerHeaderSize + in TF_LITE_MICRO_TEST() local
636 number_tensors, metadata_buffer, node_list, number_connections); in TF_LITE_MICRO_TEST()
747 const int32_t metadata_buffer[tflite::testing::kOfflinePlannerHeaderSize + in TF_LITE_MICRO_TEST() local
770 number_tensors, metadata_buffer, node_list, number_connections, in TF_LITE_MICRO_TEST()
[all …]
Dmicro_allocator.cc106 const uint32_t* metadata_buffer = (uint32_t*)array->data(); in CheckOfflinePlannedOffsets() local
107 int version = metadata_buffer[0]; in CheckOfflinePlannedOffsets()
108 int subgraph_idx = metadata_buffer[1]; in CheckOfflinePlannedOffsets()
109 const int nbr_offline_offsets = metadata_buffer[2]; in CheckOfflinePlannedOffsets()
111 int* offline_planner_offsets = (int*)&metadata_buffer[3]; in CheckOfflinePlannedOffsets()
297 const uint32_t* metadata_buffer = in GetOfflinePlannedOffsets() local
299 const size_t nbr_tensors = static_cast<size_t>(metadata_buffer[2]); in GetOfflinePlannedOffsets()
301 reinterpret_cast<const int32_t*>(&metadata_buffer[3]); in GetOfflinePlannedOffsets()
Dtest_helpers.h124 const int32_t* metadata_buffer,
Dtest_helpers.cc316 const int32_t* metadata_buffer, in BuildModelWithOfflinePlanning() argument
337 "OfflineMemoryAllocation", metadata_buffer, in BuildModelWithOfflinePlanning()
871 const int32_t* metadata_buffer, in GetModelWithOfflinePlanning() argument
876 num_tensors, metadata_buffer, node_conn, num_conns, num_subgraph_inputs); in GetModelWithOfflinePlanning()
/external/tflite-support/tensorflow_lite_support/metadata/cc/
Dmetadata_extractor.cc162 const auto metadata_buffer = in InitFromModelBuffer() local
164 if (!tflite::ModelMetadataBufferHasIdentifier(metadata_buffer)) { in InitFromModelBuffer()
175 flatbuffers::GetBufferIdentifier(metadata_buffer)) in InitFromModelBuffer()
181 model_metadata_ = tflite::GetModelMetadata(metadata_buffer); in InitFromModelBuffer()
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dparsing.cc442 &s->metadata_buffer[0], grpc_core::ExecCtx::Get()->Now() + timeout); in on_initial_header()
446 const size_t new_size = s->metadata_buffer[0].size + GRPC_MDELEM_LENGTH(md); in on_initial_header()
466 grpc_chttp2_incoming_metadata_buffer_add(&s->metadata_buffer[0], md); in on_initial_header()
500 const size_t new_size = s->metadata_buffer[1].size + GRPC_MDELEM_LENGTH(md); in on_trailing_header()
520 grpc_chttp2_incoming_metadata_buffer_add(&s->metadata_buffer[1], md); in on_trailing_header()
Dframe_rst_stream.cc98 if (reason != GRPC_HTTP2_NO_ERROR || s->metadata_buffer[1].size == 0) { in grpc_chttp2_rst_stream_parser_parse()
Dchttp2_transport.cc680 grpc_chttp2_incoming_metadata_buffer_init(&s->metadata_buffer[0], arena); in init_stream()
681 grpc_chttp2_incoming_metadata_buffer_init(&s->metadata_buffer[1], arena); in init_stream()
751 grpc_chttp2_incoming_metadata_buffer_destroy(&s->metadata_buffer[0]); in destroy_stream_locked()
752 grpc_chttp2_incoming_metadata_buffer_destroy(&s->metadata_buffer[1]); in destroy_stream_locked()
1865 grpc_chttp2_incoming_metadata_buffer_publish(&s->metadata_buffer[0], in grpc_chttp2_maybe_complete_recv_initial_metadata()
2002 grpc_chttp2_incoming_metadata_buffer_publish(&s->metadata_buffer[1], in grpc_chttp2_maybe_complete_recv_trailing_metadata()
2097 &s->metadata_buffer[1], in grpc_chttp2_fake_status()
2105 &s->metadata_buffer[1], in grpc_chttp2_fake_status()
Dinternal.h545 grpc_chttp2_incoming_metadata_buffer metadata_buffer[2]; member
Dhpack_parser.cc1644 if (s->header_frames_received == GPR_ARRAY_SIZE(s->metadata_buffer)) { in grpc_chttp2_header_parser_parse()
1651 parse_stream_compression_md(t, s, &s->metadata_buffer[0].batch); in grpc_chttp2_header_parser_parse()
/external/rust/crates/grpcio-sys/grpc/src/core/ext/transport/chttp2/transport/
Dparsing.cc440 &s->metadata_buffer[0], grpc_core::ExecCtx::Get()->Now() + timeout); in handle_timeout()
491 const size_t new_size = s->metadata_buffer[0].size + GRPC_MDELEM_LENGTH(md); in on_initial_header()
500 grpc_chttp2_incoming_metadata_buffer_add(&s->metadata_buffer[0], md); in on_initial_header()
526 const size_t new_size = s->metadata_buffer[1].size + GRPC_MDELEM_LENGTH(md); in on_trailing_header()
549 grpc_chttp2_incoming_metadata_buffer_add(&s->metadata_buffer[1], md); in on_trailing_header()
Dframe_rst_stream.cc108 if (reason != GRPC_HTTP2_NO_ERROR || s->metadata_buffer[1].size == 0) { in grpc_chttp2_rst_stream_parser_parse()
Dchttp2_transport.cc616 metadata_buffer{grpc_chttp2_incoming_metadata_buffer(arena), in grpc_chttp2_stream()
1826 grpc_chttp2_incoming_metadata_buffer_publish(&s->metadata_buffer[0], in grpc_chttp2_maybe_complete_recv_initial_metadata()
1976 grpc_chttp2_incoming_metadata_buffer_publish(&s->metadata_buffer[1], in grpc_chttp2_maybe_complete_recv_trailing_metadata()
2070 &s->metadata_buffer[1], in grpc_chttp2_fake_status()
2078 &s->metadata_buffer[1], in grpc_chttp2_fake_status()
Dinternal.h590 grpc_chttp2_incoming_metadata_buffer metadata_buffer[2]; member
Dhpack_parser.cc1726 if (s->header_frames_received == GPR_ARRAY_SIZE(s->metadata_buffer)) { in grpc_chttp2_header_parser_parse()
1733 parse_stream_compression_md(t, s, &s->metadata_buffer[0].batch); in grpc_chttp2_header_parser_parse()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dsnapshot_util.cc271 auto metadata_buffer = new std::string(); in WriteTensors() local
272 metadata.SerializeToString(metadata_buffer); in WriteTensors()
274 *metadata_buffer, in WriteTensors()
275 [metadata_buffer](absl::string_view) { delete metadata_buffer; }); in WriteTensors()
/external/tensorflow/tensorflow/lite/delegates/gpu/
Dgl_delegate.cc494 if (!model || !model->metadata_buffer() || !model->buffers()) return nullptr; in TfLiteGpuDelegateGetModelMetadata()
495 for (int32_t buffer_index : *model->metadata_buffer()) { in TfLiteGpuDelegateGetModelMetadata()
/external/tensorflow/tensorflow/compiler/xla/service/
Dtransfer_manager.cc233 auto metadata_buffer = in ReadDynamicShapes() local
240 metadata_buffer)); in ReadDynamicShapes()
/external/tensorflow/tensorflow/compiler/xrt/kernels/
Dxrt_execute_op.cc168 auto metadata_buffer = in UpdateMetadata() local
174 stream, *metadata_literal, metadata_buffer)); in UpdateMetadata()
/external/tensorflow/tensorflow/compiler/mlir/lite/
Dflatbuffer_export.cc1824 VectorBufferOffset<int32_t> metadata_buffer = 0; // Deprecated in TranslateInternal() local
1838 metadata_buffer, *metadata, *signature_defs); in TranslateInternal()
/external/tensorflow/tensorflow/lite/schema/
Dschema_generated.h11307 std::vector<int32_t> metadata_buffer;
11342 const flatbuffers::Vector<int32_t> *metadata_buffer() const {
11366 verifier.VerifyVector(metadata_buffer()) &&
11398 void add_metadata_buffer(flatbuffers::Offset<flatbuffers::Vector<int32_t>> metadata_buffer) {
11399 fbb_.AddOffset(Model::VT_METADATA_BUFFER, metadata_buffer);
11426 flatbuffers::Offset<flatbuffers::Vector<int32_t>> metadata_buffer = 0,
11432 builder_.add_metadata_buffer(metadata_buffer);
11448 const std::vector<int32_t> *metadata_buffer = nullptr,
11455 auto metadata_buffer__ = metadata_buffer ? _fbb.CreateVector<int32_t>(*metadata_buffer) : 0;
14834 …= metadata_buffer(); if (_e) { _o->metadata_buffer.resize(_e->size()); for (flatbuffers::uoffset_t…
[all …]
Dschema_v3a.fbs1103 metadata_buffer:[int];
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/
Dtest_schema.fbs1086 metadata_buffer:[int];

12