Interface Model
interface Model {
inputs: Output[];
outputs: Output[];
getFriendlyName(): string;
getName(): string;
getOutputShape(index): number[];
getOutputSize(): number;
input(): Output;
input(name): Output;
input(index): Output;
isDynamic(): boolean;
output(): Output;
output(name): Output;
output(index): Output;
setFriendlyName(name): void;
}
A user-defined model read by Core.readModel.
Properties
inputs
inputs: Output[]
outputs
outputs: Output[]
Methods
getFriendlyName
getName
getOutputShape
getOutputSize
input
input(): Output
It gets the input of the model. If a model has more than one input,
this method throws an exception.
input(name: string): Output
It gets the input of the model identified by the tensor name.
Parameters:
Optional
name: string
The tensor name.
Returns: Output
Defined in:
addon.ts:224
input(index: number): Output
It gets the input of the model identified by the index.
Parameters:
Optional
index: number
The index of the input.
Returns: Output
Defined in:
addon.ts:229
isDynamic
output
output(nameOrId?): Output
Parameters:
Optional
nameOrId: string|number
Returns: Output
Defined in:
addon.ts:194
setFriendlyName
setFriendlyName(name): void