get_shape


Description:

[ CCode ( array_length_pos = 0.1 ) ]
[ Version ( since = "0.3.0" ) ]
public int64[] get_shape ()

Parameters:

this

A Tensor.

n_dimensions

The number of dimensions.

Returns:

The shape of the tensor.

It should be freed with g_free when no longer needed.