(shape)
return tot_elems
Returns the number of elements in the given shape

    Args:
        shape: TensorShape
    
    Return:
        tot_elems: int
Returns the number of elements in the given shape
Returns the number of elements in the given shape
def __num_elems(shape):
    '''Returns the number of elements in the given shape

    Args:
        shape: TensorShape
    
    Return:
        tot_elems: int
    '''
    tot_elems = 1
    for s in shape:
        tot_elems *= int(s)
    return tot_elems
def __num_elems ( shape ) : tot_elems = 1 for s in shape : tot_elems *= int ( s ) return tot_elems