Interface Core¶
interface Core {
compileModel(model, device, config?): Promise<CompiledModel>;
compileModelSync(model, device, config?): CompiledModel;
readModel(modelPath, weightsPath?): Promise<Model>;
readModel(modelBuffer, weightsBuffer?): Promise<Model>;
readModelSync(modelPath, weightsPath?): Model;
readModelSync(modelBuffer, weightsBuffer?): Model;
}}
Defined in addon.ts:23
Methods¶
compileModel
compileModel(model, device, config?): Promise<CompiledModel>
Parameters
model: Model
device: string
Optional
config: { [option: string]: string; }
[option: string]:string
Returns Promise<CompiledModel >
Defined in addon.ts:24
compileModelSync
compileModelSync(model, device, config?): CompiledModel
Parameters
model: Model
device: string
Optional
config: { [option: string]: string; }
[option: string]:string
Returns CompiledModel
Defined in addon.ts:29
readModel
readModel(modelPath, weightsPath?): Promise<Model>
Parameters
modelPath: string
Optional
weightsPath: string
Returns Promise<Model>
Defined in addon.ts:34
readModel(modelBuffer, weightsBuffer?): Promise<Model>
Parameters
modelBuffer: Uint8Array
Optional
weightsBuffer: Uint8Array
Returns Promise<Model>
Defined in addon.ts:35
readModelSync
readModelSync(modelPath, weightsPath?): Model
Parameters
modelPath: string
Optional
weightsPath: string
Returns Model
Defined in addon.ts:37
readModelSync(modelBuffer, weightsBuffer?): Model
Parameters
modelBuffer: Uint8Array
Optional
weightsBuffer: Uint8Array
Returns Model
Defined in addon.ts:38