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

◆ NN_nhwc_to_nchw()

void NN_nhwc_to_nchw ( Tensor out,
const Tensor in 
)

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

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