Back to Firebase Js Sdk

HybridParams interface

docs-devsite/ai.hybridparams.md

12.12.12.2 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

HybridParams interface

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Configures hybrid inference.

<b>Signature:</b>

typescript
export interface HybridParams 

Properties

PropertyTypeDescription
inCloudParamsModelParams<b><i>(Public Preview)</i></b> Optional. Specifies advanced params for in-cloud inference.
modeInferenceMode<b><i>(Public Preview)</i></b> Specifies on-device or in-cloud inference. Defaults to prefer on-device.
onDeviceParamsOnDeviceParams<b><i>(Public Preview)</i></b> Optional. Specifies advanced params for on-device inference.

HybridParams.inCloudParams

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Optional. Specifies advanced params for in-cloud inference.

<b>Signature:</b>

typescript
inCloudParams?: ModelParams;

HybridParams.mode

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Specifies on-device or in-cloud inference. Defaults to prefer on-device.

<b>Signature:</b>

typescript
mode: InferenceMode;

HybridParams.onDeviceParams

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Optional. Specifies advanced params for on-device inference.

<b>Signature:</b>

typescript
onDeviceParams?: OnDeviceParams;