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

Method set_shape

tensorflow/core/framework/tensor.h:696–700  ·  view source on GitHub ↗

Only needed by variable op to set the shape of an uninitialized Tensor. TODO: Remove this when we have a better story for detecting uninitialized tensors.

Source from the content-addressed store, hash-verified

694 // TODO: Remove this when we have a better story for detecting
695 // uninitialized tensors.
696 void set_shape(const TensorShape& shape) {
697 DataType dt = dtype();
698 shape_ = shape;
699 set_dtype(dt);
700 }
701
702 void CopyFromInternal(const Tensor& other, const TensorShape& shape);
703

Callers 15

_cross_replica_concatFunction · 0.45
py_funcFunction · 0.45
with_shapeFunction · 0.45
set_shapesMethod · 0.45
exportMethod · 0.45
_dopri5Function · 0.45
integrateMethod · 0.45
streaming_concatFunction · 0.45
_SetShapeFromTemplateFunction · 0.45
_PostProcessOutputFunction · 0.45

Calls 1

dtypeFunction · 0.50

Tested by 12

create_componentFunction · 0.36
_batch_sort_vectorFunction · 0.36
testUnknownLastDimMethod · 0.36
testIncompleteShapeMethod · 0.36
testDynamicPadMethod · 0.36
testGatherMethod · 0.36