def prod(self, x, axis=None, keepdims=False): '''Multiplies the values in a tensor, alongside the specified axis. ''' return tf.reduce_prod(x, reduction_indices=axis, keep_dims=keepdims)