license import { Tensor } from './tensor' ; import { NamedTensorMap } from './tensor_types' ; import { DataType } from './types' ; export interface ModelPredictConfig { /**
     * Optional. Batch size (Integer). If unspecified, it will default to 32.
     */ batchSize ? : number ; /**
     * Optional. Verbosity mode. Defaults to false.
     */ verbose ? : boolean ; } /**
 * Interface for model input/output tensor info.
 */ export interface ModelTensorInfo { name : string ; shape ? : number [ ] ; dtype : DataType ; tfDtype ? : string ; } /**
 * Common interface for a machine learning model that can do inference.
 */ export interface InferenceModel { /**
     * Return the array of input tensor info.
     */ readonly inputs : ModelTensorInfo [ ] ; /**
     * Return the array of output tensor info.
     */ readonly outputs : ModelTensorInfo [ ] ; param input param config returns predict ( inputs , config ) : Tensor | Tensor [ ] | NamedTensorMap ; param input param outputs returns execute ( inputs , outputs ) : Tensor | Tensor [ ] ; } deprecated export interface MetaGraphInfo { tags : string [ ] ; signatureDefs : SignatureDefInfo ; } deprecated export interface SignatureDefInfo { [ key ] : { inputs : { [ key ] : SavedModelTensorInfo ; } ; outputs : { [ key ] : SavedModelTensorInfo ; } ; } ; } deprecated export interface SavedModelTensorInfo { dtype : string ; shape : number [ ] ; name : string ; } /**
 * Interface for SavedModel/GraphModel MetaGraph info.
 */ export interface MetaGraph { tags : string [ ] ; signatureDefs : SignatureDef ; } /**
 * Interface for SavedModel/GraphModel SignatureDef entry.
 */ export interface SignatureDefEntry { inputs : { [ key ] : ModelTensorInfo ; } ; outputs : { [ key ] : ModelTensorInfo ; } ; } /**
 * Interface for SavedModel/GraphModel SignatureDef info.
 */ export interface SignatureDef { [ key ] : SignatureDefEntry ; }