Home
last modified time | relevance | path

Searched refs:ReadScalar (Results 1 – 25 of 54) sorted by relevance

123

/external/flatbuffers/include/flatbuffers/
Dminireflect.h126 auto tval = ReadScalar<uint8_t>(val); in IterateValue()
131 visitor->Bool(ReadScalar<uint8_t>(val) != 0); in IterateValue()
135 auto tval = ReadScalar<int8_t>(val); in IterateValue()
140 auto tval = ReadScalar<uint8_t>(val); in IterateValue()
145 auto tval = ReadScalar<int16_t>(val); in IterateValue()
150 auto tval = ReadScalar<uint16_t>(val); in IterateValue()
155 auto tval = ReadScalar<int32_t>(val); in IterateValue()
160 auto tval = ReadScalar<uint32_t>(val); in IterateValue()
165 visitor->Long(ReadScalar<int64_t>(val)); in IterateValue()
169 visitor->ULong(ReadScalar<uint64_t>(val)); in IterateValue()
[all …]
Dflatbuffers.h114 return reinterpret_cast<return_type>(p + ReadScalar<uoffset_t>(p));
1378 !ReadScalar<voffset_t>(buf_.data() + field_location->id));
1383 auto vt1_size = ReadScalar<voffset_t>(vt1);
1392 auto vt2_size = ReadScalar<voffset_t>(vt2);
2227 auto size = ReadScalar<uoffset_t>(vec);
2263 auto vtableo = tableo - static_cast<size_t>(ReadScalar<soffset_t>(table));
2266 VerifyAlignment<voffset_t>(ReadScalar<voffset_t>(buf_ + vtableo)) &&
2267 Verify(vtableo, ReadScalar<voffset_t>(buf_ + vtableo));
2297 ReadScalar<uoffset_t>(buf_) == size_ - sizeof(uoffset_t) &&
2303 auto o = ReadScalar<uoffset_t>(buf_ + start);
[all …]
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dmatching_files_dataset_op.cc236 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreInternal()
241 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name("current_pattern"), in RestoreInternal()
247 reader->ReadScalar(full_name("hasMatch"), &hasMatch)); in RestoreInternal()
252 reader->ReadScalar(full_name("isWindows"), &isWindows)); in RestoreInternal()
258 reader->ReadScalar(full_name("queue_size"), &queue_size)); in RestoreInternal()
262 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreInternal()
264 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreInternal()
Dgroup_by_window_dataset_op.cc387 reader->ReadScalar(full_name("groups_size"), &size)); in RestoreInternal()
390 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreInternal()
404 reader->ReadScalar(full_name("window_sizes_size"), &size)); in RestoreInternal()
407 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreInternal()
410 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreInternal()
418 reader->ReadScalar(full_name("group_counter"), &group_counter_)); in RestoreInternal()
425 reader->ReadScalar(full_name("current_key"), &current_key_)); in RestoreInternal()
458 reader->ReadScalar(strings::StrCat(name, "_size"), &group_size)); in RestoreGroup()
462 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreGroup()
Dsnapshot_dataset_op.cc485 reader->ReadScalar(full_name(kGraphHashDirectory), &hash_dir)); in InitializeIterator()
505 reader->ReadScalar(full_name(kIteratorMode), &iterator_mode)); in InitializeIterator()
508 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kIndex), &index_)); in InitializeIterator()
794 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kRunId), &run_id_signed)); in RestoreInternal()
795 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kCurrentCheckpointId), in RestoreInternal()
1258 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kHashDir), &hash_dir)); in RestoreInternal()
1267 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kState), &temp)); in RestoreInternal()
1521 reader->ReadScalar(full_name(kHashDir), &hash_dir)); in RestoreInternal()
1522 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kHashDir), &run_id)); in RestoreInternal()
1523 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kHashDir), &run_dir)); in RestoreInternal()
[all …]
Dparallel_interleave_dataset_op.cc468 TF_RETURN_IF_ERROR(reader->ReadScalar(prefix(), kNextIndex, &temp)); in RestoreInternal()
470 TF_RETURN_IF_ERROR(reader->ReadScalar(prefix(), kBlockCount, &temp)); in RestoreInternal()
474 TF_RETURN_IF_ERROR(reader->ReadScalar(prefix(), kWorkersSize, &temp)); in RestoreInternal()
514 reader->ReadScalar(prefix(), kInterleaveSize, &interleave_size)); in RestoreInternal()
518 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreInternal()
536 reader->ReadScalar(prefix(), kStagingSize, &staging_size)); in RestoreInternal()
539 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreInternal()
936 reader->ReadScalar(worker_prefix, kInputSize, &input_size)); in ReadWorkerStateLocked()
946 reader->ReadScalar(worker_prefix, kOutputsSize, &outputs_size)); in ReadWorkerStateLocked()
1002 reader->ReadScalar(worker_prefix, kInputSize, &input_size)); in ReadWorkerThreadStateLocked()
[all …]
Dgroup_by_reducer_dataset_op.cc358 reader->ReadScalar(full_name("states_size"), &size)); in RestoreInternal()
361 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreInternal()
367 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreInternal()
385 reader->ReadScalar(full_name("keys_index"), &keys_index_)); in RestoreInternal()
389 reader->ReadScalar(full_name("keys_size"), &size)); in RestoreInternal()
393 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreInternal()
Dsampling_dataset_op.cc177 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreInternal()
180 TF_RETURN_IF_ERROR(reader->ReadScalar(this->full_name("seed"), &seed)); in RestoreInternal()
182 TF_RETURN_IF_ERROR(reader->ReadScalar(this->full_name("seed2"), &seed2)); in RestoreInternal()
Dunbatch_dataset_op.cc219 reader->ReadScalar(full_name("current_index"), &current_index_)); in RestoreInternal()
221 reader->ReadScalar(full_name("n"), &current_batch_size_)); in RestoreInternal()
/external/flatbuffers/src/
Dreflection.cpp27 #define FLATBUFFERS_GET(T) static_cast<int64_t>(ReadScalar<T>(data)) in GetAnyValueI()
42 auto s = reinterpret_cast<const String *>(ReadScalar<uoffset_t>(data) + in GetAnyValueI()
54 case reflection::Float: return static_cast<double>(ReadScalar<float>(data)); in GetAnyValueF()
55 case reflection::Double: return ReadScalar<double>(data); in GetAnyValueF()
58 reinterpret_cast<const String *>(ReadScalar<uoffset_t>(data) + data); in GetAnyValueF()
78 reinterpret_cast<const String *>(ReadScalar<uoffset_t>(data) + data); in GetAnyValueS()
92 ReadScalar<uoffset_t>(data) + data); in GetAnyValueS()
207 WriteScalar<T>(offsetloc, ReadScalar<T>(offsetloc) + delta_ * D); in Straddle()
255 auto ref = offsetloc + ReadScalar<uoffset_t>(offsetloc); in ResizeTable()
367 auto root_offset = ReadScalar<uoffset_t>(newbuf) - sizeof(uoffset_t); in AddFlatBuffer()
/external/tensorflow/tensorflow/core/kernels/data/
Ddataset_utils_test.cc58 TF_ASSERT_OK(reader.ReadScalar(full_name("Int64"), &val_int64)); in TEST()
77 reader.ReadScalar(full_name("NonExistentKey"), &val_int64).code()); in TEST()
79 reader.ReadScalar(full_name("NonExistentKey"), &val_string).code()); in TEST()
95 TF_ASSERT_OK(reader.ReadScalar("Iterator", "Int64", &val_int64)); in TEST()
114 reader.ReadScalar("Iterator", "NonExistentKey", &val_int64).code()); in TEST()
117 reader.ReadScalar("Iterator", "NonExistentKey", &val_string).code()); in TEST()
Dsplit_utils.cc57 return reader->ReadScalar(full_name(kIndex), &i_); in Restore()
110 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kNumToSkip), &num_to_skip_)); in Restore()
Ddataset_utils.h168 Status ReadScalar(StringPiece key, int64* val) const override;
169 Status ReadScalar(StringPiece key, tstring* val) const override;
173 Status ReadScalar(StringPiece name, StringPiece key,
175 Status ReadScalar(StringPiece name, StringPiece key,
Ddataset_utils.cc79 reader->ReadScalar(key_prefix, kNumElements, &num_elements)); in ReadElementsFromCheckpoint()
85 reader->ReadScalar(element_prefix, kNumComponents, &num_components)); in ReadElementsFromCheckpoint()
218 Status VariantTensorDataReader::ReadScalar(StringPiece key, int64* val) const { in ReadScalar() function in tensorflow::data::VariantTensorDataReader
222 Status VariantTensorDataReader::ReadScalar(StringPiece key, in ReadScalar() function in tensorflow::data::VariantTensorDataReader
231 Status VariantTensorDataReader::ReadScalar(StringPiece name, StringPiece key, in ReadScalar() function in tensorflow::data::VariantTensorDataReader
236 Status VariantTensorDataReader::ReadScalar(StringPiece name, StringPiece key, in ReadScalar() function in tensorflow::data::VariantTensorDataReader
715 TF_RETURN_IF_ERROR(reader->ReadScalar( in ReadBatch()
774 TF_RETURN_IF_ERROR(reader->ReadScalar( in ReadStatus()
781 TF_RETURN_IF_ERROR(reader->ReadScalar( in ReadStatus()
Dinterleave_dataset_op.cc227 reader->ReadScalar(full_name(kCycleIndex), &cycle_index)); in RestoreInternal()
230 reader->ReadScalar(full_name(kBlockIndex), &block_index_)); in RestoreInternal()
233 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kNumOpen), &num_open)); in RestoreInternal()
270 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreCurrentElements()
Dshuffle_dataset_op.cc330 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kEpochNumRandomSamples), in RestoreInternal()
334 TF_RETURN_IF_ERROR(reader->ReadScalar(this->full_name(kNumRandomSamples), in RestoreInternal()
336 TF_RETURN_IF_ERROR(reader->ReadScalar(this->full_name(kSeed), &seed_)); in RestoreInternal()
337 TF_RETURN_IF_ERROR(reader->ReadScalar(this->full_name(kSeed2), &seed2_)); in RestoreInternal()
350 TF_RETURN_IF_ERROR(reader->ReadScalar(this->full_name(kEpoch), &epoch_)); in RestoreInternal()
352 reader->ReadScalar(this->full_name(kNumElements), &num_elements_)); in RestoreInternal()
357 reader->ReadScalar(this->full_name(kSlicesSize), &temp)); in RestoreInternal()
368 reader->ReadScalar(this->full_name(absl::StrJoin( in RestoreInternal()
372 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreInternal()
Dsparse_tensor_slice_dataset_op.cc188 TF_RETURN_IF_ERROR(reader->ReadScalar(Iterator::full_name("i"), &i_)); in RestoreInternal()
191 reader->ReadScalar(Iterator::full_name("iter_loc"), &iter_loc)); in RestoreInternal()
193 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreInternal()
Dparallel_interleave_dataset_op.cc457 reader->ReadScalar(prefix(), kBlockIndex, &block_index_)); in RestoreInternal()
459 reader->ReadScalar(prefix(), kCycleIndex, &cycle_index_)); in RestoreInternal()
460 TF_RETURN_IF_ERROR(reader->ReadScalar(prefix(), kElementIdCounter, in RestoreInternal()
1154 reader->ReadScalar(iterator_name, CodeKey(idx), &code_int)); in ReadStatusLocked()
1159 TF_RETURN_IF_ERROR(reader->ReadScalar( in ReadStatusLocked()
1260 TF_RETURN_IF_ERROR(reader->ReadScalar( in ReadElement()
1269 TF_RETURN_IF_ERROR(reader->ReadScalar( in ReadElement()
1291 TF_RETURN_IF_ERROR(reader->ReadScalar( in ReadElement()
1301 reader->ReadScalar(iterator_name, kIdSuffix, &element->id)); in ReadElement()
1320 reader->ReadScalar(prefix(), kCurrentElementsSize, &size)); in ReadCurrentElements()
[all …]
Dwindow_dataset_op.cc302 reader->ReadScalar(full_name(kBufferSize), &buffer_size)); in RestoreInternal()
307 TF_RETURN_IF_ERROR(reader->ReadScalar( in RestoreInternal()
349 TF_RETURN_IF_ERROR(reader->ReadScalar(CodeKey(index), &code_int)); in ReadStatusLocked()
355 reader->ReadScalar(ErrorMessageKey(index), &error_message)); in ReadStatusLocked()
Dfixed_length_record_dataset_op.cc217 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kCurrentFileIndex), in RestoreInternal()
222 reader->ReadScalar(full_name(kCurrentPos), &current_pos)); in RestoreInternal()
403 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kCurrentFileIndex), in RestoreInternal()
408 reader->ReadScalar(full_name(kCurrentPos), &current_pos)); in RestoreInternal()
Dfilter_dataset_op.cc226 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kFilteredElements), in RestoreInternal()
229 reader->ReadScalar(full_name(kDroppedElements), &dropped_elements_)); in RestoreInternal()
Dprefetch_dataset_op.cc271 TF_RETURN_IF_ERROR(reader->ReadScalar(prefix(), kBufferSize, &temp)); in RestoreInternal()
283 reader->ReadScalar(absl::StrCat(prefix(), "::", i), in RestoreInternal()
527 TF_RETURN_IF_ERROR(reader->ReadScalar(absl::StrCat(prefix(), "::", index), in ReadStatus()
534 reader->ReadScalar(absl::StrCat(prefix(), "::", index), in ReadStatus()
Dtext_line_dataset_op.cc166 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kCurrentFileIndex), in RestoreInternal()
174 reader->ReadScalar(full_name(kCurrentPos), &current_pos)); in RestoreInternal()
Dflat_map_dataset_op.cc214 reader->ReadScalar(full_name(kElementIndex), &temp)); in RestoreInternal()
223 reader->ReadScalar(full_name(kCapturedFuncInputsSize), &temp)); in RestoreInternal()
Dtf_record_dataset_op.cc226 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kCurrentFileIndex), in RestoreInternal()
231 TF_RETURN_IF_ERROR(reader->ReadScalar(full_name(kOffset), &offset)); in RestoreInternal()

123