cf.Variable.expand_dims

Variable.expand_dims(axis, dim, direction)[source]
Parameters :
axis : int

Position (amongst axes) where new axis is to be inserted. By default, insert at position 0.

dim : str

direction : bool

Returns :

None

Raises :
ValueError :

If the given dimension identity is already in use.

Examples

>>> v.expand_dims(0, None, False)

Previous topic

cf.Variable.equals

Next topic

cf.Variable.flip

This Page