Class TensorShape

Note

Construct via the Class AniraWeb factory in most cases: aniraWeb.TensorShape(...) rather than new TensorShape(...). The factory threads the WASM instance through for you.

class TensorShape(wasmInstance, inputShapeListOrPtr, outputShapeListOrPtr)

TypeScript wrapper for anira::TensorShape Thread-safe C API wrapper

Extends:
  • BaseWrapper

Arguments:
  • wasmInstance (AniraWasmInstance)

  • inputShapeListOrPtr (PossiblePointer<TensorShapeList>)

  • outputShapeListOrPtr (PossiblePointer<TensorShapeList>)

destroy()

Free the underlying C++ object. See Lifecycle and Cleanup for when to call this.

equals(other)
Arguments:
  • other (PossiblePointer<TensorShape>)

Returns:

boolean

getTensorInputShape()

Mirrors the anira::TensorShape::m_tensor_input_shape field.

Returns:

TensorShapeList

getTensorOutputShape()

Mirrors the anira::TensorShape::m_tensor_output_shape field.

Returns:

TensorShapeList

isUniversal()

Mirrors anira::TensorShape::is_universal().

Returns:

boolean

notEquals(other)
Arguments:
  • other (PossiblePointer<TensorShape>)

Returns:

boolean