Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • NetInput

Index

Constructors

constructor

  • new NetInput(inputs: any[], treatAsBatchInput?: boolean): NetInput

Accessors

batchSize

  • get batchSize(): number

canvases

  • get canvases(): HTMLCanvasElement[]

imageTensors

  • get imageTensors(): any[]

inputDimensions

  • get inputDimensions(): number[][]

inputSize

  • get inputSize(): undefined | number

isBatchInput

  • get isBatchInput(): boolean

reshapedInputDimensions

Methods

getInput

  • getInput(batchIdx: number): any

getInputDimensions

  • getInputDimensions(batchIdx: number): number[]

getInputHeight

  • getInputHeight(batchIdx: number): number

getInputWidth

  • getInputWidth(batchIdx: number): number

getReshapedInputDimensions

  • getReshapedInputDimensions(batchIdx: number): Dimensions

toBatchTensor

  • toBatchTensor(inputSize: number, isCenterInputs?: boolean): Tensor4D
  • Create a batch tensor from all input canvases and tensors with size [batchSize, inputSize, inputSize, 3].

    Parameters

    • inputSize: number

      Height and width of the tensor.

    • isCenterInputs: boolean = true

    Returns Tensor4D

    The batch tensor.