redisai-js
Version:
A high-performance Typescript client for RedisAI
29 lines (28 loc) • 981 B
TypeScript
/**
* Direct mapping to RedisAI Script
*/
export declare class Script {
/**
*
* @param device - the device that will execute the model. can be of CPU or GPU
* @param script - a string containing TorchScript source code
*/
constructor(device: string, script: string);
private _tag;
get tag(): string | undefined;
/**
* sets an optional string for tagging the model such as a version number or any arbitrary identifier
* @param value
*/
set tag(value: string | undefined);
private _device;
get device(): string;
set device(value: string);
private _script;
get script(): string;
set script(value: string);
static NewScriptFromScriptGetReply(reply: any[]): Script;
scriptSetFlatArgs(keyName: string): string[];
static scriptRunFlatArgs(scriptName: string, functionName: string, inputs: string[], outputs: string[]): string[];
static scriptGetFlatArgs(scriptName: string): string[];
}