shape

dragon.shape(
  inputs,
  **kwargs
)[source]

Return the shape of input.

Examples:

x = dragon.ones((2, 3))
print(x.shape)  # Return a sequence
print(dragon.shape(x))  # Return a tensor
Parameters:
Returns:

dragon.Tensor The tensor shape.