Back to Tfjs

Supported Tensorflow Ops

tfjs-converter/docs/supported_ops.md

1.2.97.6 KB
Original Source

Supported Tensorflow Ops

Operations - Arithmetic

Tensorflow Op NameTensorflow.js Op Name
Addadd
AddNaddN
AddV2AddV2
BiasAddBiasAdd
Divdiv
DivNoNandivNoNan
FloorDivfloorDiv
FloorModFloorMod
Maximummaximum
Minimumminimum
Modmod
Mulmul
Powpow
RealDivRealDiv
SquaredDifferencesquaredDifference
Subsub

Operations - Basic math

Tensorflow Op NameTensorflow.js Op Name
Absabs
Acosacos
Acoshacosh
Asinasin
Asinhasinh
Atanatan
Atan2atan2
Atanhatanh
Ceilceil
ClipByValueclipByValue
ComplexComplex
ComplexAbsComplexAbs
Coscos
Coshcosh
Eluelu
Erferf
Expexp
Expm1expm1
Floorfloor
ImagImag
LeakyReluleakyRelu
Loglog
Log1plog1p
Negneg
Preluprelu
ProdProd
RealReal
Reciprocalreciprocal
Relurelu
Relu6relu6
Roundround
Rsqrtrsqrt
Seluselu
Sigmoidsigmoid
Signsign
Sinsin
Sinhsinh
Softplussoftplus
Sqrtsqrt
Squaresquare
Tantan
Tanhtanh
IsFiniteisFinite
IsInfisInf
IsNanisNaN
Not mappedlogSigmoid
Not mappedstep

Operations - Control Flow

Tensorflow Op NameTensorflow.js Op Name
EmptyTensorListEmptyTensorList
EnterEnter
ExitExit
IfIf
LoopCondLoopCond
MergeMerge
NextIterationNextIteration
StatelessIfStatelessIf
StatelessWhileStatelessWhile
SwitchSwitch
TensorArrayCloseV3TensorArrayCloseV3
TensorArrayConcatV3TensorArrayConcatV3
TensorArrayGatherV3TensorArrayGatherV3
TensorArrayReadV3TensorArrayReadV3
TensorArrayScatterV3TensorArrayScatterV3
TensorArraySizeV3TensorArraySizeV3
TensorArraySplitV3TensorArraySplitV3
TensorArrayV3TensorArrayV3
TensorArrayWriteV3TensorArrayWriteV3
TensorListConcatTensorListConcat
TensorListConcatV2TensorListConcatV2
TensorListFromTensorTensorListFromTensor
TensorListGatherTensorListGather
TensorListGetItemTensorListGetItem
TensorListLengthTensorListLength
TensorListPopBackTensorListPopBack
TensorListPushBackTensorListPushBack
TensorListReserveTensorListReserve
TensorListResizeTensorListResize
TensorListScatterTensorListScatter
TensorListScatterV2TensorListScatterV2
TensorListSetItemTensorListSetItem
TensorListSplitTensorListSplit
TensorListStackTensorListStack
WhileWhile

Operations - Convolution

Tensorflow Op NameTensorflow.js Op Name
_FusedConv2D_FusedConv2D
AvgPoolAvgPool
AvgPool3DavgPool3d
Conv1Dconv1d
Conv2Dconv2d
Conv2DBackpropInputConv2DBackpropInput
Conv3Dconv3d
DepthwiseConv2ddepthwiseConv2d
DepthwiseConv2dNativeDepthwiseConv2dNative
Dilation2DDilation2D
FusedDepthwiseConv2dNativeFusedDepthwiseConv2dNative
MaxPoolMaxPool
MaxPool3DmaxPool3d
MaxPoolWithArgmaxmaxPoolWithArgmax
Not mappedconv2dTranspose
Not mappedconv3dTranspose
Not mappedpool
Not mappedseparableConv2d

Tensors - Creation

Tensorflow Op NameTensorflow.js Op Name
Fillfill
LinSpacelinspace
MultinomialMultinomial
OneHotoneHot
Onesones
OnesLikeonesLike
RandomStandardNormalRandomStandardNormal
RandomUniformRandomUniform
Rangerange
TruncatedNormaltruncatedNormal
Zeroszeros
ZerosLikezerosLike
Not mappedeye

Operations - Dynamic

Tensorflow Op NameTensorflow.js Op Name
ListDiffListDiff
NonMaxSuppressionV2NonMaxSuppressionV2
NonMaxSuppressionV3NonMaxSuppressionV3
NonMaxSuppressionV4NonMaxSuppressionV4
NonMaxSuppressionV5NonMaxSuppressionV5
WhereWhere

Operations - Evaluation

Tensorflow Op NameTensorflow.js Op Name
LowerBoundLowerBound
TopKV2TopKV2
UniqueUnique
UniqueV2UniqueV2
UpperBoundUpperBound
Not mappedconfusionMatrix
Not mappedinTopKAsync
Not mappedtopk

