MCPcopy Create free account
hub / github.com/ACL2020SpellGCN/SpellGCN / get_shape_list

Function get_shape_list

modeling.py:894–928  ·  view source on GitHub ↗

Returns a list of the shape of tensor, preferring static dimensions. Args: tensor: A tf.Tensor object to find the shape of. expected_rank: (optional) int. The expected rank of `tensor`. If this is specified and the `tensor` has a different rank, and exception will be thrown.

(tensor, expected_rank=None, name=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

__init__Method · 0.85
embedding_lookupFunction · 0.85
embedding_postprocessorFunction · 0.85
attention_layerFunction · 0.85
transformer_modelFunction · 0.85
reshape_from_matrixFunction · 0.85

Calls 1

assert_rankFunction · 0.85

Tested by

no test coverage detected