Skip to main content

TensorMath.max

Function

Places the maximum values of inTensor 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.

max(inTensor, inShape, outTensor): void

Places the maximum values of inTensor into outTensor.

outTensor should have the shape {1, 1, channels}.

Parameters

ParameterType
inTensorFloat32Array
inShapevec3
outTensorFloat32Array

Returns

void