# InferenceSession | ONNX Runtime JavaScript API
Documentation for ONNX Runtime JavaScript API

## Index

### Interfaces

- CpuExecutionProviderOption
- CudaExecutionProviderOption
- ExecutionProviderOption
- ExecutionProviderOptionMap
- RunOptions
- SessionOptions
- ValueMetadata
- WebAssemblyExecutionProviderOption
- WebGLExecutionProviderOption

### Type aliases

- ExecutionProviderConfig
- ExecutionProviderName
- FeedsType
- FetchesType
- NullableOnnxValueMapType
- OnnxValueMapType
- ReturnType

## Type aliases

### ExecutionProviderConfig

ExecutionProviderConfig: ExecutionProviderOptionMap [ ExecutionProviderName ] | ExecutionProviderOption | ExecutionProviderName | string

- Defined in inference-session.ts:170

### ExecutionProviderName

ExecutionProviderName: keyof ExecutionProviderOptionMap

- Defined in inference-session.ts:169

### FeedsType

FeedsType: OnnxValueMapType

- Defined in inference-session.ts:18

A feeds (model inputs) is an object that uses input names as keys and OnnxValue as corresponding values.

### FetchesType

FetchesType: readonly string[] | NullableOnnxValueMapType

- Defined in inference-session.ts:32

A fetches (model outputs) could be one of the following:

- Omitted. Use model's output names definition.
- An array of string indicating the output names.
- An object that use output names as keys and OnnxValue or null as corresponding values.

remark

  different from input argument, in output, OnnxValue is optional. If an OnnxValue is present it will be used as a pre-allocated value by the inference engine; if omitted, inference engine will allocate buffer internally.

### NullableOnnxValueMapType

NullableOnnxValueMapType: {}

- Defined in inference-session.ts:13

#### Type declaration

- ##### [name: string]: OnnxValue | null

### OnnxValueMapType

OnnxValueMapType: {}

- Defined in inference-session.ts:12

#### Type declaration

- ##### [name: string]: OnnxValue

### ReturnType

ReturnType: OnnxValueMapType

- Defined in inference-session.ts:37

A inferencing return type is an object that uses output names as keys and OnnxValue as corresponding values.

Generated using TypeDoc