Home
last modified time | relevance | path

Searched refs:TensorSliceReader (Results 1 – 14 of 14) sorted by relevance

/external/tensorflow/tensorflow/core/util/
Dtensor_slice_reader.cc38 TensorSliceReader::Table::~Table() {} in ~Table()
41 class TensorSliceReaderTable : public TensorSliceReader::Table {
71 TensorSliceReader::Table** result) { in OpenTableTensorSliceReader()
99 TensorSliceReader::TensorSliceReader(const string& filepattern) in TensorSliceReader() function in tensorflow::checkpoint::TensorSliceReader
100 : TensorSliceReader(filepattern, OpenTableTensorSliceReader, in TensorSliceReader()
103 TensorSliceReader::TensorSliceReader(const string& filepattern, in TensorSliceReader() function in tensorflow::checkpoint::TensorSliceReader
105 : TensorSliceReader(filepattern, std::move(open_function), kLoadAllShards) { in TensorSliceReader()
108 TensorSliceReader::TensorSliceReader(const string& filepattern, in TensorSliceReader() function in tensorflow::checkpoint::TensorSliceReader
141 void TensorSliceReader::LoadShard(int shard) const { in LoadShard()
181 void TensorSliceReader::LoadAllShards() const { in LoadAllShards()
[all …]
Dtensor_slice_reader_cache.h42 const TensorSliceReader* GetReader(
44 TensorSliceReader::OpenTableFunction open_function,
61 const TensorSliceReader* GetReader(
63 TensorSliceReader::OpenTableFunction open_function, int preferred_shard);
68 typedef Status (*OpenFuncType)(const string&, TensorSliceReader::Table**);
74 std::unordered_map<string, std::pair<OpenFuncType, TensorSliceReader*>>
Dtensor_slice_reader_cache.cc33 const TensorSliceReader* TensorSliceReaderCacheWrapper::GetReader( in GetReader()
35 TensorSliceReader::OpenTableFunction open_function, in GetReader()
53 const TensorSliceReader* TensorSliceReaderCache::GetReader( in GetReader()
55 TensorSliceReader::OpenTableFunction open_function, int preferred_shard) { in GetReader()
81 TensorSliceReader* reader = nullptr; in GetReader()
88 TensorSliceReader* tmp_reader( in GetReader()
89 new TensorSliceReader(filepattern, open_function, preferred_shard)); in GetReader()
Dtensor_slice_reader.h54 class TensorSliceReader {
65 TensorSliceReader(const string& filepattern);
66 TensorSliceReader(const string& filepattern, OpenTableFunction open_function);
67 TensorSliceReader(const string& filepattern, OpenTableFunction open_function,
69 virtual ~TensorSliceReader();
138 TF_DISALLOW_COPY_AND_ASSIGN(TensorSliceReader);
142 TensorSliceReader::Table** table);
145 bool TensorSliceReader::CopySliceData(const string& name, in CopySliceData()
Dtensor_slice_reader_test.cc57 TensorSliceReader::OpenTableFunction open_function) { in SimpleFloatHelper()
116 TensorSliceReader reader(filepattern, std::move(open_function)); in SimpleFloatHelper()
181 TensorSliceReader::OpenTableFunction open_function, in SimpleIntXHelper()
241 TensorSliceReader reader(filepattern, std::move(open_function)); in SimpleIntXHelper()
314 const TensorSliceReader::OpenTableFunction& open_function) { in TEST_SIMPLE_INT()
374 const TensorSliceReader* reader = cache.GetReader( in TEST_SIMPLE_INT()
375 filepattern, open_function, TensorSliceReader::kLoadAllShards); in TEST_SIMPLE_INT()
390 const TensorSliceReader* reader2 = cache.GetReader( in TEST_SIMPLE_INT()
391 filepattern, open_function, TensorSliceReader::kLoadAllShards); in TEST_SIMPLE_INT()
395 TensorSliceReader::kLoadAllShards); in TEST_SIMPLE_INT()
[all …]
Dtensor_slice_writer_test.cc40 static void GetData(TensorSliceReader::Table* table, const string& name,
127 void TensorSliceWriteTestHelper::GetData(TensorSliceReader::Table* table, in GetData()
144 TensorSliceReader::Table* tptr; in CheckEntries()
146 std::unique_ptr<TensorSliceReader::Table> table(tptr); in CheckEntries()
/external/tensorflow/tensorflow/c/
Dcheckpoint_reader.h32 class TensorSliceReader; variable
49 const TensorSliceReader::VarToShapeMap& GetVariableToShapeMap() const;
53 const TensorSliceReader::VarToDataTypeMap& GetVariableToDataTypeMap() const;
65 std::pair<std::unique_ptr<TensorSliceReader::VarToShapeMap>,
66 std::unique_ptr<TensorSliceReader::VarToDataTypeMap> >
70 std::unique_ptr<TensorSliceReader> reader_;
73 std::unique_ptr<TensorSliceReader::VarToShapeMap> var_to_shape_map_;
74 std::unique_ptr<TensorSliceReader::VarToDataTypeMap> var_to_data_type_map_;
Dcheckpoint_reader.cc30 class TensorSliceReader;
53 reader_.reset(new TensorSliceReader(filename)); in CheckpointReader()
59 new TensorSliceReader::VarToShapeMap(reader_->GetVariableToShapeMap())); in CheckpointReader()
60 var_to_data_type_map_.reset(new TensorSliceReader::VarToDataTypeMap( in CheckpointReader()
72 const TensorSliceReader::VarToShapeMap&
78 const TensorSliceReader::VarToDataTypeMap&
110 std::pair<std::unique_ptr<TensorSliceReader::VarToShapeMap>,
111 std::unique_ptr<TensorSliceReader::VarToDataTypeMap>>
135 std::unique_ptr<TensorSliceReader::VarToShapeMap> var_to_shape_map( in BuildV2VarMaps()
136 new TensorSliceReader::VarToShapeMap); in BuildV2VarMaps()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Drestore_op.cc34 preferred_shard_ = checkpoint::TensorSliceReader::kLoadAllShards; in RestoreOp()
60 preferred_shard_ = checkpoint::TensorSliceReader::kLoadAllShards; in RestoreSliceOp()
Dsave_restore_tensor.cc145 checkpoint::TensorSliceReader::OpenTableFunction open_func, in RestoreTensor()
162 std::unique_ptr<checkpoint::TensorSliceReader> allocated_reader; in RestoreTensor()
164 const checkpoint::TensorSliceReader* reader = nullptr; in RestoreTensor()
171 allocated_reader.reset(new checkpoint::TensorSliceReader( in RestoreTensor()
Dsave_restore_tensor.h53 checkpoint::TensorSliceReader::OpenTableFunction open_func,
Dsave_op_test.cc131 checkpoint::TensorSliceReader reader(filename, in TEST_F()
463 checkpoint::TensorSliceReader reader(filename, in TEST_F()
606 checkpoint::TensorSliceReader reader(filename, in TEST_F()
/external/tensorflow/tensorflow/python/util/
Dpy_checkpoint_reader.i27 %typemap(out) const tensorflow::checkpoint::TensorSliceReader::VarToShapeMap& {
71 %typemap(out) const tensorflow::checkpoint::TensorSliceReader::VarToDataTypeMap& {
/external/tensorflow/tensorflow/contrib/util/
Dinspect_checkpoint.cc26 tensorflow::checkpoint::TensorSliceReader reader( in InspectCheckpoint()