Skip to main content

TensorMath.argMax

Function

Returns the indices of the maximum values along an the channels of inTensor, with the specified inShape.

  • 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.

argMax(inTensor, inShape, outTensor): void

Returns the indices of the maximum values along an the channels of inTensor, with the specified inShape. The result is put into outTensor.

If inShape = {width, height, channels}, then the shape of outTensor should be {1, 2, channels}.

Parameters

ParameterType
inTensorFloat32Array
inShapevec3
outTensorUint32Array

Returns

void