def sum(x, axis=None, keepdims=False):
    axis = _normalize_axis(axis, ndim(x))
    return tf.reduce_sum(x, reduction_indices=axis, keep_dims=keepdims)
Example showing how to view a 3D numpy array in mayavi2.
dataset/ETHPy150Open fchollet/keras/keras/backend/tensorflow_backend.py/sum--crossover with--dataset/ETHPy150Open enthought/mayavi/docs/source/mayavi/auto/numeric_source.py/view_numpy