MCPcopy Index your code
hub / github.com/YunwenTechnology/QueryGeneration / assert_rank

Function assert_rank

train/utils.py:18–45  ·  view source on GitHub ↗

Raises an exception if the tensor rank is not of the expected rank. Args: tensor: A tf.Tensor to check the rank of. expected_rank: Python integer or list of integers, expected rank. name: Optional name of the tensor for the error message. Raises: ValueError: If the

(tensor, expected_rank, name=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

get_shape_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected