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

Method set_shape

tensorflow/python/ops/variables.py:2182–2189  ·  view source on GitHub ↗

Overrides the shape for this variable. Args: shape: the `TensorShape` representing the overridden shape.

(self, shape)

Source from the content-addressed store, hash-verified

2180 return self._variable
2181
2182 def set_shape(self, shape):
2183 """Overrides the shape for this variable.
2184
2185 Args:
2186 shape: the `TensorShape` representing the overridden shape.
2187 """
2188 self._ref().set_shape(shape)
2189 self.value().set_shape(shape)
2190
2191 @property
2192 def trainable(self):

Callers

nothing calls this directly

Calls 3

_refMethod · 0.95
valueMethod · 0.95
set_shapeMethod · 0.45

Tested by

no test coverage detected