Libtorch CPP Api for Memory Format Channels Last

Yes, transforming the inputs and parameters should work as shown here.