Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tensorflow/tfjs-converter

Package Overview
Dependencies
Maintainers
11
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tensorflow/tfjs-converter - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

813

dist/src/data/compiled_api.d.ts

@@ -1,425 +0,422 @@

/** Namespace tensorflow. */
export declare namespace tensorflow {
/** Properties of an Any. */
interface IAny {
/** Any typeUrl */
typeUrl?: (string | null);
/** Any value */
value?: (Uint8Array | null);
/** Properties of an Any. */
export declare interface IAny {
/** Any typeUrl */
typeUrl?: (string | null);
/** Any value */
value?: (Uint8Array | null);
}
/** DataType enum. */
export declare enum DataType {
DT_INVALID = 0,
DT_FLOAT = 1,
DT_DOUBLE = 2,
DT_INT32 = 3,
DT_UINT8 = 4,
DT_INT16 = 5,
DT_INT8 = 6,
DT_STRING = 7,
DT_COMPLEX64 = 8,
DT_INT64 = 9,
DT_BOOL = 10,
DT_QINT8 = 11,
DT_QUINT8 = 12,
DT_QINT32 = 13,
DT_BFLOAT16 = 14,
DT_FLOAT_REF = 101,
DT_DOUBLE_REF = 102,
DT_INT32_REF = 103,
DT_UINT8_REF = 104,
DT_INT16_REF = 105,
DT_INT8_REF = 106,
DT_STRING_REF = 107,
DT_COMPLEX64_REF = 108,
DT_INT64_REF = 109,
DT_BOOL_REF = 110,
DT_QINT8_REF = 111,
DT_QUINT8_REF = 112,
DT_QINT32_REF = 113,
DT_BFLOAT16_REF = 114
}
/** Properties of a TensorShape. */
export declare interface ITensorShape {
/** TensorShape dim */
dim?: (TensorShape.IDim[] | null);
/** TensorShape unknownRank */
unknownRank?: (boolean | null);
}
export declare namespace TensorShape {
/** Properties of a Dim. */
interface IDim {
/** Dim size */
size?: (number | string | null);
/** Dim name */
name?: (string | null);
}
/** DataType enum. */
enum DataType {
DT_INVALID = 0,
DT_FLOAT = 1,
DT_DOUBLE = 2,
DT_INT32 = 3,
DT_UINT8 = 4,
DT_INT16 = 5,
DT_INT8 = 6,
DT_STRING = 7,
DT_COMPLEX64 = 8,
DT_INT64 = 9,
DT_BOOL = 10,
DT_QINT8 = 11,
DT_QUINT8 = 12,
DT_QINT32 = 13,
DT_BFLOAT16 = 14,
DT_FLOAT_REF = 101,
DT_DOUBLE_REF = 102,
DT_INT32_REF = 103,
DT_UINT8_REF = 104,
DT_INT16_REF = 105,
DT_INT8_REF = 106,
DT_STRING_REF = 107,
DT_COMPLEX64_REF = 108,
DT_INT64_REF = 109,
DT_BOOL_REF = 110,
DT_QINT8_REF = 111,
DT_QUINT8_REF = 112,
DT_QINT32_REF = 113,
DT_BFLOAT16_REF = 114
}
/** Properties of a Tensor. */
export declare interface ITensor {
/** Tensor dtype */
dtype?: (DataType | null);
/** Tensor tensorShape */
tensorShape?: (ITensorShape | null);
/** Tensor versionNumber */
versionNumber?: (number | null);
/** Tensor tensorContent */
tensorContent?: (Uint8Array | null);
/** Tensor floatVal */
floatVal?: (number[] | null);
/** Tensor doubleVal */
doubleVal?: (number[] | null);
/** Tensor intVal */
intVal?: (number[] | null);
/** Tensor stringVal */
stringVal?: (Uint8Array[] | null);
/** Tensor scomplexVal */
scomplexVal?: (number[] | null);
/** Tensor int64Val */
int64Val?: ((number | string)[] | null);
/** Tensor boolVal */
boolVal?: (boolean[] | null);
/** Tensor uint32Val */
uint32Val?: (number[] | null);
/** Tensor uint64Val */
uint64Val?: ((number | string)[] | null);
}
/** Properties of an AttrValue. */
export declare interface IAttrValue {
/** AttrValue list */
list?: (AttrValue.IListValue | null);
/** AttrValue s */
s?: (string | null);
/** AttrValue i */
i?: (number | string | null);
/** AttrValue f */
f?: (number | null);
/** AttrValue b */
b?: (boolean | null);
/** AttrValue type */
type?: (DataType | null);
/** AttrValue shape */
shape?: (ITensorShape | null);
/** AttrValue tensor */
tensor?: (ITensor | null);
/** AttrValue placeholder */
placeholder?: (string | null);
/** AttrValue func */
func?: (INameAttrList | null);
}
export declare namespace AttrValue {
/** Properties of a ListValue. */
interface IListValue {
/** ListValue s */
s?: (string[] | null);
/** ListValue i */
i?: ((number | string)[] | null);
/** ListValue f */
f?: (number[] | null);
/** ListValue b */
b?: (boolean[] | null);
/** ListValue type */
type?: (DataType[] | null);
/** ListValue shape */
shape?: (ITensorShape[] | null);
/** ListValue tensor */
tensor?: (ITensor[] | null);
/** ListValue func */
func?: (INameAttrList[] | null);
}
/** Properties of a TensorShape. */
interface ITensorShape {
/** TensorShape dim */
dim?: (tensorflow.TensorShape.IDim[] | null);
/** TensorShape unknownRank */
unknownRank?: (boolean | null);
}
/** Properties of a NameAttrList. */
export declare interface INameAttrList {
/** NameAttrList name */
name?: (string | null);
/** NameAttrList attr */
attr?: ({
[k: string]: IAttrValue;
} | null);
}
/** Properties of a NodeDef. */
export declare interface INodeDef {
/** NodeDef name */
name?: (string | null);
/** NodeDef op */
op?: (string | null);
/** NodeDef input */
input?: (string[] | null);
/** NodeDef device */
device?: (string | null);
/** NodeDef attr */
attr?: ({
[k: string]: IAttrValue;
} | null);
}
/** Properties of a VersionDef. */
export declare interface IVersionDef {
/** VersionDef producer */
producer?: (number | null);
/** VersionDef minConsumer */
minConsumer?: (number | null);
/** VersionDef badConsumers */
badConsumers?: (number[] | null);
}
/** Properties of a GraphDef. */
export declare interface IGraphDef {
/** GraphDef node */
node?: (INodeDef[] | null);
/** GraphDef versions */
versions?: (IVersionDef | null);
/** GraphDef library */
library?: (IFunctionDefLibrary | null);
}
/** Properties of a CollectionDef. */
export declare interface ICollectionDef {
/** CollectionDef nodeList */
nodeList?: (CollectionDef.INodeList | null);
/** CollectionDef bytesList */
bytesList?: (CollectionDef.IBytesList | null);
/** CollectionDef int64List */
int64List?: (CollectionDef.IInt64List | null);
/** CollectionDef floatList */
floatList?: (CollectionDef.IFloatList | null);
/** CollectionDef anyList */
anyList?: (CollectionDef.IAnyList | null);
}
export declare namespace CollectionDef {
/** Properties of a NodeList. */
interface INodeList {
/** NodeList value */
value?: (string[] | null);
}
namespace TensorShape {
/** Properties of a Dim. */
interface IDim {
/** Dim size */
size?: (number | string | null);
/** Dim name */
name?: (string | null);
}
/** Properties of a BytesList. */
interface IBytesList {
/** BytesList value */
value?: (Uint8Array[] | null);
}
/** Properties of a Tensor. */
interface ITensor {
/** Tensor dtype */
dtype?: (tensorflow.DataType | null);
/** Tensor tensorShape */
tensorShape?: (tensorflow.ITensorShape | null);
/** Tensor versionNumber */
versionNumber?: (number | null);
/** Tensor tensorContent */
tensorContent?: (Uint8Array | null);
/** Tensor floatVal */
floatVal?: (number[] | null);
/** Tensor doubleVal */
doubleVal?: (number[] | null);
/** Tensor intVal */
intVal?: (number[] | null);
/** Tensor stringVal */
stringVal?: (Uint8Array[] | null);
/** Tensor scomplexVal */
scomplexVal?: (number[] | null);
/** Tensor int64Val */
int64Val?: ((number | string)[] | null);
/** Tensor boolVal */
boolVal?: (boolean[] | null);
/** Tensor uint32Val */
uint32Val?: (number[] | null);
/** Tensor uint64Val */
uint64Val?: ((number | string)[] | null);
/** Properties of an Int64List. */
interface IInt64List {
/** Int64List value */
value?: ((number | string)[] | null);
}
/** Properties of an AttrValue. */
interface IAttrValue {
/** AttrValue list */
list?: (tensorflow.AttrValue.IListValue | null);
/** AttrValue s */
s?: (string | null);
/** AttrValue i */
i?: (number | string | null);
/** AttrValue f */
f?: (number | null);
/** AttrValue b */
b?: (boolean | null);
/** AttrValue type */
type?: (tensorflow.DataType | null);
/** AttrValue shape */
shape?: (tensorflow.ITensorShape | null);
/** AttrValue tensor */
tensor?: (tensorflow.ITensor | null);
/** AttrValue placeholder */
placeholder?: (string | null);
/** AttrValue func */
func?: (tensorflow.INameAttrList | null);
/** Properties of a FloatList. */
interface IFloatList {
/** FloatList value */
value?: (number[] | null);
}
namespace AttrValue {
/** Properties of a ListValue. */
interface IListValue {
/** ListValue s */
s?: (string[] | null);
/** ListValue i */
i?: ((number | string)[] | null);
/** ListValue f */
f?: (number[] | null);
/** ListValue b */
b?: (boolean[] | null);
/** ListValue type */
type?: (tensorflow.DataType[] | null);
/** ListValue shape */
shape?: (tensorflow.ITensorShape[] | null);
/** ListValue tensor */
tensor?: (tensorflow.ITensor[] | null);
/** ListValue func */
func?: (tensorflow.INameAttrList[] | null);
}
/** Properties of an AnyList. */
interface IAnyList {
/** AnyList value */
value?: (IAny[] | null);
}
/** Properties of a NameAttrList. */
interface INameAttrList {
/** NameAttrList name */
name?: (string | null);
/** NameAttrList attr */
attr?: ({
[k: string]: tensorflow.IAttrValue;
} | null);
}
/** Properties of a SaverDef. */
export declare interface ISaverDef {
/** SaverDef filenameTensorName */
filenameTensorName?: (string | null);
/** SaverDef saveTensorName */
saveTensorName?: (string | null);
/** SaverDef restoreOpName */
restoreOpName?: (string | null);
/** SaverDef maxToKeep */
maxToKeep?: (number | null);
/** SaverDef sharded */
sharded?: (boolean | null);
/** SaverDef keepCheckpointEveryNHours */
keepCheckpointEveryNHours?: (number | null);
/** SaverDef version */
version?: (SaverDef.CheckpointFormatVersion | null);
}
export declare namespace SaverDef {
/** CheckpointFormatVersion enum. */
enum CheckpointFormatVersion {
LEGACY = 0,
V1 = 1,
V2 = 2
}
/** Properties of a NodeDef. */
interface INodeDef {
/** NodeDef name */
name?: (string | null);
/** NodeDef op */
op?: (string | null);
/** NodeDef input */
input?: (string[] | null);
/** NodeDef device */
device?: (string | null);
/** NodeDef attr */
attr?: ({
[k: string]: tensorflow.IAttrValue;
} | null);
}
/** Properties of a TensorInfo. */
export declare interface ITensorInfo {
/** TensorInfo name */
name?: (string | null);
/** TensorInfo cooSparse */
cooSparse?: (TensorInfo.ICooSparse | null);
/** TensorInfo dtype */
dtype?: (DataType | null);
/** TensorInfo tensorShape */
tensorShape?: (ITensorShape | null);
}
export declare namespace TensorInfo {
/** Properties of a CooSparse. */
interface ICooSparse {
/** CooSparse valuesTensorName */
valuesTensorName?: (string | null);
/** CooSparse indicesTensorName */
indicesTensorName?: (string | null);
/** CooSparse denseShapeTensorName */
denseShapeTensorName?: (string | null);
}
/** Properties of a VersionDef. */
interface IVersionDef {
/** VersionDef producer */
producer?: (number | null);
/** VersionDef minConsumer */
minConsumer?: (number | null);
/** VersionDef badConsumers */
badConsumers?: (number[] | null);
}
/** Properties of a GraphDef. */
interface IGraphDef {
/** GraphDef node */
node?: (tensorflow.INodeDef[] | null);
/** GraphDef versions */
versions?: (tensorflow.IVersionDef | null);
/** GraphDef library */
library?: (tensorflow.IFunctionDefLibrary | null);
}
/** Properties of a CollectionDef. */
interface ICollectionDef {
/** CollectionDef nodeList */
nodeList?: (tensorflow.CollectionDef.INodeList | null);
/** CollectionDef bytesList */
bytesList?: (tensorflow.CollectionDef.IBytesList | null);
/** CollectionDef int64List */
int64List?: (tensorflow.CollectionDef.IInt64List | null);
/** CollectionDef floatList */
floatList?: (tensorflow.CollectionDef.IFloatList | null);
/** CollectionDef anyList */
anyList?: (tensorflow.CollectionDef.IAnyList | null);
}
namespace CollectionDef {
/** Properties of a NodeList. */
interface INodeList {
/** NodeList value */
value?: (string[] | null);
}
/** Properties of a BytesList. */
interface IBytesList {
/** BytesList value */
value?: (Uint8Array[] | null);
}
/** Properties of an Int64List. */
interface IInt64List {
/** Int64List value */
value?: ((number | string)[] | null);
}
/** Properties of a FloatList. */
interface IFloatList {
/** FloatList value */
value?: (number[] | null);
}
/** Properties of an AnyList. */
interface IAnyList {
/** AnyList value */
value?: (tensorflow.IAny[] | null);
}
}
/** Properties of a SaverDef. */
interface ISaverDef {
/** SaverDef filenameTensorName */
filenameTensorName?: (string | null);
/** SaverDef saveTensorName */
saveTensorName?: (string | null);
/** SaverDef restoreOpName */
restoreOpName?: (string | null);
/** SaverDef maxToKeep */
maxToKeep?: (number | null);
/** SaverDef sharded */
sharded?: (boolean | null);
/** SaverDef keepCheckpointEveryNHours */
keepCheckpointEveryNHours?: (number | null);
/** SaverDef version */
version?: (tensorflow.SaverDef.CheckpointFormatVersion | null);
}
namespace SaverDef {
/** CheckpointFormatVersion enum. */
enum CheckpointFormatVersion {
LEGACY = 0,
V1 = 1,
V2 = 2
}
}
/** Properties of a TensorInfo. */
interface ITensorInfo {
/** TensorInfo name */
}
/** Properties of a SignatureDef. */
export declare interface ISignatureDef {
/** SignatureDef inputs */
inputs?: ({
[k: string]: ITensorInfo;
} | null);
/** SignatureDef outputs */
outputs?: ({
[k: string]: ITensorInfo;
} | null);
/** SignatureDef methodName */
methodName?: (string | null);
}
/** Properties of an AssetFileDef. */
export declare interface IAssetFileDef {
/** AssetFileDef tensorInfo */
tensorInfo?: (ITensorInfo | null);
/** AssetFileDef filename */
filename?: (string | null);
}
/** Properties of an OpDef. */
export declare interface IOpDef {
/** OpDef name */
name?: (string | null);
/** OpDef inputArg */
inputArg?: (OpDef.IArgDef[] | null);
/** OpDef outputArg */
outputArg?: (OpDef.IArgDef[] | null);
/** OpDef attr */
attr?: (OpDef.IAttrDef[] | null);
/** OpDef deprecation */
deprecation?: (OpDef.IOpDeprecation | null);
/** OpDef summary */
summary?: (string | null);
/** OpDef description */
description?: (string | null);
/** OpDef isCommutative */
isCommutative?: (boolean | null);
/** OpDef isAggregate */
isAggregate?: (boolean | null);
/** OpDef isStateful */
isStateful?: (boolean | null);
/** OpDef allowsUninitializedInput */
allowsUninitializedInput?: (boolean | null);
}
export declare namespace OpDef {
/** Properties of an ArgDef. */
interface IArgDef {
/** ArgDef name */
name?: (string | null);
/** TensorInfo cooSparse */
cooSparse?: (tensorflow.TensorInfo.ICooSparse | null);
/** TensorInfo dtype */
dtype?: (tensorflow.DataType | null);
/** TensorInfo tensorShape */
tensorShape?: (tensorflow.ITensorShape | null);
/** ArgDef description */
description?: (string | null);
/** ArgDef type */
type?: (DataType | null);
/** ArgDef typeAttr */
typeAttr?: (string | null);
/** ArgDef numberAttr */
numberAttr?: (string | null);
/** ArgDef typeListAttr */
typeListAttr?: (string | null);
/** ArgDef isRef */
isRef?: (boolean | null);
}
namespace TensorInfo {
/** Properties of a CooSparse. */
interface ICooSparse {
/** CooSparse valuesTensorName */
valuesTensorName?: (string | null);
/** CooSparse indicesTensorName */
indicesTensorName?: (string | null);
/** CooSparse denseShapeTensorName */
denseShapeTensorName?: (string | null);
}
}
/** Properties of a SignatureDef. */
interface ISignatureDef {
/** SignatureDef inputs */
inputs?: ({
[k: string]: tensorflow.ITensorInfo;
} | null);
/** SignatureDef outputs */
outputs?: ({
[k: string]: tensorflow.ITensorInfo;
} | null);
/** SignatureDef methodName */
methodName?: (string | null);
}
/** Properties of an AssetFileDef. */
interface IAssetFileDef {
/** AssetFileDef tensorInfo */
tensorInfo?: (tensorflow.ITensorInfo | null);
/** AssetFileDef filename */
filename?: (string | null);
}
/** Properties of an OpDef. */
interface IOpDef {
/** OpDef name */
/** Properties of an AttrDef. */
interface IAttrDef {
/** AttrDef name */
name?: (string | null);
/** OpDef inputArg */
inputArg?: (tensorflow.OpDef.IArgDef[] | null);
/** OpDef outputArg */
outputArg?: (tensorflow.OpDef.IArgDef[] | null);
/** OpDef attr */
attr?: (tensorflow.OpDef.IAttrDef[] | null);
/** OpDef deprecation */
deprecation?: (tensorflow.OpDef.IOpDeprecation | null);
/** OpDef summary */
summary?: (string | null);
/** OpDef description */
/** AttrDef type */
type?: (string | null);
/** AttrDef defaultValue */
defaultValue?: (IAttrValue | null);
/** AttrDef description */
description?: (string | null);
/** OpDef isCommutative */
isCommutative?: (boolean | null);
/** OpDef isAggregate */
isAggregate?: (boolean | null);
/** OpDef isStateful */
isStateful?: (boolean | null);
/** OpDef allowsUninitializedInput */
allowsUninitializedInput?: (boolean | null);
/** AttrDef hasMinimum */
hasMinimum?: (boolean | null);
/** AttrDef minimum */
minimum?: (number | string | null);
/** AttrDef allowedValues */
allowedValues?: (IAttrValue | null);
}
namespace OpDef {
/** Properties of an ArgDef. */
interface IArgDef {
/** ArgDef name */
name?: (string | null);
/** ArgDef description */
description?: (string | null);
/** ArgDef type */
type?: (tensorflow.DataType | null);
/** ArgDef typeAttr */
typeAttr?: (string | null);
/** ArgDef numberAttr */
numberAttr?: (string | null);
/** ArgDef typeListAttr */
typeListAttr?: (string | null);
/** ArgDef isRef */
isRef?: (boolean | null);
}
/** Properties of an AttrDef. */
interface IAttrDef {
/** AttrDef name */
name?: (string | null);
/** AttrDef type */
type?: (string | null);
/** AttrDef defaultValue */
defaultValue?: (tensorflow.IAttrValue | null);
/** AttrDef description */
description?: (string | null);
/** AttrDef hasMinimum */
hasMinimum?: (boolean | null);
/** AttrDef minimum */
minimum?: (number | string | null);
/** AttrDef allowedValues */
allowedValues?: (tensorflow.IAttrValue | null);
}
/** Properties of an OpDeprecation. */
interface IOpDeprecation {
/** OpDeprecation version */
version?: (number | null);
/** OpDeprecation explanation */
explanation?: (string | null);
}
/** Properties of an OpDeprecation. */
interface IOpDeprecation {
/** OpDeprecation version */
version?: (number | null);
/** OpDeprecation explanation */
explanation?: (string | null);
}
/** Properties of an OpList. */
interface IOpList {
/** OpList op */
op?: (tensorflow.IOpDef[] | null);
}
/** Properties of an OpList. */
export declare interface IOpList {
/** OpList op */
op?: (IOpDef[] | null);
}
/** Properties of a MetaGraphDef. */
export declare interface IMetaGraphDef {
/** MetaGraphDef metaInfoDef */
metaInfoDef?: (MetaGraphDef.IMetaInfoDef | null);
/** MetaGraphDef graphDef */
graphDef?: (IGraphDef | null);
/** MetaGraphDef saverDef */
saverDef?: (ISaverDef | null);
/** MetaGraphDef collectionDef */
collectionDef?: ({
[k: string]: ICollectionDef;
} | null);
/** MetaGraphDef signatureDef */
signatureDef?: ({
[k: string]: ISignatureDef;
} | null);
/** MetaGraphDef assetFileDef */
assetFileDef?: (IAssetFileDef[] | null);
}
export declare namespace MetaGraphDef {
/** Properties of a MetaInfoDef. */
interface IMetaInfoDef {
/** MetaInfoDef metaGraphVersion */
metaGraphVersion?: (string | null);
/** MetaInfoDef strippedOpList */
strippedOpList?: (IOpList | null);
/** MetaInfoDef anyInfo */
anyInfo?: (IAny | null);
/** MetaInfoDef tags */
tags?: (string[] | null);
/** MetaInfoDef tensorflowVersion */
tensorflowVersion?: (string | null);
/** MetaInfoDef tensorflowGitVersion */
tensorflowGitVersion?: (string | null);
}
/** Properties of a MetaGraphDef. */
interface IMetaGraphDef {
/** MetaGraphDef metaInfoDef */
metaInfoDef?: (tensorflow.MetaGraphDef.IMetaInfoDef | null);
/** MetaGraphDef graphDef */
graphDef?: (tensorflow.IGraphDef | null);
/** MetaGraphDef saverDef */
saverDef?: (tensorflow.ISaverDef | null);
/** MetaGraphDef collectionDef */
collectionDef?: ({
[k: string]: tensorflow.ICollectionDef;
} | null);
/** MetaGraphDef signatureDef */
signatureDef?: ({
[k: string]: tensorflow.ISignatureDef;
} | null);
/** MetaGraphDef assetFileDef */
assetFileDef?: (tensorflow.IAssetFileDef[] | null);
}
namespace MetaGraphDef {
/** Properties of a MetaInfoDef. */
interface IMetaInfoDef {
/** MetaInfoDef metaGraphVersion */
metaGraphVersion?: (string | null);
/** MetaInfoDef strippedOpList */
strippedOpList?: (tensorflow.IOpList | null);
/** MetaInfoDef anyInfo */
anyInfo?: (tensorflow.IAny | null);
/** MetaInfoDef tags */
tags?: (string[] | null);
/** MetaInfoDef tensorflowVersion */
tensorflowVersion?: (string | null);
/** MetaInfoDef tensorflowGitVersion */
tensorflowGitVersion?: (string | null);
}
}
/** Properties of a SavedModel. */
interface ISavedModel {
/** SavedModel savedModelSchemaVersion */
savedModelSchemaVersion?: (number | string | null);
/** SavedModel metaGraphs */
metaGraphs?: (tensorflow.IMetaGraphDef[] | null);
}
/** Properties of a FunctionDefLibrary. */
interface IFunctionDefLibrary {
/** FunctionDefLibrary function */
'function'?: (tensorflow.IFunctionDef[] | null);
/** FunctionDefLibrary gradient */
gradient?: (tensorflow.IGradientDef[] | null);
}
/** Properties of a FunctionDef. */
interface IFunctionDef {
/** FunctionDef signature */
signature?: (tensorflow.IOpDef | null);
/** FunctionDef attr */
attr?: ({
[k: string]: tensorflow.IAttrValue;
} | null);
/** FunctionDef nodeDef */
nodeDef?: (tensorflow.INodeDef[] | null);
/** FunctionDef ret */
ret?: ({
[k: string]: string;
} | null);
}
/** Properties of a GradientDef. */
interface IGradientDef {
/** GradientDef functionName */
functionName?: (string | null);
/** GradientDef gradientFunc */
gradientFunc?: (string | null);
}
}
/** Properties of a SavedModel. */
export declare interface ISavedModel {
/** SavedModel savedModelSchemaVersion */
savedModelSchemaVersion?: (number | string | null);
/** SavedModel metaGraphs */
metaGraphs?: (IMetaGraphDef[] | null);
}
/** Properties of a FunctionDefLibrary. */
export declare interface IFunctionDefLibrary {
/** FunctionDefLibrary function */
'function'?: (IFunctionDef[] | null);
/** FunctionDefLibrary gradient */
gradient?: (IGradientDef[] | null);
}
/** Properties of a FunctionDef. */
export declare interface IFunctionDef {
/** FunctionDef signature */
signature?: (IOpDef | null);
/** FunctionDef attr */
attr?: ({
[k: string]: IAttrValue;
} | null);
/** FunctionDef nodeDef */
nodeDef?: (INodeDef[] | null);
/** FunctionDef ret */
ret?: ({
[k: string]: string;
} | null);
}
/** Properties of a GradientDef. */
export declare interface IGradientDef {
/** GradientDef functionName */
functionName?: (string | null);
/** GradientDef gradientFunc */
gradientFunc?: (string | null);
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/** Namespace tensorflow. */
var tensorflow;
(function (tensorflow) {
/** DataType enum. */
var DataType;
(function (DataType) {
DataType[DataType["DT_INVALID"] = 0] = "DT_INVALID";
DataType[DataType["DT_FLOAT"] = 1] = "DT_FLOAT";
DataType[DataType["DT_DOUBLE"] = 2] = "DT_DOUBLE";
DataType[DataType["DT_INT32"] = 3] = "DT_INT32";
DataType[DataType["DT_UINT8"] = 4] = "DT_UINT8";
DataType[DataType["DT_INT16"] = 5] = "DT_INT16";
DataType[DataType["DT_INT8"] = 6] = "DT_INT8";
DataType[DataType["DT_STRING"] = 7] = "DT_STRING";
DataType[DataType["DT_COMPLEX64"] = 8] = "DT_COMPLEX64";
DataType[DataType["DT_INT64"] = 9] = "DT_INT64";
DataType[DataType["DT_BOOL"] = 10] = "DT_BOOL";
DataType[DataType["DT_QINT8"] = 11] = "DT_QINT8";
DataType[DataType["DT_QUINT8"] = 12] = "DT_QUINT8";
DataType[DataType["DT_QINT32"] = 13] = "DT_QINT32";
DataType[DataType["DT_BFLOAT16"] = 14] = "DT_BFLOAT16";
DataType[DataType["DT_FLOAT_REF"] = 101] = "DT_FLOAT_REF";
DataType[DataType["DT_DOUBLE_REF"] = 102] = "DT_DOUBLE_REF";
DataType[DataType["DT_INT32_REF"] = 103] = "DT_INT32_REF";
DataType[DataType["DT_UINT8_REF"] = 104] = "DT_UINT8_REF";
DataType[DataType["DT_INT16_REF"] = 105] = "DT_INT16_REF";
DataType[DataType["DT_INT8_REF"] = 106] = "DT_INT8_REF";
DataType[DataType["DT_STRING_REF"] = 107] = "DT_STRING_REF";
DataType[DataType["DT_COMPLEX64_REF"] = 108] = "DT_COMPLEX64_REF";
DataType[DataType["DT_INT64_REF"] = 109] = "DT_INT64_REF";
DataType[DataType["DT_BOOL_REF"] = 110] = "DT_BOOL_REF";
DataType[DataType["DT_QINT8_REF"] = 111] = "DT_QINT8_REF";
DataType[DataType["DT_QUINT8_REF"] = 112] = "DT_QUINT8_REF";
DataType[DataType["DT_QINT32_REF"] = 113] = "DT_QINT32_REF";
DataType[DataType["DT_BFLOAT16_REF"] = 114] = "DT_BFLOAT16_REF";
})(DataType = tensorflow.DataType || (tensorflow.DataType = {}));
var SaverDef;
(function (SaverDef) {
/** CheckpointFormatVersion enum. */
var CheckpointFormatVersion;
(function (CheckpointFormatVersion) {
CheckpointFormatVersion[CheckpointFormatVersion["LEGACY"] = 0] = "LEGACY";
CheckpointFormatVersion[CheckpointFormatVersion["V1"] = 1] = "V1";
CheckpointFormatVersion[CheckpointFormatVersion["V2"] = 2] = "V2";
})(CheckpointFormatVersion = SaverDef.CheckpointFormatVersion || (SaverDef.CheckpointFormatVersion = {}));
})(SaverDef = tensorflow.SaverDef || (tensorflow.SaverDef = {}));
})(tensorflow = exports.tensorflow || (exports.tensorflow = {}));
/** DataType enum. */
var DataType;
(function (DataType) {
DataType[DataType["DT_INVALID"] = 0] = "DT_INVALID";
DataType[DataType["DT_FLOAT"] = 1] = "DT_FLOAT";
DataType[DataType["DT_DOUBLE"] = 2] = "DT_DOUBLE";
DataType[DataType["DT_INT32"] = 3] = "DT_INT32";
DataType[DataType["DT_UINT8"] = 4] = "DT_UINT8";
DataType[DataType["DT_INT16"] = 5] = "DT_INT16";
DataType[DataType["DT_INT8"] = 6] = "DT_INT8";
DataType[DataType["DT_STRING"] = 7] = "DT_STRING";
DataType[DataType["DT_COMPLEX64"] = 8] = "DT_COMPLEX64";
DataType[DataType["DT_INT64"] = 9] = "DT_INT64";
DataType[DataType["DT_BOOL"] = 10] = "DT_BOOL";
DataType[DataType["DT_QINT8"] = 11] = "DT_QINT8";
DataType[DataType["DT_QUINT8"] = 12] = "DT_QUINT8";
DataType[DataType["DT_QINT32"] = 13] = "DT_QINT32";
DataType[DataType["DT_BFLOAT16"] = 14] = "DT_BFLOAT16";
DataType[DataType["DT_FLOAT_REF"] = 101] = "DT_FLOAT_REF";
DataType[DataType["DT_DOUBLE_REF"] = 102] = "DT_DOUBLE_REF";
DataType[DataType["DT_INT32_REF"] = 103] = "DT_INT32_REF";
DataType[DataType["DT_UINT8_REF"] = 104] = "DT_UINT8_REF";
DataType[DataType["DT_INT16_REF"] = 105] = "DT_INT16_REF";
DataType[DataType["DT_INT8_REF"] = 106] = "DT_INT8_REF";
DataType[DataType["DT_STRING_REF"] = 107] = "DT_STRING_REF";
DataType[DataType["DT_COMPLEX64_REF"] = 108] = "DT_COMPLEX64_REF";
DataType[DataType["DT_INT64_REF"] = 109] = "DT_INT64_REF";
DataType[DataType["DT_BOOL_REF"] = 110] = "DT_BOOL_REF";
DataType[DataType["DT_QINT8_REF"] = 111] = "DT_QINT8_REF";
DataType[DataType["DT_QUINT8_REF"] = 112] = "DT_QUINT8_REF";
DataType[DataType["DT_QINT32_REF"] = 113] = "DT_QINT32_REF";
DataType[DataType["DT_BFLOAT16_REF"] = 114] = "DT_BFLOAT16_REF";
})(DataType = exports.DataType || (exports.DataType = {}));
var SaverDef;
(function (SaverDef) {
/** CheckpointFormatVersion enum. */
var CheckpointFormatVersion;
(function (CheckpointFormatVersion) {
CheckpointFormatVersion[CheckpointFormatVersion["LEGACY"] = 0] = "LEGACY";
CheckpointFormatVersion[CheckpointFormatVersion["V1"] = 1] = "V1";
CheckpointFormatVersion[CheckpointFormatVersion["V2"] = 2] = "V2";
})(CheckpointFormatVersion = SaverDef.CheckpointFormatVersion || (SaverDef.CheckpointFormatVersion = {}));
})(SaverDef = exports.SaverDef || (exports.SaverDef = {}));
//# sourceMappingURL=compiled_api.js.map

@@ -1,535 +0,533 @@

/** Namespace tensorflow. */
export namespace tensorflow {
/** Properties of an Any. */
export interface IAny {
/** Any typeUrl */
typeUrl?: (string|null);
/** Any value */
value?: (Uint8Array|null);
}
/** Properties of an Any. */
export declare interface IAny {
/** Any typeUrl */
typeUrl?: (string|null);
/** DataType enum. */
export enum DataType {
DT_INVALID = 0,
DT_FLOAT = 1,
DT_DOUBLE = 2,
DT_INT32 = 3,
DT_UINT8 = 4,
DT_INT16 = 5,
DT_INT8 = 6,
DT_STRING = 7,
DT_COMPLEX64 = 8,
DT_INT64 = 9,
DT_BOOL = 10,
DT_QINT8 = 11,
DT_QUINT8 = 12,
DT_QINT32 = 13,
DT_BFLOAT16 = 14,
DT_FLOAT_REF = 101,
DT_DOUBLE_REF = 102,
DT_INT32_REF = 103,
DT_UINT8_REF = 104,
DT_INT16_REF = 105,
DT_INT8_REF = 106,
DT_STRING_REF = 107,
DT_COMPLEX64_REF = 108,
DT_INT64_REF = 109,
DT_BOOL_REF = 110,
DT_QINT8_REF = 111,
DT_QUINT8_REF = 112,
DT_QINT32_REF = 113,
DT_BFLOAT16_REF = 114
}
/** Any value */
value?: (Uint8Array|null);
}
/** Properties of a TensorShape. */
export interface ITensorShape {
/** TensorShape dim */
dim?: (tensorflow.TensorShape.IDim[]|null);
/** DataType enum. */
export enum DataType {
DT_INVALID = 0,
DT_FLOAT = 1,
DT_DOUBLE = 2,
DT_INT32 = 3,
DT_UINT8 = 4,
DT_INT16 = 5,
DT_INT8 = 6,
DT_STRING = 7,
DT_COMPLEX64 = 8,
DT_INT64 = 9,
DT_BOOL = 10,
DT_QINT8 = 11,
DT_QUINT8 = 12,
DT_QINT32 = 13,
DT_BFLOAT16 = 14,
DT_FLOAT_REF = 101,
DT_DOUBLE_REF = 102,
DT_INT32_REF = 103,
DT_UINT8_REF = 104,
DT_INT16_REF = 105,
DT_INT8_REF = 106,
DT_STRING_REF = 107,
DT_COMPLEX64_REF = 108,
DT_INT64_REF = 109,
DT_BOOL_REF = 110,
DT_QINT8_REF = 111,
DT_QUINT8_REF = 112,
DT_QINT32_REF = 113,
DT_BFLOAT16_REF = 114
}
/** TensorShape unknownRank */
unknownRank?: (boolean|null);
}
/** Properties of a TensorShape. */
export declare interface ITensorShape {
/** TensorShape dim */
dim?: (TensorShape.IDim[]|null);
export namespace TensorShape {
/** Properties of a Dim. */
export interface IDim {
/** Dim size */
size?: (number|string|null);
/** TensorShape unknownRank */
unknownRank?: (boolean|null);
}
/** Dim name */
name?: (string|null);
}
export namespace TensorShape {
/** Properties of a Dim. */
export declare interface IDim {
/** Dim size */
size?: (number|string|null);
/** Dim name */
name?: (string|null);
}
}
/** Properties of a Tensor. */
export interface ITensor {
/** Tensor dtype */
dtype?: (tensorflow.DataType|null);
/** Properties of a Tensor. */
export declare interface ITensor {
/** Tensor dtype */
dtype?: (DataType|null);
/** Tensor tensorShape */
tensorShape?: (tensorflow.ITensorShape|null);
/** Tensor tensorShape */
tensorShape?: (ITensorShape|null);
/** Tensor versionNumber */
versionNumber?: (number|null);
/** Tensor versionNumber */
versionNumber?: (number|null);
/** Tensor tensorContent */
tensorContent?: (Uint8Array|null);
/** Tensor tensorContent */
tensorContent?: (Uint8Array|null);
/** Tensor floatVal */
floatVal?: (number[]|null);
/** Tensor floatVal */
floatVal?: (number[]|null);
/** Tensor doubleVal */
doubleVal?: (number[]|null);
/** Tensor doubleVal */
doubleVal?: (number[]|null);
/** Tensor intVal */
intVal?: (number[]|null);
/** Tensor intVal */
intVal?: (number[]|null);
/** Tensor stringVal */
stringVal?: (Uint8Array[]|null);
/** Tensor stringVal */
stringVal?: (Uint8Array[]|null);
/** Tensor scomplexVal */
scomplexVal?: (number[]|null);
/** Tensor scomplexVal */
scomplexVal?: (number[]|null);
/** Tensor int64Val */
int64Val?: ((number | string)[]|null);
/** Tensor int64Val */
int64Val?: ((number | string)[]|null);
/** Tensor boolVal */
boolVal?: (boolean[]|null);
/** Tensor boolVal */
boolVal?: (boolean[]|null);
/** Tensor uint32Val */
uint32Val?: (number[]|null);
/** Tensor uint32Val */
uint32Val?: (number[]|null);
/** Tensor uint64Val */
uint64Val?: ((number | string)[]|null);
}
/** Tensor uint64Val */
uint64Val?: ((number | string)[]|null);
}
/** Properties of an AttrValue. */
export interface IAttrValue {
/** AttrValue list */
list?: (tensorflow.AttrValue.IListValue|null);
/** Properties of an AttrValue. */
export declare interface IAttrValue {
/** AttrValue list */
list?: (AttrValue.IListValue|null);
/** AttrValue s */
s?: (string|null);
/** AttrValue s */
s?: (string|null);
/** AttrValue i */
i?: (number|string|null);
/** AttrValue i */
i?: (number|string|null);
/** AttrValue f */
f?: (number|null);
/** AttrValue f */
f?: (number|null);
/** AttrValue b */
b?: (boolean|null);
/** AttrValue b */
b?: (boolean|null);
/** AttrValue type */
type?: (tensorflow.DataType|null);
/** AttrValue type */
type?: (DataType|null);
/** AttrValue shape */
shape?: (tensorflow.ITensorShape|null);
/** AttrValue shape */
shape?: (ITensorShape|null);
/** AttrValue tensor */
tensor?: (tensorflow.ITensor|null);
/** AttrValue tensor */
tensor?: (ITensor|null);
/** AttrValue placeholder */
placeholder?: (string|null);
/** AttrValue placeholder */
placeholder?: (string|null);
/** AttrValue func */
func?: (tensorflow.INameAttrList|null);
}
/** AttrValue func */
func?: (INameAttrList|null);
}
export namespace AttrValue {
/** Properties of a ListValue. */
export interface IListValue {
/** ListValue s */
s?: (string[]|null);
export namespace AttrValue {
/** Properties of a ListValue. */
export declare interface IListValue {
/** ListValue s */
s?: (string[]|null);
/** ListValue i */
i?: ((number | string)[]|null);
/** ListValue i */
i?: ((number | string)[]|null);
/** ListValue f */
f?: (number[]|null);
/** ListValue f */
f?: (number[]|null);
/** ListValue b */
b?: (boolean[]|null);
/** ListValue b */
b?: (boolean[]|null);
/** ListValue type */
type?: (tensorflow.DataType[]|null);
/** ListValue type */
type?: (DataType[]|null);
/** ListValue shape */
shape?: (tensorflow.ITensorShape[]|null);
/** ListValue shape */
shape?: (ITensorShape[]|null);
/** ListValue tensor */
tensor?: (tensorflow.ITensor[]|null);
/** ListValue tensor */
tensor?: (ITensor[]|null);
/** ListValue func */
func?: (tensorflow.INameAttrList[]|null);
}
/** ListValue func */
func?: (INameAttrList[]|null);
}
}
/** Properties of a NameAttrList. */
export interface INameAttrList {
/** NameAttrList name */
name?: (string|null);
/** Properties of a NameAttrList. */
export declare interface INameAttrList {
/** NameAttrList name */
name?: (string|null);
/** NameAttrList attr */
attr?: ({[k: string]: tensorflow.IAttrValue}|null);
}
/** NameAttrList attr */
attr?: ({[k: string]: IAttrValue}|null);
}
/** Properties of a NodeDef. */
export interface INodeDef {
/** NodeDef name */
name?: (string|null);
/** Properties of a NodeDef. */
export declare interface INodeDef {
/** NodeDef name */
name?: (string|null);
/** NodeDef op */
op?: (string|null);
/** NodeDef op */
op?: (string|null);
/** NodeDef input */
input?: (string[]|null);
/** NodeDef input */
input?: (string[]|null);
/** NodeDef device */
device?: (string|null);
/** NodeDef device */
device?: (string|null);
/** NodeDef attr */
attr?: ({[k: string]: tensorflow.IAttrValue}|null);
}
/** NodeDef attr */
attr?: ({[k: string]: IAttrValue}|null);
}
/** Properties of a VersionDef. */
export interface IVersionDef {
/** VersionDef producer */
producer?: (number|null);
/** Properties of a VersionDef. */
export declare interface IVersionDef {
/** VersionDef producer */
producer?: (number|null);
/** VersionDef minConsumer */
minConsumer?: (number|null);
/** VersionDef minConsumer */
minConsumer?: (number|null);
/** VersionDef badConsumers */
badConsumers?: (number[]|null);
}
/** VersionDef badConsumers */
badConsumers?: (number[]|null);
}
/** Properties of a GraphDef. */
export interface IGraphDef {
/** GraphDef node */
node?: (tensorflow.INodeDef[]|null);
/** Properties of a GraphDef. */
export declare interface IGraphDef {
/** GraphDef node */
node?: (INodeDef[]|null);
/** GraphDef versions */
versions?: (tensorflow.IVersionDef|null);
/** GraphDef versions */
versions?: (IVersionDef|null);
/** GraphDef library */
library?: (tensorflow.IFunctionDefLibrary|null);
}
/** GraphDef library */
library?: (IFunctionDefLibrary|null);
}
/** Properties of a CollectionDef. */
export interface ICollectionDef {
/** CollectionDef nodeList */
nodeList?: (tensorflow.CollectionDef.INodeList|null);
/** Properties of a CollectionDef. */
export declare interface ICollectionDef {
/** CollectionDef nodeList */
nodeList?: (CollectionDef.INodeList|null);
/** CollectionDef bytesList */
bytesList?: (tensorflow.CollectionDef.IBytesList|null);
/** CollectionDef bytesList */
bytesList?: (CollectionDef.IBytesList|null);
/** CollectionDef int64List */
int64List?: (tensorflow.CollectionDef.IInt64List|null);
/** CollectionDef int64List */
int64List?: (CollectionDef.IInt64List|null);
/** CollectionDef floatList */
floatList?: (tensorflow.CollectionDef.IFloatList|null);
/** CollectionDef floatList */
floatList?: (CollectionDef.IFloatList|null);
/** CollectionDef anyList */
anyList?: (tensorflow.CollectionDef.IAnyList|null);
/** CollectionDef anyList */
anyList?: (CollectionDef.IAnyList|null);
}
export namespace CollectionDef {
/** Properties of a NodeList. */
export declare interface INodeList {
/** NodeList value */
value?: (string[]|null);
}
export namespace CollectionDef {
/** Properties of a NodeList. */
export interface INodeList {
/** NodeList value */
value?: (string[]|null);
}
/** Properties of a BytesList. */
export declare interface IBytesList {
/** BytesList value */
value?: (Uint8Array[]|null);
}
/** Properties of a BytesList. */
export interface IBytesList {
/** BytesList value */
value?: (Uint8Array[]|null);
}
/** Properties of an Int64List. */
export declare interface IInt64List {
/** Int64List value */
value?: ((number | string)[]|null);
}
/** Properties of an Int64List. */
export interface IInt64List {
/** Int64List value */
value?: ((number | string)[]|null);
}
/** Properties of a FloatList. */
export declare interface IFloatList {
/** FloatList value */
value?: (number[]|null);
}
/** Properties of a FloatList. */
export interface IFloatList {
/** FloatList value */
value?: (number[]|null);
}
/** Properties of an AnyList. */
export interface IAnyList {
/** AnyList value */
value?: (tensorflow.IAny[]|null);
}
/** Properties of an AnyList. */
export declare interface IAnyList {
/** AnyList value */
value?: (IAny[]|null);
}
}
/** Properties of a SaverDef. */
export interface ISaverDef {
/** SaverDef filenameTensorName */
filenameTensorName?: (string|null);
/** Properties of a SaverDef. */
export declare interface ISaverDef {
/** SaverDef filenameTensorName */
filenameTensorName?: (string|null);
/** SaverDef saveTensorName */
saveTensorName?: (string|null);
/** SaverDef saveTensorName */
saveTensorName?: (string|null);
/** SaverDef restoreOpName */
restoreOpName?: (string|null);
/** SaverDef restoreOpName */
restoreOpName?: (string|null);
/** SaverDef maxToKeep */
maxToKeep?: (number|null);
/** SaverDef maxToKeep */
maxToKeep?: (number|null);
/** SaverDef sharded */
sharded?: (boolean|null);
/** SaverDef sharded */
sharded?: (boolean|null);
/** SaverDef keepCheckpointEveryNHours */
keepCheckpointEveryNHours?: (number|null);
/** SaverDef keepCheckpointEveryNHours */
keepCheckpointEveryNHours?: (number|null);
/** SaverDef version */
version?: (tensorflow.SaverDef.CheckpointFormatVersion|null);
}
/** SaverDef version */
version?: (SaverDef.CheckpointFormatVersion|null);
}
export namespace SaverDef {
/** CheckpointFormatVersion enum. */
export enum CheckpointFormatVersion {LEGACY = 0, V1 = 1, V2 = 2}
}
export namespace SaverDef {
/** CheckpointFormatVersion enum. */
export enum CheckpointFormatVersion {LEGACY = 0, V1 = 1, V2 = 2}
}
/** Properties of a TensorInfo. */
export interface ITensorInfo {
/** TensorInfo name */
name?: (string|null);
/** Properties of a TensorInfo. */
export declare interface ITensorInfo {
/** TensorInfo name */
name?: (string|null);
/** TensorInfo cooSparse */
cooSparse?: (tensorflow.TensorInfo.ICooSparse|null);
/** TensorInfo cooSparse */
cooSparse?: (TensorInfo.ICooSparse|null);
/** TensorInfo dtype */
dtype?: (tensorflow.DataType|null);
/** TensorInfo dtype */
dtype?: (DataType|null);
/** TensorInfo tensorShape */
tensorShape?: (tensorflow.ITensorShape|null);
}
/** TensorInfo tensorShape */
tensorShape?: (ITensorShape|null);
}
export namespace TensorInfo {
/** Properties of a CooSparse. */
export interface ICooSparse {
/** CooSparse valuesTensorName */
valuesTensorName?: (string|null);
export namespace TensorInfo {
/** Properties of a CooSparse. */
export declare interface ICooSparse {
/** CooSparse valuesTensorName */
valuesTensorName?: (string|null);
/** CooSparse indicesTensorName */
indicesTensorName?: (string|null);
/** CooSparse indicesTensorName */
indicesTensorName?: (string|null);
/** CooSparse denseShapeTensorName */
denseShapeTensorName?: (string|null);
}
/** CooSparse denseShapeTensorName */
denseShapeTensorName?: (string|null);
}
}
/** Properties of a SignatureDef. */
export interface ISignatureDef {
/** SignatureDef inputs */
inputs?: ({[k: string]: tensorflow.ITensorInfo}|null);
/** Properties of a SignatureDef. */
export declare interface ISignatureDef {
/** SignatureDef inputs */
inputs?: ({[k: string]: ITensorInfo}|null);
/** SignatureDef outputs */
outputs?: ({[k: string]: tensorflow.ITensorInfo}|null);
/** SignatureDef outputs */
outputs?: ({[k: string]: ITensorInfo}|null);
/** SignatureDef methodName */
methodName?: (string|null);
}
/** SignatureDef methodName */
methodName?: (string|null);
}
/** Properties of an AssetFileDef. */
export interface IAssetFileDef {
/** AssetFileDef tensorInfo */
tensorInfo?: (tensorflow.ITensorInfo|null);
/** Properties of an AssetFileDef. */
export declare interface IAssetFileDef {
/** AssetFileDef tensorInfo */
tensorInfo?: (ITensorInfo|null);
/** AssetFileDef filename */
filename?: (string|null);
}
/** AssetFileDef filename */
filename?: (string|null);
}
/** Properties of an OpDef. */
export interface IOpDef {
/** OpDef name */
name?: (string|null);
/** Properties of an OpDef. */
export declare interface IOpDef {
/** OpDef name */
name?: (string|null);
/** OpDef inputArg */
inputArg?: (tensorflow.OpDef.IArgDef[]|null);
/** OpDef inputArg */
inputArg?: (OpDef.IArgDef[]|null);
/** OpDef outputArg */
outputArg?: (tensorflow.OpDef.IArgDef[]|null);
/** OpDef outputArg */
outputArg?: (OpDef.IArgDef[]|null);
/** OpDef attr */
attr?: (tensorflow.OpDef.IAttrDef[]|null);
/** OpDef attr */
attr?: (OpDef.IAttrDef[]|null);
/** OpDef deprecation */
deprecation?: (tensorflow.OpDef.IOpDeprecation|null);
/** OpDef deprecation */
deprecation?: (OpDef.IOpDeprecation|null);
/** OpDef summary */
summary?: (string|null);
/** OpDef summary */
summary?: (string|null);
/** OpDef description */
description?: (string|null);
/** OpDef description */
description?: (string|null);
/** OpDef isCommutative */
isCommutative?: (boolean|null);
/** OpDef isCommutative */
isCommutative?: (boolean|null);
/** OpDef isAggregate */
isAggregate?: (boolean|null);
/** OpDef isAggregate */
isAggregate?: (boolean|null);
/** OpDef isStateful */
isStateful?: (boolean|null);
/** OpDef isStateful */
isStateful?: (boolean|null);
/** OpDef allowsUninitializedInput */
allowsUninitializedInput?: (boolean|null);
}
/** OpDef allowsUninitializedInput */
allowsUninitializedInput?: (boolean|null);
}
export namespace OpDef {
/** Properties of an ArgDef. */
export interface IArgDef {
/** ArgDef name */
name?: (string|null);
export namespace OpDef {
/** Properties of an ArgDef. */
export declare interface IArgDef {
/** ArgDef name */
name?: (string|null);
/** ArgDef description */
description?: (string|null);
/** ArgDef description */
description?: (string|null);
/** ArgDef type */
type?: (tensorflow.DataType|null);
/** ArgDef type */
type?: (DataType|null);
/** ArgDef typeAttr */
typeAttr?: (string|null);
/** ArgDef typeAttr */
typeAttr?: (string|null);
/** ArgDef numberAttr */
numberAttr?: (string|null);
/** ArgDef numberAttr */
numberAttr?: (string|null);
/** ArgDef typeListAttr */
typeListAttr?: (string|null);
/** ArgDef typeListAttr */
typeListAttr?: (string|null);
/** ArgDef isRef */
isRef?: (boolean|null);
}
/** ArgDef isRef */
isRef?: (boolean|null);
}
/** Properties of an AttrDef. */
export interface IAttrDef {
/** AttrDef name */
name?: (string|null);
/** Properties of an AttrDef. */
export declare interface IAttrDef {
/** AttrDef name */
name?: (string|null);
/** AttrDef type */
type?: (string|null);
/** AttrDef type */
type?: (string|null);
/** AttrDef defaultValue */
defaultValue?: (tensorflow.IAttrValue|null);
/** AttrDef defaultValue */
defaultValue?: (IAttrValue|null);
/** AttrDef description */
description?: (string|null);
/** AttrDef description */
description?: (string|null);
/** AttrDef hasMinimum */
hasMinimum?: (boolean|null);
/** AttrDef hasMinimum */
hasMinimum?: (boolean|null);
/** AttrDef minimum */
minimum?: (number|string|null);
/** AttrDef minimum */
minimum?: (number|string|null);
/** AttrDef allowedValues */
allowedValues?: (tensorflow.IAttrValue|null);
}
/** AttrDef allowedValues */
allowedValues?: (IAttrValue|null);
}
/** Properties of an OpDeprecation. */
export interface IOpDeprecation {
/** OpDeprecation version */
version?: (number|null);
/** Properties of an OpDeprecation. */
export declare interface IOpDeprecation {
/** OpDeprecation version */
version?: (number|null);
/** OpDeprecation explanation */
explanation?: (string|null);
}
/** OpDeprecation explanation */
explanation?: (string|null);
}
}
/** Properties of an OpList. */
export interface IOpList {
/** OpList op */
op?: (tensorflow.IOpDef[]|null);
}
/** Properties of an OpList. */
export declare interface IOpList {
/** OpList op */
op?: (IOpDef[]|null);
}
/** Properties of a MetaGraphDef. */
export interface IMetaGraphDef {
/** MetaGraphDef metaInfoDef */
metaInfoDef?: (tensorflow.MetaGraphDef.IMetaInfoDef|null);
/** Properties of a MetaGraphDef. */
export declare interface IMetaGraphDef {
/** MetaGraphDef metaInfoDef */
metaInfoDef?: (MetaGraphDef.IMetaInfoDef|null);
/** MetaGraphDef graphDef */
graphDef?: (tensorflow.IGraphDef|null);
/** MetaGraphDef graphDef */
graphDef?: (IGraphDef|null);
/** MetaGraphDef saverDef */
saverDef?: (tensorflow.ISaverDef|null);
/** MetaGraphDef saverDef */
saverDef?: (ISaverDef|null);
/** MetaGraphDef collectionDef */
collectionDef?: ({[k: string]: tensorflow.ICollectionDef}|null);
/** MetaGraphDef collectionDef */
collectionDef?: ({[k: string]: ICollectionDef}|null);
/** MetaGraphDef signatureDef */
signatureDef?: ({[k: string]: tensorflow.ISignatureDef}|null);
/** MetaGraphDef signatureDef */
signatureDef?: ({[k: string]: ISignatureDef}|null);
/** MetaGraphDef assetFileDef */
assetFileDef?: (tensorflow.IAssetFileDef[]|null);
}
/** MetaGraphDef assetFileDef */
assetFileDef?: (IAssetFileDef[]|null);
}
export namespace MetaGraphDef {
/** Properties of a MetaInfoDef. */
export interface IMetaInfoDef {
/** MetaInfoDef metaGraphVersion */
metaGraphVersion?: (string|null);
export namespace MetaGraphDef {
/** Properties of a MetaInfoDef. */
export declare interface IMetaInfoDef {
/** MetaInfoDef metaGraphVersion */
metaGraphVersion?: (string|null);
/** MetaInfoDef strippedOpList */
strippedOpList?: (tensorflow.IOpList|null);
/** MetaInfoDef strippedOpList */
strippedOpList?: (IOpList|null);
/** MetaInfoDef anyInfo */
anyInfo?: (tensorflow.IAny|null);
/** MetaInfoDef anyInfo */
anyInfo?: (IAny|null);
/** MetaInfoDef tags */
tags?: (string[]|null);
/** MetaInfoDef tags */
tags?: (string[]|null);
/** MetaInfoDef tensorflowVersion */
tensorflowVersion?: (string|null);
/** MetaInfoDef tensorflowVersion */
tensorflowVersion?: (string|null);
/** MetaInfoDef tensorflowGitVersion */
tensorflowGitVersion?: (string|null);
}
/** MetaInfoDef tensorflowGitVersion */
tensorflowGitVersion?: (string|null);
}
}
/** Properties of a SavedModel. */
export interface ISavedModel {
/** SavedModel savedModelSchemaVersion */
savedModelSchemaVersion?: (number|string|null);
/** Properties of a SavedModel. */
export declare interface ISavedModel {
/** SavedModel savedModelSchemaVersion */
savedModelSchemaVersion?: (number|string|null);
/** SavedModel metaGraphs */
metaGraphs?: (tensorflow.IMetaGraphDef[]|null);
}
/** SavedModel metaGraphs */
metaGraphs?: (IMetaGraphDef[]|null);
}
/** Properties of a FunctionDefLibrary. */
export interface IFunctionDefLibrary {
/** FunctionDefLibrary function */
'function'?: (tensorflow.IFunctionDef[]|null);
/** Properties of a FunctionDefLibrary. */
export declare interface IFunctionDefLibrary {
/** FunctionDefLibrary function */
'function'?: (IFunctionDef[]|null);
/** FunctionDefLibrary gradient */
gradient?: (tensorflow.IGradientDef[]|null);
}
/** FunctionDefLibrary gradient */
gradient?: (IGradientDef[]|null);
}
/** Properties of a FunctionDef. */
export interface IFunctionDef {
/** FunctionDef signature */
signature?: (tensorflow.IOpDef|null);
/** Properties of a FunctionDef. */
export declare interface IFunctionDef {
/** FunctionDef signature */
signature?: (IOpDef|null);
/** FunctionDef attr */
attr?: ({[k: string]: tensorflow.IAttrValue}|null);
/** FunctionDef attr */
attr?: ({[k: string]: IAttrValue}|null);
/** FunctionDef nodeDef */
nodeDef?: (tensorflow.INodeDef[]|null);
/** FunctionDef nodeDef */
nodeDef?: (INodeDef[]|null);
/** FunctionDef ret */
ret?: ({[k: string]: string}|null);
}
/** FunctionDef ret */
ret?: ({[k: string]: string}|null);
}
/** Properties of a GradientDef. */
export interface IGradientDef {
/** GradientDef functionName */
functionName?: (string|null);
/** Properties of a GradientDef. */
export declare interface IGradientDef {
/** GradientDef functionName */
functionName?: (string|null);
/** GradientDef gradientFunc */
gradientFunc?: (string|null);
}
/** GradientDef gradientFunc */
gradientFunc?: (string|null);
}

@@ -17,3 +17,3 @@ /**

*/
import { tensorflow } from '../data/compiled_api';
import * as tensorflow from '../data/compiled_api';
import { Graph } from './types';

@@ -20,0 +20,0 @@ export declare class OperationMapper {

@@ -19,3 +19,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var compiled_api_1 = require("../data/compiled_api");
var tfjs_core_1 = require("@tensorflow/tfjs-core");
var tensorflow = require("../data/compiled_api");
var utils_1 = require("./executors/utils");

@@ -202,4 +203,6 @@ var arithmetic = require("./op_list/arithmetic");

OperationMapper.prototype.decodeBase64 = function (text) {
if (typeof atob !== 'undefined') {
return atob(text);
// tslint:disable-next-line:no-any
var global = tfjs_core_1.ENV.global;
if (typeof global.atob !== 'undefined') {
return global.atob(text);
}

@@ -242,10 +245,10 @@ else if (typeof Buffer !== 'undefined') {

if (typeof (param.type) === 'string') {
type = compiled_api_1.tensorflow.DataType[param.type];
type = tensorflow.DataType[param.type];
}
switch (type) {
case compiled_api_1.tensorflow.DataType.DT_FLOAT:
case tensorflow.DataType.DT_FLOAT:
return 'float32';
case compiled_api_1.tensorflow.DataType.DT_INT32:
case tensorflow.DataType.DT_INT32:
return 'int32';
case compiled_api_1.tensorflow.DataType.DT_BOOL:
case tensorflow.DataType.DT_BOOL:
return 'bool';

@@ -252,0 +255,0 @@ default:

/** @license See the LICENSE file. */
declare const version = "1.0.2";
declare const version = "1.0.3";
export { version };

@@ -5,4 +5,4 @@ "use strict";

// This code is auto-generated, do not modify this file!
var version = '1.0.2';
var version = '1.0.3';
exports.version = version;
//# sourceMappingURL=version.js.map
{
"name": "@tensorflow/tfjs-converter",
"version": "1.0.2",
"version": "1.0.3",
"description": "Tensorflow model converter for javascript",

@@ -17,6 +17,6 @@ "main": "dist/src/index.js",

"peerDependencies": {
"@tensorflow/tfjs-core": "1.0.2"
"@tensorflow/tfjs-core": "1.0.3"
},
"devDependencies": {
"@tensorflow/tfjs-core": "1.0.2",
"@tensorflow/tfjs-core": "1.0.3",
"@types/jasmine": "~2.8.6",

@@ -64,3 +64,2 @@ "@types/long": "~3.0.32",

"gen-doc": "ts-node ./scripts/gen_doc.ts",
"gen-google3-proto": "rollup -c rollup.config.google.js",
"gen-json": "ts-node ./scripts/gen_json.ts",

@@ -67,0 +66,0 @@ "pb2json": "ts-node ./tools/pb2json_converter.ts"

@@ -178,7 +178,7 @@ [![Build Status](https://travis-ci.org/tensorflow/tfjs-converter.svg?branch=master)](https://travis-ci.org/tensorflow/tfjs-converter)

## Loading the weights only
## Manual forward pass and direct weights loading
If you prefer to load the weights only, you can use the following code snippet.
If you want to manually write the forward pass with the ops API, you can load the weights directly as a map from weight names to tensors:
```typescript
```js
import * as tf from '@tensorflow/tfjs';

@@ -188,4 +188,4 @@

const model = await fetch(modelUrl);
this.weightManifest = (await model.json())['weightsManifest'];
const response = await fetch(modelUrl);
this.weightManifest = (await response.json())['weightsManifest'];
const weightMap = await tf.io.loadWeights(

@@ -195,2 +195,9 @@ this.weightManifest, "https://example.org/model");

`weightMap` maps a weight name to a tensor. You can use it to manually implement the forward pass of the model:
```js
const input = tf.tensor(...);
tf.matMul(weightMap['fc1/weights'], input).add(weightMap['fc1/bias']);
```
## FAQ

@@ -197,0 +204,0 @@

@@ -1,535 +0,533 @@

/** Namespace tensorflow. */
export namespace tensorflow {
/** Properties of an Any. */
export interface IAny {
/** Any typeUrl */
typeUrl?: (string|null);
/** Any value */
value?: (Uint8Array|null);
}
/** Properties of an Any. */
export declare interface IAny {
/** Any typeUrl */
typeUrl?: (string|null);
/** DataType enum. */
export enum DataType {
DT_INVALID = 0,
DT_FLOAT = 1,
DT_DOUBLE = 2,
DT_INT32 = 3,
DT_UINT8 = 4,
DT_INT16 = 5,
DT_INT8 = 6,
DT_STRING = 7,
DT_COMPLEX64 = 8,
DT_INT64 = 9,
DT_BOOL = 10,
DT_QINT8 = 11,
DT_QUINT8 = 12,
DT_QINT32 = 13,
DT_BFLOAT16 = 14,
DT_FLOAT_REF = 101,
DT_DOUBLE_REF = 102,
DT_INT32_REF = 103,
DT_UINT8_REF = 104,
DT_INT16_REF = 105,
DT_INT8_REF = 106,
DT_STRING_REF = 107,
DT_COMPLEX64_REF = 108,
DT_INT64_REF = 109,
DT_BOOL_REF = 110,
DT_QINT8_REF = 111,
DT_QUINT8_REF = 112,
DT_QINT32_REF = 113,
DT_BFLOAT16_REF = 114
}
/** Any value */
value?: (Uint8Array|null);
}
/** Properties of a TensorShape. */
export interface ITensorShape {
/** TensorShape dim */
dim?: (tensorflow.TensorShape.IDim[]|null);
/** DataType enum. */
export enum DataType {
DT_INVALID = 0,
DT_FLOAT = 1,
DT_DOUBLE = 2,
DT_INT32 = 3,
DT_UINT8 = 4,
DT_INT16 = 5,
DT_INT8 = 6,
DT_STRING = 7,
DT_COMPLEX64 = 8,
DT_INT64 = 9,
DT_BOOL = 10,
DT_QINT8 = 11,
DT_QUINT8 = 12,
DT_QINT32 = 13,
DT_BFLOAT16 = 14,
DT_FLOAT_REF = 101,
DT_DOUBLE_REF = 102,
DT_INT32_REF = 103,
DT_UINT8_REF = 104,
DT_INT16_REF = 105,
DT_INT8_REF = 106,
DT_STRING_REF = 107,
DT_COMPLEX64_REF = 108,
DT_INT64_REF = 109,
DT_BOOL_REF = 110,
DT_QINT8_REF = 111,
DT_QUINT8_REF = 112,
DT_QINT32_REF = 113,
DT_BFLOAT16_REF = 114
}
/** TensorShape unknownRank */
unknownRank?: (boolean|null);
}
/** Properties of a TensorShape. */
export declare interface ITensorShape {
/** TensorShape dim */
dim?: (TensorShape.IDim[]|null);
export namespace TensorShape {
/** Properties of a Dim. */
export interface IDim {
/** Dim size */
size?: (number|string|null);
/** TensorShape unknownRank */
unknownRank?: (boolean|null);
}
/** Dim name */
name?: (string|null);
}
export namespace TensorShape {
/** Properties of a Dim. */
export declare interface IDim {
/** Dim size */
size?: (number|string|null);
/** Dim name */
name?: (string|null);
}
}
/** Properties of a Tensor. */
export interface ITensor {
/** Tensor dtype */
dtype?: (tensorflow.DataType|null);
/** Properties of a Tensor. */
export declare interface ITensor {
/** Tensor dtype */
dtype?: (DataType|null);
/** Tensor tensorShape */
tensorShape?: (tensorflow.ITensorShape|null);
/** Tensor tensorShape */
tensorShape?: (ITensorShape|null);
/** Tensor versionNumber */
versionNumber?: (number|null);
/** Tensor versionNumber */
versionNumber?: (number|null);
/** Tensor tensorContent */
tensorContent?: (Uint8Array|null);
/** Tensor tensorContent */
tensorContent?: (Uint8Array|null);
/** Tensor floatVal */
floatVal?: (number[]|null);
/** Tensor floatVal */
floatVal?: (number[]|null);
/** Tensor doubleVal */
doubleVal?: (number[]|null);
/** Tensor doubleVal */
doubleVal?: (number[]|null);
/** Tensor intVal */
intVal?: (number[]|null);
/** Tensor intVal */
intVal?: (number[]|null);
/** Tensor stringVal */
stringVal?: (Uint8Array[]|null);
/** Tensor stringVal */
stringVal?: (Uint8Array[]|null);
/** Tensor scomplexVal */
scomplexVal?: (number[]|null);
/** Tensor scomplexVal */
scomplexVal?: (number[]|null);
/** Tensor int64Val */
int64Val?: ((number | string)[]|null);
/** Tensor int64Val */
int64Val?: ((number | string)[]|null);
/** Tensor boolVal */
boolVal?: (boolean[]|null);
/** Tensor boolVal */
boolVal?: (boolean[]|null);
/** Tensor uint32Val */
uint32Val?: (number[]|null);
/** Tensor uint32Val */
uint32Val?: (number[]|null);
/** Tensor uint64Val */
uint64Val?: ((number | string)[]|null);
}
/** Tensor uint64Val */
uint64Val?: ((number | string)[]|null);
}
/** Properties of an AttrValue. */
export interface IAttrValue {
/** AttrValue list */
list?: (tensorflow.AttrValue.IListValue|null);
/** Properties of an AttrValue. */
export declare interface IAttrValue {
/** AttrValue list */
list?: (AttrValue.IListValue|null);
/** AttrValue s */
s?: (string|null);
/** AttrValue s */
s?: (string|null);
/** AttrValue i */
i?: (number|string|null);
/** AttrValue i */
i?: (number|string|null);
/** AttrValue f */
f?: (number|null);
/** AttrValue f */
f?: (number|null);
/** AttrValue b */
b?: (boolean|null);
/** AttrValue b */
b?: (boolean|null);
/** AttrValue type */
type?: (tensorflow.DataType|null);
/** AttrValue type */
type?: (DataType|null);
/** AttrValue shape */
shape?: (tensorflow.ITensorShape|null);
/** AttrValue shape */
shape?: (ITensorShape|null);
/** AttrValue tensor */
tensor?: (tensorflow.ITensor|null);
/** AttrValue tensor */
tensor?: (ITensor|null);
/** AttrValue placeholder */
placeholder?: (string|null);
/** AttrValue placeholder */
placeholder?: (string|null);
/** AttrValue func */
func?: (tensorflow.INameAttrList|null);
}
/** AttrValue func */
func?: (INameAttrList|null);
}
export namespace AttrValue {
/** Properties of a ListValue. */
export interface IListValue {
/** ListValue s */
s?: (string[]|null);
export namespace AttrValue {
/** Properties of a ListValue. */
export declare interface IListValue {
/** ListValue s */
s?: (string[]|null);
/** ListValue i */
i?: ((number | string)[]|null);
/** ListValue i */
i?: ((number | string)[]|null);
/** ListValue f */
f?: (number[]|null);
/** ListValue f */
f?: (number[]|null);
/** ListValue b */
b?: (boolean[]|null);
/** ListValue b */
b?: (boolean[]|null);
/** ListValue type */
type?: (tensorflow.DataType[]|null);
/** ListValue type */
type?: (DataType[]|null);
/** ListValue shape */
shape?: (tensorflow.ITensorShape[]|null);
/** ListValue shape */
shape?: (ITensorShape[]|null);
/** ListValue tensor */
tensor?: (tensorflow.ITensor[]|null);
/** ListValue tensor */
tensor?: (ITensor[]|null);
/** ListValue func */
func?: (tensorflow.INameAttrList[]|null);
}
/** ListValue func */
func?: (INameAttrList[]|null);
}
}
/** Properties of a NameAttrList. */
export interface INameAttrList {
/** NameAttrList name */
name?: (string|null);
/** Properties of a NameAttrList. */
export declare interface INameAttrList {
/** NameAttrList name */
name?: (string|null);
/** NameAttrList attr */
attr?: ({[k: string]: tensorflow.IAttrValue}|null);
}
/** NameAttrList attr */
attr?: ({[k: string]: IAttrValue}|null);
}
/** Properties of a NodeDef. */
export interface INodeDef {
/** NodeDef name */
name?: (string|null);
/** Properties of a NodeDef. */
export declare interface INodeDef {
/** NodeDef name */
name?: (string|null);
/** NodeDef op */
op?: (string|null);
/** NodeDef op */
op?: (string|null);
/** NodeDef input */
input?: (string[]|null);
/** NodeDef input */
input?: (string[]|null);
/** NodeDef device */
device?: (string|null);
/** NodeDef device */
device?: (string|null);
/** NodeDef attr */
attr?: ({[k: string]: tensorflow.IAttrValue}|null);
}
/** NodeDef attr */
attr?: ({[k: string]: IAttrValue}|null);
}
/** Properties of a VersionDef. */
export interface IVersionDef {
/** VersionDef producer */
producer?: (number|null);
/** Properties of a VersionDef. */
export declare interface IVersionDef {
/** VersionDef producer */
producer?: (number|null);
/** VersionDef minConsumer */
minConsumer?: (number|null);
/** VersionDef minConsumer */
minConsumer?: (number|null);
/** VersionDef badConsumers */
badConsumers?: (number[]|null);
}
/** VersionDef badConsumers */
badConsumers?: (number[]|null);
}
/** Properties of a GraphDef. */
export interface IGraphDef {
/** GraphDef node */
node?: (tensorflow.INodeDef[]|null);
/** Properties of a GraphDef. */
export declare interface IGraphDef {
/** GraphDef node */
node?: (INodeDef[]|null);
/** GraphDef versions */
versions?: (tensorflow.IVersionDef|null);
/** GraphDef versions */
versions?: (IVersionDef|null);
/** GraphDef library */
library?: (tensorflow.IFunctionDefLibrary|null);
}
/** GraphDef library */
library?: (IFunctionDefLibrary|null);
}
/** Properties of a CollectionDef. */
export interface ICollectionDef {
/** CollectionDef nodeList */
nodeList?: (tensorflow.CollectionDef.INodeList|null);
/** Properties of a CollectionDef. */
export declare interface ICollectionDef {
/** CollectionDef nodeList */
nodeList?: (CollectionDef.INodeList|null);
/** CollectionDef bytesList */
bytesList?: (tensorflow.CollectionDef.IBytesList|null);
/** CollectionDef bytesList */
bytesList?: (CollectionDef.IBytesList|null);
/** CollectionDef int64List */
int64List?: (tensorflow.CollectionDef.IInt64List|null);
/** CollectionDef int64List */
int64List?: (CollectionDef.IInt64List|null);
/** CollectionDef floatList */
floatList?: (tensorflow.CollectionDef.IFloatList|null);
/** CollectionDef floatList */
floatList?: (CollectionDef.IFloatList|null);
/** CollectionDef anyList */
anyList?: (tensorflow.CollectionDef.IAnyList|null);
/** CollectionDef anyList */
anyList?: (CollectionDef.IAnyList|null);
}
export namespace CollectionDef {
/** Properties of a NodeList. */
export declare interface INodeList {
/** NodeList value */
value?: (string[]|null);
}
export namespace CollectionDef {
/** Properties of a NodeList. */
export interface INodeList {
/** NodeList value */
value?: (string[]|null);
}
/** Properties of a BytesList. */
export declare interface IBytesList {
/** BytesList value */
value?: (Uint8Array[]|null);
}
/** Properties of a BytesList. */
export interface IBytesList {
/** BytesList value */
value?: (Uint8Array[]|null);
}
/** Properties of an Int64List. */
export declare interface IInt64List {
/** Int64List value */
value?: ((number | string)[]|null);
}
/** Properties of an Int64List. */
export interface IInt64List {
/** Int64List value */
value?: ((number | string)[]|null);
}
/** Properties of a FloatList. */
export declare interface IFloatList {
/** FloatList value */
value?: (number[]|null);
}
/** Properties of a FloatList. */
export interface IFloatList {
/** FloatList value */
value?: (number[]|null);
}
/** Properties of an AnyList. */
export interface IAnyList {
/** AnyList value */
value?: (tensorflow.IAny[]|null);
}
/** Properties of an AnyList. */
export declare interface IAnyList {
/** AnyList value */
value?: (IAny[]|null);
}
}
/** Properties of a SaverDef. */
export interface ISaverDef {
/** SaverDef filenameTensorName */
filenameTensorName?: (string|null);
/** Properties of a SaverDef. */
export declare interface ISaverDef {
/** SaverDef filenameTensorName */
filenameTensorName?: (string|null);
/** SaverDef saveTensorName */
saveTensorName?: (string|null);
/** SaverDef saveTensorName */
saveTensorName?: (string|null);
/** SaverDef restoreOpName */
restoreOpName?: (string|null);
/** SaverDef restoreOpName */
restoreOpName?: (string|null);
/** SaverDef maxToKeep */
maxToKeep?: (number|null);
/** SaverDef maxToKeep */
maxToKeep?: (number|null);
/** SaverDef sharded */
sharded?: (boolean|null);
/** SaverDef sharded */
sharded?: (boolean|null);
/** SaverDef keepCheckpointEveryNHours */
keepCheckpointEveryNHours?: (number|null);
/** SaverDef keepCheckpointEveryNHours */
keepCheckpointEveryNHours?: (number|null);
/** SaverDef version */
version?: (tensorflow.SaverDef.CheckpointFormatVersion|null);
}
/** SaverDef version */
version?: (SaverDef.CheckpointFormatVersion|null);
}
export namespace SaverDef {
/** CheckpointFormatVersion enum. */
export enum CheckpointFormatVersion {LEGACY = 0, V1 = 1, V2 = 2}
}
export namespace SaverDef {
/** CheckpointFormatVersion enum. */
export enum CheckpointFormatVersion {LEGACY = 0, V1 = 1, V2 = 2}
}
/** Properties of a TensorInfo. */
export interface ITensorInfo {
/** TensorInfo name */
name?: (string|null);
/** Properties of a TensorInfo. */
export declare interface ITensorInfo {
/** TensorInfo name */
name?: (string|null);
/** TensorInfo cooSparse */
cooSparse?: (tensorflow.TensorInfo.ICooSparse|null);
/** TensorInfo cooSparse */
cooSparse?: (TensorInfo.ICooSparse|null);
/** TensorInfo dtype */
dtype?: (tensorflow.DataType|null);
/** TensorInfo dtype */
dtype?: (DataType|null);
/** TensorInfo tensorShape */
tensorShape?: (tensorflow.ITensorShape|null);
}
/** TensorInfo tensorShape */
tensorShape?: (ITensorShape|null);
}
export namespace TensorInfo {
/** Properties of a CooSparse. */
export interface ICooSparse {
/** CooSparse valuesTensorName */
valuesTensorName?: (string|null);
export namespace TensorInfo {
/** Properties of a CooSparse. */
export declare interface ICooSparse {
/** CooSparse valuesTensorName */
valuesTensorName?: (string|null);
/** CooSparse indicesTensorName */
indicesTensorName?: (string|null);
/** CooSparse indicesTensorName */
indicesTensorName?: (string|null);
/** CooSparse denseShapeTensorName */
denseShapeTensorName?: (string|null);
}
/** CooSparse denseShapeTensorName */
denseShapeTensorName?: (string|null);
}
}
/** Properties of a SignatureDef. */
export interface ISignatureDef {
/** SignatureDef inputs */
inputs?: ({[k: string]: tensorflow.ITensorInfo}|null);
/** Properties of a SignatureDef. */
export declare interface ISignatureDef {
/** SignatureDef inputs */
inputs?: ({[k: string]: ITensorInfo}|null);
/** SignatureDef outputs */
outputs?: ({[k: string]: tensorflow.ITensorInfo}|null);
/** SignatureDef outputs */
outputs?: ({[k: string]: ITensorInfo}|null);
/** SignatureDef methodName */
methodName?: (string|null);
}
/** SignatureDef methodName */
methodName?: (string|null);
}
/** Properties of an AssetFileDef. */
export interface IAssetFileDef {
/** AssetFileDef tensorInfo */
tensorInfo?: (tensorflow.ITensorInfo|null);
/** Properties of an AssetFileDef. */
export declare interface IAssetFileDef {
/** AssetFileDef tensorInfo */
tensorInfo?: (ITensorInfo|null);
/** AssetFileDef filename */
filename?: (string|null);
}
/** AssetFileDef filename */
filename?: (string|null);
}
/** Properties of an OpDef. */
export interface IOpDef {
/** OpDef name */
name?: (string|null);
/** Properties of an OpDef. */
export declare interface IOpDef {
/** OpDef name */
name?: (string|null);
/** OpDef inputArg */
inputArg?: (tensorflow.OpDef.IArgDef[]|null);
/** OpDef inputArg */
inputArg?: (OpDef.IArgDef[]|null);
/** OpDef outputArg */
outputArg?: (tensorflow.OpDef.IArgDef[]|null);
/** OpDef outputArg */
outputArg?: (OpDef.IArgDef[]|null);
/** OpDef attr */
attr?: (tensorflow.OpDef.IAttrDef[]|null);
/** OpDef attr */
attr?: (OpDef.IAttrDef[]|null);
/** OpDef deprecation */
deprecation?: (tensorflow.OpDef.IOpDeprecation|null);
/** OpDef deprecation */
deprecation?: (OpDef.IOpDeprecation|null);
/** OpDef summary */
summary?: (string|null);
/** OpDef summary */
summary?: (string|null);
/** OpDef description */
description?: (string|null);
/** OpDef description */
description?: (string|null);
/** OpDef isCommutative */
isCommutative?: (boolean|null);
/** OpDef isCommutative */
isCommutative?: (boolean|null);
/** OpDef isAggregate */
isAggregate?: (boolean|null);
/** OpDef isAggregate */
isAggregate?: (boolean|null);
/** OpDef isStateful */
isStateful?: (boolean|null);
/** OpDef isStateful */
isStateful?: (boolean|null);
/** OpDef allowsUninitializedInput */
allowsUninitializedInput?: (boolean|null);
}
/** OpDef allowsUninitializedInput */
allowsUninitializedInput?: (boolean|null);
}
export namespace OpDef {
/** Properties of an ArgDef. */
export interface IArgDef {
/** ArgDef name */
name?: (string|null);
export namespace OpDef {
/** Properties of an ArgDef. */
export declare interface IArgDef {
/** ArgDef name */
name?: (string|null);
/** ArgDef description */
description?: (string|null);
/** ArgDef description */
description?: (string|null);
/** ArgDef type */
type?: (tensorflow.DataType|null);
/** ArgDef type */
type?: (DataType|null);
/** ArgDef typeAttr */
typeAttr?: (string|null);
/** ArgDef typeAttr */
typeAttr?: (string|null);
/** ArgDef numberAttr */
numberAttr?: (string|null);
/** ArgDef numberAttr */
numberAttr?: (string|null);
/** ArgDef typeListAttr */
typeListAttr?: (string|null);
/** ArgDef typeListAttr */
typeListAttr?: (string|null);
/** ArgDef isRef */
isRef?: (boolean|null);
}
/** ArgDef isRef */
isRef?: (boolean|null);
}
/** Properties of an AttrDef. */
export interface IAttrDef {
/** AttrDef name */
name?: (string|null);
/** Properties of an AttrDef. */
export declare interface IAttrDef {
/** AttrDef name */
name?: (string|null);
/** AttrDef type */
type?: (string|null);
/** AttrDef type */
type?: (string|null);
/** AttrDef defaultValue */
defaultValue?: (tensorflow.IAttrValue|null);
/** AttrDef defaultValue */
defaultValue?: (IAttrValue|null);
/** AttrDef description */
description?: (string|null);
/** AttrDef description */
description?: (string|null);
/** AttrDef hasMinimum */
hasMinimum?: (boolean|null);
/** AttrDef hasMinimum */
hasMinimum?: (boolean|null);
/** AttrDef minimum */
minimum?: (number|string|null);
/** AttrDef minimum */
minimum?: (number|string|null);
/** AttrDef allowedValues */
allowedValues?: (tensorflow.IAttrValue|null);
}
/** AttrDef allowedValues */
allowedValues?: (IAttrValue|null);
}
/** Properties of an OpDeprecation. */
export interface IOpDeprecation {
/** OpDeprecation version */
version?: (number|null);
/** Properties of an OpDeprecation. */
export declare interface IOpDeprecation {
/** OpDeprecation version */
version?: (number|null);
/** OpDeprecation explanation */
explanation?: (string|null);
}
/** OpDeprecation explanation */
explanation?: (string|null);
}
}
/** Properties of an OpList. */
export interface IOpList {
/** OpList op */
op?: (tensorflow.IOpDef[]|null);
}
/** Properties of an OpList. */
export declare interface IOpList {
/** OpList op */
op?: (IOpDef[]|null);
}
/** Properties of a MetaGraphDef. */
export interface IMetaGraphDef {
/** MetaGraphDef metaInfoDef */
metaInfoDef?: (tensorflow.MetaGraphDef.IMetaInfoDef|null);
/** Properties of a MetaGraphDef. */
export declare interface IMetaGraphDef {
/** MetaGraphDef metaInfoDef */
metaInfoDef?: (MetaGraphDef.IMetaInfoDef|null);
/** MetaGraphDef graphDef */
graphDef?: (tensorflow.IGraphDef|null);
/** MetaGraphDef graphDef */
graphDef?: (IGraphDef|null);
/** MetaGraphDef saverDef */
saverDef?: (tensorflow.ISaverDef|null);
/** MetaGraphDef saverDef */
saverDef?: (ISaverDef|null);
/** MetaGraphDef collectionDef */
collectionDef?: ({[k: string]: tensorflow.ICollectionDef}|null);
/** MetaGraphDef collectionDef */
collectionDef?: ({[k: string]: ICollectionDef}|null);
/** MetaGraphDef signatureDef */
signatureDef?: ({[k: string]: tensorflow.ISignatureDef}|null);
/** MetaGraphDef signatureDef */
signatureDef?: ({[k: string]: ISignatureDef}|null);
/** MetaGraphDef assetFileDef */
assetFileDef?: (tensorflow.IAssetFileDef[]|null);
}
/** MetaGraphDef assetFileDef */
assetFileDef?: (IAssetFileDef[]|null);
}
export namespace MetaGraphDef {
/** Properties of a MetaInfoDef. */
export interface IMetaInfoDef {
/** MetaInfoDef metaGraphVersion */
metaGraphVersion?: (string|null);
export namespace MetaGraphDef {
/** Properties of a MetaInfoDef. */
export declare interface IMetaInfoDef {
/** MetaInfoDef metaGraphVersion */
metaGraphVersion?: (string|null);
/** MetaInfoDef strippedOpList */
strippedOpList?: (tensorflow.IOpList|null);
/** MetaInfoDef strippedOpList */
strippedOpList?: (IOpList|null);
/** MetaInfoDef anyInfo */
anyInfo?: (tensorflow.IAny|null);
/** MetaInfoDef anyInfo */
anyInfo?: (IAny|null);
/** MetaInfoDef tags */
tags?: (string[]|null);
/** MetaInfoDef tags */
tags?: (string[]|null);
/** MetaInfoDef tensorflowVersion */
tensorflowVersion?: (string|null);
/** MetaInfoDef tensorflowVersion */
tensorflowVersion?: (string|null);
/** MetaInfoDef tensorflowGitVersion */
tensorflowGitVersion?: (string|null);
}
/** MetaInfoDef tensorflowGitVersion */
tensorflowGitVersion?: (string|null);
}
}
/** Properties of a SavedModel. */
export interface ISavedModel {
/** SavedModel savedModelSchemaVersion */
savedModelSchemaVersion?: (number|string|null);
/** Properties of a SavedModel. */
export declare interface ISavedModel {
/** SavedModel savedModelSchemaVersion */
savedModelSchemaVersion?: (number|string|null);
/** SavedModel metaGraphs */
metaGraphs?: (tensorflow.IMetaGraphDef[]|null);
}
/** SavedModel metaGraphs */
metaGraphs?: (IMetaGraphDef[]|null);
}
/** Properties of a FunctionDefLibrary. */
export interface IFunctionDefLibrary {
/** FunctionDefLibrary function */
'function'?: (tensorflow.IFunctionDef[]|null);
/** Properties of a FunctionDefLibrary. */
export declare interface IFunctionDefLibrary {
/** FunctionDefLibrary function */
'function'?: (IFunctionDef[]|null);
/** FunctionDefLibrary gradient */
gradient?: (tensorflow.IGradientDef[]|null);
}
/** FunctionDefLibrary gradient */
gradient?: (IGradientDef[]|null);
}
/** Properties of a FunctionDef. */
export interface IFunctionDef {
/** FunctionDef signature */
signature?: (tensorflow.IOpDef|null);
/** Properties of a FunctionDef. */
export declare interface IFunctionDef {
/** FunctionDef signature */
signature?: (IOpDef|null);
/** FunctionDef attr */
attr?: ({[k: string]: tensorflow.IAttrValue}|null);
/** FunctionDef attr */
attr?: ({[k: string]: IAttrValue}|null);
/** FunctionDef nodeDef */
nodeDef?: (tensorflow.INodeDef[]|null);
/** FunctionDef nodeDef */
nodeDef?: (INodeDef[]|null);
/** FunctionDef ret */
ret?: ({[k: string]: string}|null);
}
/** FunctionDef ret */
ret?: ({[k: string]: string}|null);
}
/** Properties of a GradientDef. */
export interface IGradientDef {
/** GradientDef functionName */
functionName?: (string|null);
/** Properties of a GradientDef. */
export declare interface IGradientDef {
/** GradientDef functionName */
functionName?: (string|null);
/** GradientDef gradientFunc */
gradientFunc?: (string|null);
}
/** GradientDef gradientFunc */
gradientFunc?: (string|null);
}

@@ -20,3 +20,3 @@ /**

import {tensorflow} from '../data/compiled_api';
import * as tensorflow from '../data/compiled_api';
import {NamedTensorsMap, TensorInfo} from '../data/types';

@@ -23,0 +23,0 @@ import {OperationMapper} from '../operations/operation_mapper';

@@ -18,4 +18,4 @@ /**

import {DataType} from '@tensorflow/tfjs-core';
import {tensorflow} from '../data/compiled_api';
import {DataType, ENV} from '@tensorflow/tfjs-core';
import * as tensorflow from '../data/compiled_api';
import {getNodeNameAndIndex} from './executors/utils';

@@ -234,4 +234,6 @@ import * as arithmetic from './op_list/arithmetic';

private decodeBase64(text: string): string {
if (typeof atob !== 'undefined') {
return atob(text);
// tslint:disable-next-line:no-any
const global = ENV.global as any;
if (typeof global.atob !== 'undefined') {
return global.atob(text);
} else if (typeof Buffer !== 'undefined') {

@@ -238,0 +240,0 @@ return new Buffer(text, 'base64').toString();

/** @license See the LICENSE file. */
// This code is auto-generated, do not modify this file!
const version = '1.0.2';
const version = '1.0.3';
export {version};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc