Skip to main content

TensorMath.permute

Function

Rearranges the inTensor of inShape according to the desired ordering and puts the result into outTensor.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

permute(inTensor, inShape, permuteAxis, outTensor): void

Rearranges the inTensor of inShape according to the desired ordering and puts the result into outTensor.

Parameters

ParameterType
inTensorFloat32Array
inShapevec3
permuteAxisvec3
outTensorFloat32Array

Returns

void