Return the number of elements specified by the tensor shape. Return a negative value if unknown (i.e., any dimension is negative.) e.g. [] -> 1 [1,3,4] -> 12 [2,0,4] -> 0 [-1,3,4] -> -1
See Implementation
Return the number of elements specified by the tensor shape. Return a negative value if unknown (i.e., any dimension is negative.) e.g. [] -> 1 [1,3,4] -> 12 [2,0,4] -> 0 [-1,3,4] -> -1