Tensorflow - Graph

Tensorflow Op NameTensorflow.js Op Name
ConstConst
FakeQuantWithMinMaxVarsFakeQuantWithMinMaxVars
IdentityIdentity
IdentityNIdentityN
NoOpNoOp
PlaceholderPlaceholder
PlaceholderWithDefaultPlaceholderWithDefault
PrintPrint
RankRank
ShapeShape
ShapeNShapeN
SizeSize
SnapshotSnapshot
StopGradientStopGradient

Operations - Logical

Tensorflow Op NameTensorflow.js Op Name
BitwiseAndbitwiseAnd
Equalequal
Greatergreater
GreaterEqualgreaterEqual
Lessless
LessEquallessEqual
LogicalAndlogicalAnd
LogicalNotlogicalNot
LogicalOrlogicalOr
NotEqualnotEqual
SelectSelect
SelectV2SelectV2
Not mappedlogicalXor

Operations - Hashtable

Tensorflow Op NameTensorflow.js Op Name
HashTableHashTable
HashTableV2HashTableV2
LookupTableFindLookupTableFind
LookupTableFindV2LookupTableFindV2
LookupTableImportLookupTableImport
LookupTableImportV2LookupTableImportV2
LookupTableSizeLookupTableSize
LookupTableSizeV2LookupTableSizeV2

Operations - Images

Tensorflow Op NameTensorflow.js Op Name
CropAndResizecropAndResize
ResizeBilinearresizeBilinear
ResizeNearestNeighborresizeNearestNeighbor
Not mappedflipLeftRight
Not mappedrotateWithOffset
ImageProjectiveTransformV3transform

Operations - Matrices

Tensorflow Op NameTensorflow.js Op Name
_FusedMatMul_FusedMatMul
BatchMatMulBatchMatMul
BatchMatMulV2BatchMatMulV2
EinsumEinsum
MatMulmatMul
Transposetranspose
MatrixBandPartMatrixBandPart
Not mappeddot
Not mappednorm
Not mappedouterProduct

Operations - Moving Average

Tensorflow Op NameTensorflow.js Op Name
Not mappedmovingAverage

Operations - Normalization

Tensorflow Op NameTensorflow.js Op Name
EuclideanNormEuclideanNorm
FusedBatchNormFusedBatchNorm
FusedBatchNormV2FusedBatchNormV2
FusedBatchNormV3FusedBatchNormV3
LogSoftmaxlogSoftmax
LRNLRN
Softmaxsoftmax
SparseToDensesparseToDense
Not mappedbatchNorm
Not mappedmoments

Operations - Reduction

Tensorflow Op NameTensorflow.js Op Name
Allall
Anyany
ArgMaxargMax
ArgMinargMin
Bincountbincount
DenseBincountdenseBincount
Maxmax
Meanmean
Minmin
Prodprod
Sumsum
Not mappedlogSumExp

Tensors - RNN

Tensorflow Op NameTensorflow.js Op Name

Operations - Scan

Tensorflow Op NameTensorflow.js Op Name
Cumprodcumprod
Cumsumcumsum

Operations - Segment

Tensorflow Op NameTensorflow.js Op Name
Not mappedunsortedSegmentSum

Tensors - Slicing and Joining

Tensorflow Op NameTensorflow.js Op Name
Concatconcat
ConcatV2ConcatV2
Gathergather
GatherNdGatherNd
GatherV2GatherV2
PackPack
Reversereverse
ReverseV2ReverseV2
ScatterNdScatterNd
Sliceslice
SparseToDenseSparseToDense
Splitsplit
SplitVSplitV
StridedSliceStridedSlice
Tiletile
UnpackUnpack
Not mappedbooleanMaskAsync
Not mappedstack
Not mappedunstack

Operations - Spectral

Tensorflow Op NameTensorflow.js Op Name
FFTfft
IFFTifft
IRFFTirfft
RFFTrfft

Operations - Signal

Tensorflow Op NameTensorflow.js Op Name
Not mappedframe
Not mappedhammingWindow
Not mappedhannWindow
Not mappedstft

Operations - Linear Algebra

Tensorflow Op NameTensorflow.js Op Name
Not mappedbandPart
Not mappedgramSchmidt
Not mappedqr

Tensors - Transformations

Tensorflow Op NameTensorflow.js Op Name
BatchToSpaceNDbatchToSpaceND
BroadcastArgsbroadcastArgs
BroadcastTobroadcastTo
Castcast
DepthToSpacedepthToSpace
ExpandDimsexpandDims
MirrorPadMirrorPad
Padpad
PadV2PadV2
Reshapereshape
EnsureShapeensureShape
SpaceToBatchNDspaceToBatchND
Squeezesqueeze
Not mappedsetdiff1dAsync