Skip to main content

TensorMath.power

Function

Raises elements of inTensor to the power of val, and puts the results 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.

power(inTensor, val, outTensor): void

Raises elements of inTensor to the power of val, and puts the results into outTensor.

Parameters

ParameterType
inTensorFloat32Array
valnumber
outTensorFloat32Array

Returns

void