Commit 7c4e98eb authored by Igor Ganichev's avatar Igor Ganichev Committed by TensorFlower Gardener
Browse files

Add Tensor._rank() getter

It appears to speed up SPINN model by about 1%, which is not much, but
this method is very simple and easier to use than len(tensor._shape_tuple())

PiperOrigin-RevId: 173703259
parent d7cffe9c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment