MCPcopy Create free account
hub / github.com/alibaba/nann / with_rank

Method with_rank

tensorflow/tensorflow/python/framework/tensor_shape.py:997–1015  ·  view source on GitHub ↗

Returns a shape based on `self` with the given rank. This method promotes a completely unknown shape to one with a known rank. Args: rank: An integer. Returns: A shape that is at least as specific as `self` with the given rank. Raises: ValueError: If `self`

(self, rank)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

compute_output_shapeMethod · 0.95
_project_inputMethod · 0.80
callMethod · 0.80
_check_rankFunction · 0.80
_reverse_seqFunction · 0.80
attention_decoderFunction · 0.80
callMethod · 0.80
_make_tf_featuresMethod · 0.80
_make_tf_featuresMethod · 0.80
_highwayMethod · 0.80
buildMethod · 0.80
callMethod · 0.80

Calls 2

merge_withMethod · 0.95
unknown_shapeFunction · 0.70

Tested by

no test coverage detected