as_formular

Tensor.as_formular()

Creates a new Tensor object with normalized TensorInfo.

The returned tensor shares the same underlying buffer but has a normalized TensorInfo (Rank0 shapes converted to Rank1[1], strides populated if empty).

Returns:

A new Tensor object with normalized info.

Return type:

Tensor