Baremetal-NN
Baremetal-NN API documentation
Loading...
Searching...
No Matches

◆ NN_nchw_to_nhwc()

void NN_nchw_to_nhwc ( Tensor out,
const Tensor in 
)

Converts a tensor from NCHW (PyTorch) to NHWC (Channel-last) format.

Parameters
outthe output tensor of shape (batch_size, height, width, channels)
inthe input tensor of shape (batch_size, channels, height, width)