MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetVariableToShapeMap

Method GetVariableToShapeMap

tensorflow/core/util/tensor_slice_reader.cc:283–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283TensorSliceReader::VarToShapeMap TensorSliceReader::GetVariableToShapeMap()
284 const {
285 VarToShapeMap name_to_shape;
286 if (status().ok()) {
287 for (auto& e : Tensors()) {
288 name_to_shape[e.first] = e.second->shape();
289 }
290 }
291 return name_to_shape;
292}
293
294TensorSliceReader::VarToDataTypeMap
295TensorSliceReader::GetVariableToDataTypeMap() const {

Callers 4

TFStatsMethod · 0.80
CheckpointReaderMethod · 0.80

Calls 4

statusStruct · 0.85
TensorsClass · 0.50
okMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected