Save the date! Google I/O returns May 18-20 Register now

tf_agents.utils.composite.expand_dims

Add a new dimension to tensor t along axis.

t A tf.Tensor or tf.SparseTensor.
axis A 0D integer scalar.

An expanded tensor.

NotImplementedError If t is a SparseTensor and axis != 0.