Type Definitions
postprocessCallback(dataOrCallback, dataOrCallback[, postprocessingCallback, shapesopt, shapes[) → {Array.<Object>}
Function to call to perform inference.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
dataOrCallback |
Array.<Object> | preprocessCallback | The data to input, or a callback that will fill the input buffers. | |
dataOrCallback[ |
Array.<number> | Array of numbers, representing one of the inputs of the inference. | |
postprocessingCallback |
postprocessCallback | null | The callback to perform postprocessing (null to use the default postprocessing with Float32) | |
shapes |
Array.<Object> |
<optional> |
Array of shapes of the input data. If absent or empty, the model will be queried for the default input shapes. |
shapes[ |
Array.<number> | Array of integers, representing the shape of a tensor. |
Returns:
Array of objects, each representing one output of the inference
- Type
- Array.<Object>