org.tensorflow.op.Ops Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libtensorflow Show documentation
Show all versions of libtensorflow Show documentation
Pure-Java code for the TensorFlow machine intelligence library.
package org.tensorflow.op;
import java.nio.ByteBuffer;
import java.nio.DoubleBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
import java.nio.charset.Charset;
import java.util.List;
import org.tensorflow.Graph;
import org.tensorflow.Operand;
import org.tensorflow.Shape;
import org.tensorflow.op.core.Abort;
import org.tensorflow.op.core.Abs;
import org.tensorflow.op.core.AccumulateNV2;
import org.tensorflow.op.core.AccumulatorApplyGradient;
import org.tensorflow.op.core.AccumulatorNumAccumulated;
import org.tensorflow.op.core.AccumulatorSetGlobalStep;
import org.tensorflow.op.core.AccumulatorTakeGradient;
import org.tensorflow.op.core.Acos;
import org.tensorflow.op.core.Acosh;
import org.tensorflow.op.core.Add;
import org.tensorflow.op.core.AddManySparseToTensorsMap;
import org.tensorflow.op.core.AddN;
import org.tensorflow.op.core.AddSparseToTensorsMap;
import org.tensorflow.op.core.AddV2;
import org.tensorflow.op.core.AdjustContrast;
import org.tensorflow.op.core.AdjustHue;
import org.tensorflow.op.core.AdjustSaturation;
import org.tensorflow.op.core.All;
import org.tensorflow.op.core.AllCandidateSampler;
import org.tensorflow.op.core.Angle;
import org.tensorflow.op.core.AnonymousIterator;
import org.tensorflow.op.core.Any;
import org.tensorflow.op.core.ApplyAdadelta;
import org.tensorflow.op.core.ApplyAdagrad;
import org.tensorflow.op.core.ApplyAdagradDA;
import org.tensorflow.op.core.ApplyAdam;
import org.tensorflow.op.core.ApplyAddSign;
import org.tensorflow.op.core.ApplyCenteredRMSProp;
import org.tensorflow.op.core.ApplyFtrl;
import org.tensorflow.op.core.ApplyFtrlV2;
import org.tensorflow.op.core.ApplyGradientDescent;
import org.tensorflow.op.core.ApplyMomentum;
import org.tensorflow.op.core.ApplyPowerSign;
import org.tensorflow.op.core.ApplyProximalAdagrad;
import org.tensorflow.op.core.ApplyProximalGradientDescent;
import org.tensorflow.op.core.ApplyRMSProp;
import org.tensorflow.op.core.ApproximateEqual;
import org.tensorflow.op.core.ArgMax;
import org.tensorflow.op.core.ArgMin;
import org.tensorflow.op.core.AsString;
import org.tensorflow.op.core.Asin;
import org.tensorflow.op.core.Asinh;
import org.tensorflow.op.core.Assign;
import org.tensorflow.op.core.AssignAdd;
import org.tensorflow.op.core.AssignAddVariableOp;
import org.tensorflow.op.core.AssignSub;
import org.tensorflow.op.core.AssignSubVariableOp;
import org.tensorflow.op.core.AssignVariableOp;
import org.tensorflow.op.core.Atan;
import org.tensorflow.op.core.Atan2;
import org.tensorflow.op.core.Atanh;
import org.tensorflow.op.core.AudioSpectrogram;
import org.tensorflow.op.core.AudioSummary;
import org.tensorflow.op.core.AvgPool;
import org.tensorflow.op.core.AvgPool3D;
import org.tensorflow.op.core.AvgPool3DGrad;
import org.tensorflow.op.core.Barrier;
import org.tensorflow.op.core.BarrierClose;
import org.tensorflow.op.core.BarrierIncompleteSize;
import org.tensorflow.op.core.BarrierInsertMany;
import org.tensorflow.op.core.BarrierReadySize;
import org.tensorflow.op.core.BarrierTakeMany;
import org.tensorflow.op.core.Batch;
import org.tensorflow.op.core.BatchCholesky;
import org.tensorflow.op.core.BatchCholeskyGrad;
import org.tensorflow.op.core.BatchDataset;
import org.tensorflow.op.core.BatchFFT;
import org.tensorflow.op.core.BatchFFT2D;
import org.tensorflow.op.core.BatchFFT3D;
import org.tensorflow.op.core.BatchIFFT;
import org.tensorflow.op.core.BatchIFFT2D;
import org.tensorflow.op.core.BatchIFFT3D;
import org.tensorflow.op.core.BatchMatMul;
import org.tensorflow.op.core.BatchMatrixBandPart;
import org.tensorflow.op.core.BatchMatrixDeterminant;
import org.tensorflow.op.core.BatchMatrixDiag;
import org.tensorflow.op.core.BatchMatrixDiagPart;
import org.tensorflow.op.core.BatchMatrixInverse;
import org.tensorflow.op.core.BatchMatrixSetDiag;
import org.tensorflow.op.core.BatchMatrixSolve;
import org.tensorflow.op.core.BatchMatrixSolveLs;
import org.tensorflow.op.core.BatchMatrixTriangularSolve;
import org.tensorflow.op.core.BatchNormWithGlobalNormalization;
import org.tensorflow.op.core.BatchNormWithGlobalNormalizationGrad;
import org.tensorflow.op.core.BatchSelfAdjointEig;
import org.tensorflow.op.core.BatchSelfAdjointEigV2;
import org.tensorflow.op.core.BatchSvd;
import org.tensorflow.op.core.BatchToSpace;
import org.tensorflow.op.core.BatchToSpaceND;
import org.tensorflow.op.core.BesselI0e;
import org.tensorflow.op.core.BesselI1e;
import org.tensorflow.op.core.Betainc;
import org.tensorflow.op.core.BiasAdd;
import org.tensorflow.op.core.BiasAddGrad;
import org.tensorflow.op.core.BigQueryReader;
import org.tensorflow.op.core.Bincount;
import org.tensorflow.op.core.Bitcast;
import org.tensorflow.op.core.BitwiseAnd;
import org.tensorflow.op.core.BitwiseOr;
import org.tensorflow.op.core.BitwiseXor;
import org.tensorflow.op.core.BroadcastDynamicShape;
import org.tensorflow.op.core.BroadcastTo;
import org.tensorflow.op.core.Bucketize;
import org.tensorflow.op.core.BytesProducedStatsDataset;
import org.tensorflow.op.core.CTCBeamSearchDecoder;
import org.tensorflow.op.core.CTCGreedyDecoder;
import org.tensorflow.op.core.CTCLoss;
import org.tensorflow.op.core.CacheDataset;
import org.tensorflow.op.core.Cast;
import org.tensorflow.op.core.Ceil;
import org.tensorflow.op.core.CheckNumerics;
import org.tensorflow.op.core.Cholesky;
import org.tensorflow.op.core.CholeskyGrad;
import org.tensorflow.op.core.ClipByValue;
import org.tensorflow.op.core.CompareAndBitpack;
import org.tensorflow.op.core.Complex;
import org.tensorflow.op.core.ComplexAbs;
import org.tensorflow.op.core.ComputeAccidentalHits;
import org.tensorflow.op.core.Concat;
import org.tensorflow.op.core.ConcatenateDataset;
import org.tensorflow.op.core.ConditionalAccumulator;
import org.tensorflow.op.core.Conj;
import org.tensorflow.op.core.ConjugateTranspose;
import org.tensorflow.op.core.Constant;
import org.tensorflow.op.core.ConsumeMutexLock;
import org.tensorflow.op.core.ControlTrigger;
import org.tensorflow.op.core.Conv2D;
import org.tensorflow.op.core.Conv2DBackpropFilter;
import org.tensorflow.op.core.Conv2DBackpropInput;
import org.tensorflow.op.core.Conv3D;
import org.tensorflow.op.core.Conv3DBackpropFilter;
import org.tensorflow.op.core.Conv3DBackpropFilterV2;
import org.tensorflow.op.core.Conv3DBackpropInput;
import org.tensorflow.op.core.Conv3DBackpropInputV2;
import org.tensorflow.op.core.Cos;
import org.tensorflow.op.core.Cosh;
import org.tensorflow.op.core.CountUpTo;
import org.tensorflow.op.core.CropAndResize;
import org.tensorflow.op.core.CropAndResizeGradBoxes;
import org.tensorflow.op.core.CropAndResizeGradImage;
import org.tensorflow.op.core.Cross;
import org.tensorflow.op.core.CudnnRNN;
import org.tensorflow.op.core.CudnnRNNBackprop;
import org.tensorflow.op.core.CudnnRNNCanonicalToParams;
import org.tensorflow.op.core.CudnnRNNParamsSize;
import org.tensorflow.op.core.CudnnRNNParamsToCanonical;
import org.tensorflow.op.core.Cumprod;
import org.tensorflow.op.core.Cumsum;
import org.tensorflow.op.core.DataFormatDimMap;
import org.tensorflow.op.core.DataFormatVecPermute;
import org.tensorflow.op.core.DatasetToSingleElement;
import org.tensorflow.op.core.DebugGradientIdentity;
import org.tensorflow.op.core.DebugGradientRefIdentity;
import org.tensorflow.op.core.DecodeAndCropJpeg;
import org.tensorflow.op.core.DecodeBase64;
import org.tensorflow.op.core.DecodeBmp;
import org.tensorflow.op.core.DecodeCSV;
import org.tensorflow.op.core.DecodeCompressed;
import org.tensorflow.op.core.DecodeGif;
import org.tensorflow.op.core.DecodeJSONExample;
import org.tensorflow.op.core.DecodeJpeg;
import org.tensorflow.op.core.DecodePng;
import org.tensorflow.op.core.DecodeProtoV2;
import org.tensorflow.op.core.DecodeRaw;
import org.tensorflow.op.core.DecodeWav;
import org.tensorflow.op.core.DeepCopy;
import org.tensorflow.op.core.DeleteSessionTensor;
import org.tensorflow.op.core.DenseToDenseSetOperation;
import org.tensorflow.op.core.DenseToSparseBatchDataset;
import org.tensorflow.op.core.DenseToSparseSetOperation;
import org.tensorflow.op.core.DepthToSpace;
import org.tensorflow.op.core.DepthwiseConv2dNative;
import org.tensorflow.op.core.DepthwiseConv2dNativeBackpropFilter;
import org.tensorflow.op.core.DepthwiseConv2dNativeBackpropInput;
import org.tensorflow.op.core.Dequantize;
import org.tensorflow.op.core.DeserializeIterator;
import org.tensorflow.op.core.DeserializeManySparse;
import org.tensorflow.op.core.DeserializeSparse;
import org.tensorflow.op.core.DestroyResourceOp;
import org.tensorflow.op.core.DestroyTemporaryVariable;
import org.tensorflow.op.core.Diag;
import org.tensorflow.op.core.DiagPart;
import org.tensorflow.op.core.Digamma;
import org.tensorflow.op.core.Dilation2D;
import org.tensorflow.op.core.Dilation2DBackpropFilter;
import org.tensorflow.op.core.Dilation2DBackpropInput;
import org.tensorflow.op.core.Div;
import org.tensorflow.op.core.DivNoNan;
import org.tensorflow.op.core.DrawBoundingBoxes;
import org.tensorflow.op.core.DynamicPartition;
import org.tensorflow.op.core.DynamicStitch;
import org.tensorflow.op.core.EagerPyFunc;
import org.tensorflow.op.core.EditDistance;
import org.tensorflow.op.core.Elu;
import org.tensorflow.op.core.Empty;
import org.tensorflow.op.core.EmptyTensorList;
import org.tensorflow.op.core.EncodeBase64;
import org.tensorflow.op.core.EncodeJpeg;
import org.tensorflow.op.core.EncodePng;
import org.tensorflow.op.core.EncodeProto;
import org.tensorflow.op.core.EncodeWav;
import org.tensorflow.op.core.EnqueueInQueueDataset;
import org.tensorflow.op.core.EnsureShape;
import org.tensorflow.op.core.Equal;
import org.tensorflow.op.core.Erf;
import org.tensorflow.op.core.Erfc;
import org.tensorflow.op.core.Exp;
import org.tensorflow.op.core.ExpandDims;
import org.tensorflow.op.core.Expm1;
import org.tensorflow.op.core.ExtractGlimpse;
import org.tensorflow.op.core.ExtractImagePatches;
import org.tensorflow.op.core.ExtractJpegShape;
import org.tensorflow.op.core.FFT;
import org.tensorflow.op.core.FFT2D;
import org.tensorflow.op.core.FFT3D;
import org.tensorflow.op.core.FIFOQueue;
import org.tensorflow.op.core.Fact;
import org.tensorflow.op.core.FakeQuantWithMinMaxArgs;
import org.tensorflow.op.core.FakeQuantWithMinMaxArgsGradient;
import org.tensorflow.op.core.FakeQuantWithMinMaxVars;
import org.tensorflow.op.core.FakeQuantWithMinMaxVarsGradient;
import org.tensorflow.op.core.FakeQuantWithMinMaxVarsPerChannel;
import org.tensorflow.op.core.FakeQuantWithMinMaxVarsPerChannelGradient;
import org.tensorflow.op.core.Fill;
import org.tensorflow.op.core.FixedLengthRecordDataset;
import org.tensorflow.op.core.FixedLengthRecordReader;
import org.tensorflow.op.core.FixedUnigramCandidateSampler;
import org.tensorflow.op.core.Floor;
import org.tensorflow.op.core.FloorDiv;
import org.tensorflow.op.core.FloorMod;
import org.tensorflow.op.core.FractionalAvgPool;
import org.tensorflow.op.core.FractionalMaxPool;
import org.tensorflow.op.core.FusedBatchNorm;
import org.tensorflow.op.core.FusedBatchNormGrad;
import org.tensorflow.op.core.FusedBatchNormGradV2;
import org.tensorflow.op.core.FusedBatchNormV2;
import org.tensorflow.op.core.FusedPadConv2D;
import org.tensorflow.op.core.FusedResizeAndPadConv2D;
import org.tensorflow.op.core.Gather;
import org.tensorflow.op.core.GatherNd;
import org.tensorflow.op.core.GatherV2;
import org.tensorflow.op.core.GcsConfigureBlockCache;
import org.tensorflow.op.core.GcsConfigureCredentials;
import org.tensorflow.op.core.GenerateBigQueryReaderPartitions;
import org.tensorflow.op.core.GenerateVocabRemapping;
import org.tensorflow.op.core.GetSessionHandle;
import org.tensorflow.op.core.GetSessionHandleV2;
import org.tensorflow.op.core.GetSessionTensor;
import org.tensorflow.op.core.Gradients;
import org.tensorflow.op.core.Greater;
import org.tensorflow.op.core.GreaterEqual;
import org.tensorflow.op.core.GuaranteeConst;
import org.tensorflow.op.core.HSVToRGB;
import org.tensorflow.op.core.HashTable;
import org.tensorflow.op.core.HistogramFixedWidth;
import org.tensorflow.op.core.HistogramSummary;
import org.tensorflow.op.core.IFFT;
import org.tensorflow.op.core.IFFT2D;
import org.tensorflow.op.core.IFFT3D;
import org.tensorflow.op.core.IRFFT;
import org.tensorflow.op.core.IRFFT2D;
import org.tensorflow.op.core.IRFFT3D;
import org.tensorflow.op.core.Identity;
import org.tensorflow.op.core.IdentityN;
import org.tensorflow.op.core.IdentityReader;
import org.tensorflow.op.core.Igamma;
import org.tensorflow.op.core.Igammac;
import org.tensorflow.op.core.Imag;
import org.tensorflow.op.core.ImageSummary;
import org.tensorflow.op.core.ImmutableConst;
import org.tensorflow.op.core.InTopK;
import org.tensorflow.op.core.InTopKV2;
import org.tensorflow.op.core.InitializeTable;
import org.tensorflow.op.core.InitializeTableFromTextFile;
import org.tensorflow.op.core.InplaceAdd;
import org.tensorflow.op.core.InplaceSub;
import org.tensorflow.op.core.InplaceUpdate;
import org.tensorflow.op.core.Inv;
import org.tensorflow.op.core.Invert;
import org.tensorflow.op.core.InvertPermutation;
import org.tensorflow.op.core.IsFinite;
import org.tensorflow.op.core.IsInf;
import org.tensorflow.op.core.IsNan;
import org.tensorflow.op.core.IsVariableInitialized;
import org.tensorflow.op.core.Iterator;
import org.tensorflow.op.core.IteratorFromStringHandle;
import org.tensorflow.op.core.IteratorGetNext;
import org.tensorflow.op.core.IteratorGetNextAsOptional;
import org.tensorflow.op.core.IteratorGetNextSync;
import org.tensorflow.op.core.IteratorToStringHandle;
import org.tensorflow.op.core.L2Loss;
import org.tensorflow.op.core.LMDBReader;
import org.tensorflow.op.core.LRN;
import org.tensorflow.op.core.LatencyStatsDataset;
import org.tensorflow.op.core.LearnedUnigramCandidateSampler;
import org.tensorflow.op.core.LeftShift;
import org.tensorflow.op.core.Less;
import org.tensorflow.op.core.LessEqual;
import org.tensorflow.op.core.Lgamma;
import org.tensorflow.op.core.LinSpace;
import org.tensorflow.op.core.LoadAndRemapMatrix;
import org.tensorflow.op.core.Log;
import org.tensorflow.op.core.Log1p;
import org.tensorflow.op.core.LogMatrixDeterminant;
import org.tensorflow.op.core.LogSoftmax;
import org.tensorflow.op.core.LogUniformCandidateSampler;
import org.tensorflow.op.core.LogicalAnd;
import org.tensorflow.op.core.LogicalNot;
import org.tensorflow.op.core.LogicalOr;
import org.tensorflow.op.core.LookupTableExport;
import org.tensorflow.op.core.LookupTableFind;
import org.tensorflow.op.core.LookupTableImport;
import org.tensorflow.op.core.LookupTableInsert;
import org.tensorflow.op.core.LookupTableSize;
import org.tensorflow.op.core.LoopCond;
import org.tensorflow.op.core.MakeIterator;
import org.tensorflow.op.core.MapClear;
import org.tensorflow.op.core.MapIncompleteSize;
import org.tensorflow.op.core.MapPeek;
import org.tensorflow.op.core.MapSize;
import org.tensorflow.op.core.MapStage;
import org.tensorflow.op.core.MapUnstage;
import org.tensorflow.op.core.MapUnstageNoKey;
import org.tensorflow.op.core.MatMul;
import org.tensorflow.op.core.MatchingFiles;
import org.tensorflow.op.core.MatrixBandPart;
import org.tensorflow.op.core.MatrixDeterminant;
import org.tensorflow.op.core.MatrixDiag;
import org.tensorflow.op.core.MatrixDiagPart;
import org.tensorflow.op.core.MatrixInverse;
import org.tensorflow.op.core.MatrixSetDiag;
import org.tensorflow.op.core.MatrixSolve;
import org.tensorflow.op.core.MatrixSolveLs;
import org.tensorflow.op.core.MatrixTriangularSolve;
import org.tensorflow.op.core.Max;
import org.tensorflow.op.core.MaxPool;
import org.tensorflow.op.core.MaxPool3D;
import org.tensorflow.op.core.MaxPool3DGrad;
import org.tensorflow.op.core.MaxPool3DGradGrad;
import org.tensorflow.op.core.MaxPoolGradGrad;
import org.tensorflow.op.core.MaxPoolGradGradV2;
import org.tensorflow.op.core.MaxPoolGradGradWithArgmax;
import org.tensorflow.op.core.MaxPoolGradV2;
import org.tensorflow.op.core.MaxPoolV2;
import org.tensorflow.op.core.MaxPoolWithArgmax;
import org.tensorflow.op.core.Maximum;
import org.tensorflow.op.core.Mean;
import org.tensorflow.op.core.Merge;
import org.tensorflow.op.core.MergeSummary;
import org.tensorflow.op.core.MergeV2Checkpoints;
import org.tensorflow.op.core.Mfcc;
import org.tensorflow.op.core.Min;
import org.tensorflow.op.core.Minimum;
import org.tensorflow.op.core.MirrorPad;
import org.tensorflow.op.core.Mod;
import org.tensorflow.op.core.Mul;
import org.tensorflow.op.core.Multinomial;
import org.tensorflow.op.core.Multiply;
import org.tensorflow.op.core.MutableDenseHashTable;
import org.tensorflow.op.core.MutableHashTable;
import org.tensorflow.op.core.MutableHashTableOfTensors;
import org.tensorflow.op.core.MutexLock;
import org.tensorflow.op.core.MutexV2;
import org.tensorflow.op.core.Neg;
import org.tensorflow.op.core.NegTrain;
import org.tensorflow.op.core.Negate;
import org.tensorflow.op.core.NextIteration;
import org.tensorflow.op.core.NoOp;
import org.tensorflow.op.core.NonMaxSuppression;
import org.tensorflow.op.core.NonMaxSuppressionV2;
import org.tensorflow.op.core.NonMaxSuppressionV3;
import org.tensorflow.op.core.NonMaxSuppressionV4;
import org.tensorflow.op.core.NonMaxSuppressionWithOverlaps;
import org.tensorflow.op.core.NotEqual;
import org.tensorflow.op.core.NthElement;
import org.tensorflow.op.core.OneHot;
import org.tensorflow.op.core.OnesLike;
import org.tensorflow.op.core.OptionalFromValue;
import org.tensorflow.op.core.OptionalGetValue;
import org.tensorflow.op.core.OptionalHasValue;
import org.tensorflow.op.core.OptionalNone;
import org.tensorflow.op.core.OrderedMapClear;
import org.tensorflow.op.core.OrderedMapIncompleteSize;
import org.tensorflow.op.core.OrderedMapPeek;
import org.tensorflow.op.core.OrderedMapSize;
import org.tensorflow.op.core.OrderedMapStage;
import org.tensorflow.op.core.OrderedMapUnstage;
import org.tensorflow.op.core.OrderedMapUnstageNoKey;
import org.tensorflow.op.core.Pad;
import org.tensorflow.op.core.PadV2;
import org.tensorflow.op.core.PaddedBatchDataset;
import org.tensorflow.op.core.PaddingFIFOQueue;
import org.tensorflow.op.core.ParallelConcat;
import org.tensorflow.op.core.ParallelDynamicStitch;
import org.tensorflow.op.core.ParameterizedTruncatedNormal;
import org.tensorflow.op.core.ParseExample;
import org.tensorflow.op.core.ParseExampleDataset;
import org.tensorflow.op.core.ParseSequenceExample;
import org.tensorflow.op.core.ParseSingleExample;
import org.tensorflow.op.core.ParseSingleSequenceExample;
import org.tensorflow.op.core.ParseTensor;
import org.tensorflow.op.core.Placeholder;
import org.tensorflow.op.core.PlaceholderV2;
import org.tensorflow.op.core.PlaceholderWithDefault;
import org.tensorflow.op.core.Polygamma;
import org.tensorflow.op.core.PopulationCount;
import org.tensorflow.op.core.Pow;
import org.tensorflow.op.core.PrefetchDataset;
import org.tensorflow.op.core.PrependFromQueueAndPaddedBatchDataset;
import org.tensorflow.op.core.PreventGradient;
import org.tensorflow.op.core.Print;
import org.tensorflow.op.core.PriorityQueue;
import org.tensorflow.op.core.Prod;
import org.tensorflow.op.core.Qr;
import org.tensorflow.op.core.QuantizeAndDequantize;
import org.tensorflow.op.core.QuantizeAndDequantizeV2;
import org.tensorflow.op.core.QuantizeAndDequantizeV3;
import org.tensorflow.op.core.QuantizeDownAndShrinkRange;
import org.tensorflow.op.core.QuantizeV2;
import org.tensorflow.op.core.QuantizedAdd;
import org.tensorflow.op.core.QuantizedAvgPool;
import org.tensorflow.op.core.QuantizedBatchNormWithGlobalNormalization;
import org.tensorflow.op.core.QuantizedBiasAdd;
import org.tensorflow.op.core.QuantizedConcat;
import org.tensorflow.op.core.QuantizedConv2D;
import org.tensorflow.op.core.QuantizedInstanceNorm;
import org.tensorflow.op.core.QuantizedMatMul;
import org.tensorflow.op.core.QuantizedMaxPool;
import org.tensorflow.op.core.QuantizedMul;
import org.tensorflow.op.core.QuantizedRelu;
import org.tensorflow.op.core.QuantizedRelu6;
import org.tensorflow.op.core.QuantizedReluX;
import org.tensorflow.op.core.QuantizedReshape;
import org.tensorflow.op.core.QuantizedResizeBilinear;
import org.tensorflow.op.core.QueueClose;
import org.tensorflow.op.core.QueueDequeue;
import org.tensorflow.op.core.QueueDequeueMany;
import org.tensorflow.op.core.QueueDequeueUpTo;
import org.tensorflow.op.core.QueueEnqueue;
import org.tensorflow.op.core.QueueEnqueueMany;
import org.tensorflow.op.core.QueueIsClosed;
import org.tensorflow.op.core.QueueIsClosedV2;
import org.tensorflow.op.core.QueueSize;
import org.tensorflow.op.core.RFFT;
import org.tensorflow.op.core.RFFT2D;
import org.tensorflow.op.core.RFFT3D;
import org.tensorflow.op.core.RGBToHSV;
import org.tensorflow.op.core.RandomCrop;
import org.tensorflow.op.core.RandomDataset;
import org.tensorflow.op.core.RandomGamma;
import org.tensorflow.op.core.RandomNormal;
import org.tensorflow.op.core.RandomPoisson;
import org.tensorflow.op.core.RandomPoissonV2;
import org.tensorflow.op.core.RandomShuffle;
import org.tensorflow.op.core.RandomShuffleQueue;
import org.tensorflow.op.core.RandomUniform;
import org.tensorflow.op.core.RandomUniformInt;
import org.tensorflow.op.core.Range;
import org.tensorflow.op.core.RangeDataset;
import org.tensorflow.op.core.Rank;
import org.tensorflow.op.core.ReadFile;
import org.tensorflow.op.core.ReadVariableOp;
import org.tensorflow.op.core.ReaderNumRecordsProduced;
import org.tensorflow.op.core.ReaderNumWorkUnitsCompleted;
import org.tensorflow.op.core.ReaderRead;
import org.tensorflow.op.core.ReaderReadUpTo;
import org.tensorflow.op.core.ReaderReset;
import org.tensorflow.op.core.ReaderRestoreState;
import org.tensorflow.op.core.ReaderSerializeState;
import org.tensorflow.op.core.Real;
import org.tensorflow.op.core.RealDiv;
import org.tensorflow.op.core.Reciprocal;
import org.tensorflow.op.core.RecordInput;
import org.tensorflow.op.core.ReduceAll;
import org.tensorflow.op.core.ReduceAny;
import org.tensorflow.op.core.ReduceJoin;
import org.tensorflow.op.core.ReduceMax;
import org.tensorflow.op.core.ReduceMean;
import org.tensorflow.op.core.ReduceMin;
import org.tensorflow.op.core.ReduceProd;
import org.tensorflow.op.core.ReduceSum;
import org.tensorflow.op.core.RefNextIteration;
import org.tensorflow.op.core.RefSelect;
import org.tensorflow.op.core.RefSwitch;
import org.tensorflow.op.core.RegexFullMatch;
import org.tensorflow.op.core.RegexReplace;
import org.tensorflow.op.core.Relu;
import org.tensorflow.op.core.Relu6;
import org.tensorflow.op.core.RemoteFusedGraphExecute;
import org.tensorflow.op.core.RepeatDataset;
import org.tensorflow.op.core.RequantizationRange;
import org.tensorflow.op.core.Requantize;
import org.tensorflow.op.core.Reshape;
import org.tensorflow.op.core.ResizeArea;
import org.tensorflow.op.core.ResizeBicubic;
import org.tensorflow.op.core.ResizeBilinear;
import org.tensorflow.op.core.ResizeNearestNeighbor;
import org.tensorflow.op.core.ResourceApplyAdadelta;
import org.tensorflow.op.core.ResourceApplyAdagrad;
import org.tensorflow.op.core.ResourceApplyAdagradDA;
import org.tensorflow.op.core.ResourceApplyAdam;
import org.tensorflow.op.core.ResourceApplyAddSign;
import org.tensorflow.op.core.ResourceApplyCenteredRMSProp;
import org.tensorflow.op.core.ResourceApplyFtrl;
import org.tensorflow.op.core.ResourceApplyFtrlV2;
import org.tensorflow.op.core.ResourceApplyGradientDescent;
import org.tensorflow.op.core.ResourceApplyMomentum;
import org.tensorflow.op.core.ResourceApplyPowerSign;
import org.tensorflow.op.core.ResourceApplyProximalAdagrad;
import org.tensorflow.op.core.ResourceApplyProximalGradientDescent;
import org.tensorflow.op.core.ResourceApplyRMSProp;
import org.tensorflow.op.core.ResourceCountUpTo;
import org.tensorflow.op.core.ResourceGather;
import org.tensorflow.op.core.ResourceScatterAdd;
import org.tensorflow.op.core.ResourceScatterDiv;
import org.tensorflow.op.core.ResourceScatterMax;
import org.tensorflow.op.core.ResourceScatterMin;
import org.tensorflow.op.core.ResourceScatterMul;
import org.tensorflow.op.core.ResourceScatterNdAdd;
import org.tensorflow.op.core.ResourceScatterNdUpdate;
import org.tensorflow.op.core.ResourceScatterSub;
import org.tensorflow.op.core.ResourceScatterUpdate;
import org.tensorflow.op.core.ResourceSparseApplyAdadelta;
import org.tensorflow.op.core.ResourceSparseApplyAdagrad;
import org.tensorflow.op.core.ResourceSparseApplyAdagradDA;
import org.tensorflow.op.core.ResourceSparseApplyCenteredRMSProp;
import org.tensorflow.op.core.ResourceSparseApplyFtrl;
import org.tensorflow.op.core.ResourceSparseApplyFtrlV2;
import org.tensorflow.op.core.ResourceSparseApplyMomentum;
import org.tensorflow.op.core.ResourceSparseApplyProximalAdagrad;
import org.tensorflow.op.core.ResourceSparseApplyProximalGradientDescent;
import org.tensorflow.op.core.ResourceSparseApplyRMSProp;
import org.tensorflow.op.core.ResourceStridedSliceAssign;
import org.tensorflow.op.core.Restore;
import org.tensorflow.op.core.RestoreSlice;
import org.tensorflow.op.core.RestoreV2;
import org.tensorflow.op.core.Reverse;
import org.tensorflow.op.core.ReverseSequence;
import org.tensorflow.op.core.RightShift;
import org.tensorflow.op.core.Rint;
import org.tensorflow.op.core.Roll;
import org.tensorflow.op.core.Round;
import org.tensorflow.op.core.Rpc;
import org.tensorflow.op.core.Rsqrt;
import org.tensorflow.op.core.SampleDistortedBoundingBox;
import org.tensorflow.op.core.SampleDistortedBoundingBoxV2;
import org.tensorflow.op.core.Save;
import org.tensorflow.op.core.SaveSlices;
import org.tensorflow.op.core.SaveV2;
import org.tensorflow.op.core.ScalarSummary;
import org.tensorflow.op.core.ScatterAdd;
import org.tensorflow.op.core.ScatterDiv;
import org.tensorflow.op.core.ScatterMax;
import org.tensorflow.op.core.ScatterMin;
import org.tensorflow.op.core.ScatterMul;
import org.tensorflow.op.core.ScatterNd;
import org.tensorflow.op.core.ScatterNdAdd;
import org.tensorflow.op.core.ScatterNdNonAliasingAdd;
import org.tensorflow.op.core.ScatterNdSub;
import org.tensorflow.op.core.ScatterNdUpdate;
import org.tensorflow.op.core.ScatterSub;
import org.tensorflow.op.core.ScatterUpdate;
import org.tensorflow.op.core.SdcaFprint;
import org.tensorflow.op.core.SdcaOptimizer;
import org.tensorflow.op.core.SdcaShrinkL1;
import org.tensorflow.op.core.SegmentMax;
import org.tensorflow.op.core.SegmentMean;
import org.tensorflow.op.core.SegmentMin;
import org.tensorflow.op.core.SegmentProd;
import org.tensorflow.op.core.SegmentSum;
import org.tensorflow.op.core.SelfAdjointEig;
import org.tensorflow.op.core.Selu;
import org.tensorflow.op.core.SerializeIterator;
import org.tensorflow.op.core.SerializeManySparse;
import org.tensorflow.op.core.SerializeSparse;
import org.tensorflow.op.core.SerializeTensor;
import org.tensorflow.op.core.SetDiff1D;
import org.tensorflow.op.core.SetSize;
import org.tensorflow.op.core.SetStatsAggregatorDataset;
import org.tensorflow.op.core.ShapeN;
import org.tensorflow.op.core.ShardedFilename;
import org.tensorflow.op.core.ShardedFilespec;
import org.tensorflow.op.core.ShuffleAndRepeatDataset;
import org.tensorflow.op.core.ShuffleDataset;
import org.tensorflow.op.core.Sigmoid;
import org.tensorflow.op.core.Sign;
import org.tensorflow.op.core.Sin;
import org.tensorflow.op.core.Sinh;
import org.tensorflow.op.core.Size;
import org.tensorflow.op.core.SkipDataset;
import org.tensorflow.op.core.Skipgram;
import org.tensorflow.op.core.Slice;
import org.tensorflow.op.core.SlideDataset;
import org.tensorflow.op.core.Snapshot;
import org.tensorflow.op.core.Softmax;
import org.tensorflow.op.core.SoftmaxCrossEntropyWithLogits;
import org.tensorflow.op.core.Softplus;
import org.tensorflow.op.core.Softsign;
import org.tensorflow.op.core.SpaceToBatch;
import org.tensorflow.op.core.SpaceToBatchND;
import org.tensorflow.op.core.SpaceToDepth;
import org.tensorflow.op.core.SparseAccumulatorApplyGradient;
import org.tensorflow.op.core.SparseAccumulatorTakeGradient;
import org.tensorflow.op.core.SparseAdd;
import org.tensorflow.op.core.SparseAddGrad;
import org.tensorflow.op.core.SparseApplyAdadelta;
import org.tensorflow.op.core.SparseApplyAdagrad;
import org.tensorflow.op.core.SparseApplyAdagradDA;
import org.tensorflow.op.core.SparseApplyCenteredRMSProp;
import org.tensorflow.op.core.SparseApplyFtrl;
import org.tensorflow.op.core.SparseApplyFtrlV2;
import org.tensorflow.op.core.SparseApplyMomentum;
import org.tensorflow.op.core.SparseApplyProximalAdagrad;
import org.tensorflow.op.core.SparseApplyProximalGradientDescent;
import org.tensorflow.op.core.SparseApplyRMSProp;
import org.tensorflow.op.core.SparseConcat;
import org.tensorflow.op.core.SparseConditionalAccumulator;
import org.tensorflow.op.core.SparseCross;
import org.tensorflow.op.core.SparseDenseCwiseAdd;
import org.tensorflow.op.core.SparseDenseCwiseDiv;
import org.tensorflow.op.core.SparseDenseCwiseMul;
import org.tensorflow.op.core.SparseFillEmptyRows;
import org.tensorflow.op.core.SparseFillEmptyRowsGrad;
import org.tensorflow.op.core.SparseMatMul;
import org.tensorflow.op.core.SparseReduceMax;
import org.tensorflow.op.core.SparseReduceMaxSparse;
import org.tensorflow.op.core.SparseReduceSum;
import org.tensorflow.op.core.SparseReduceSumSparse;
import org.tensorflow.op.core.SparseReorder;
import org.tensorflow.op.core.SparseReshape;
import org.tensorflow.op.core.SparseSegmentMean;
import org.tensorflow.op.core.SparseSegmentMeanGrad;
import org.tensorflow.op.core.SparseSegmentMeanWithNumSegments;
import org.tensorflow.op.core.SparseSegmentSqrtN;
import org.tensorflow.op.core.SparseSegmentSqrtNGrad;
import org.tensorflow.op.core.SparseSegmentSqrtNWithNumSegments;
import org.tensorflow.op.core.SparseSegmentSum;
import org.tensorflow.op.core.SparseSegmentSumWithNumSegments;
import org.tensorflow.op.core.SparseSlice;
import org.tensorflow.op.core.SparseSliceGrad;
import org.tensorflow.op.core.SparseSoftmax;
import org.tensorflow.op.core.SparseSoftmaxCrossEntropyWithLogits;
import org.tensorflow.op.core.SparseSparseMaximum;
import org.tensorflow.op.core.SparseSparseMinimum;
import org.tensorflow.op.core.SparseSplit;
import org.tensorflow.op.core.SparseTensorDenseAdd;
import org.tensorflow.op.core.SparseTensorDenseMatMul;
import org.tensorflow.op.core.SparseTensorSliceDataset;
import org.tensorflow.op.core.SparseToDense;
import org.tensorflow.op.core.SparseToSparseSetOperation;
import org.tensorflow.op.core.Split;
import org.tensorflow.op.core.SplitV;
import org.tensorflow.op.core.SqlDataset;
import org.tensorflow.op.core.Sqrt;
import org.tensorflow.op.core.Square;
import org.tensorflow.op.core.SquaredDifference;
import org.tensorflow.op.core.Squeeze;
import org.tensorflow.op.core.Stack;
import org.tensorflow.op.core.Stage;
import org.tensorflow.op.core.StageClear;
import org.tensorflow.op.core.StagePeek;
import org.tensorflow.op.core.StageSize;
import org.tensorflow.op.core.StatelessMultinomial;
import org.tensorflow.op.core.StatelessRandomNormal;
import org.tensorflow.op.core.StatelessRandomUniform;
import org.tensorflow.op.core.StatelessTruncatedNormal;
import org.tensorflow.op.core.StatsAggregatorHandle;
import org.tensorflow.op.core.StatsAggregatorSummary;
import org.tensorflow.op.core.StopGradient;
import org.tensorflow.op.core.StridedSlice;
import org.tensorflow.op.core.StridedSliceAssign;
import org.tensorflow.op.core.StridedSliceGrad;
import org.tensorflow.op.core.StringJoin;
import org.tensorflow.op.core.StringLength;
import org.tensorflow.op.core.StringSplit;
import org.tensorflow.op.core.StringSplitV2;
import org.tensorflow.op.core.StringStrip;
import org.tensorflow.op.core.StringToHashBucket;
import org.tensorflow.op.core.StringToHashBucketFast;
import org.tensorflow.op.core.StringToHashBucketStrong;
import org.tensorflow.op.core.StringToNumber;
import org.tensorflow.op.core.Sub;
import org.tensorflow.op.core.Substr;
import org.tensorflow.op.core.Subtract;
import org.tensorflow.op.core.Sum;
import org.tensorflow.op.core.Svd;
import org.tensorflow.op.core.TFRecordDataset;
import org.tensorflow.op.core.TFRecordReader;
import org.tensorflow.op.core.TakeDataset;
import org.tensorflow.op.core.TakeManySparseFromTensorsMap;
import org.tensorflow.op.core.Tan;
import org.tensorflow.op.core.Tanh;
import org.tensorflow.op.core.TemporaryVariable;
import org.tensorflow.op.core.TensorArray;
import org.tensorflow.op.core.TensorArrayClose;
import org.tensorflow.op.core.TensorArrayConcat;
import org.tensorflow.op.core.TensorArrayGather;
import org.tensorflow.op.core.TensorArrayGrad;
import org.tensorflow.op.core.TensorArrayGradWithShape;
import org.tensorflow.op.core.TensorArrayPack;
import org.tensorflow.op.core.TensorArrayRead;
import org.tensorflow.op.core.TensorArrayScatter;
import org.tensorflow.op.core.TensorArraySize;
import org.tensorflow.op.core.TensorArraySplit;
import org.tensorflow.op.core.TensorArrayUnpack;
import org.tensorflow.op.core.TensorArrayWrite;
import org.tensorflow.op.core.TensorDataset;
import org.tensorflow.op.core.TensorListConcatLists;
import org.tensorflow.op.core.TensorListElementShape;
import org.tensorflow.op.core.TensorListFromTensor;
import org.tensorflow.op.core.TensorListGather;
import org.tensorflow.op.core.TensorListGetItem;
import org.tensorflow.op.core.TensorListLength;
import org.tensorflow.op.core.TensorListPopBack;
import org.tensorflow.op.core.TensorListPushBack;
import org.tensorflow.op.core.TensorListPushBackBatch;
import org.tensorflow.op.core.TensorListReserve;
import org.tensorflow.op.core.TensorListScatter;
import org.tensorflow.op.core.TensorListSetItem;
import org.tensorflow.op.core.TensorListStack;
import org.tensorflow.op.core.TensorSliceDataset;
import org.tensorflow.op.core.TensorSummary;
import org.tensorflow.op.core.TensorSummaryV2;
import org.tensorflow.op.core.TextLineDataset;
import org.tensorflow.op.core.TextLineReader;
import org.tensorflow.op.core.Tile;
import org.tensorflow.op.core.TileGrad;
import org.tensorflow.op.core.Timestamp;
import org.tensorflow.op.core.TopK;
import org.tensorflow.op.core.Transpose;
import org.tensorflow.op.core.TruncateDiv;
import org.tensorflow.op.core.TruncateMod;
import org.tensorflow.op.core.TruncatedNormal;
import org.tensorflow.op.core.TryRpc;
import org.tensorflow.op.core.Unbatch;
import org.tensorflow.op.core.UnbatchDataset;
import org.tensorflow.op.core.UnbatchGrad;
import org.tensorflow.op.core.UniformCandidateSampler;
import org.tensorflow.op.core.Unique;
import org.tensorflow.op.core.UniqueV2;
import org.tensorflow.op.core.UniqueWithCounts;
import org.tensorflow.op.core.UniqueWithCountsV2;
import org.tensorflow.op.core.UnravelIndex;
import org.tensorflow.op.core.UnsortedSegmentMax;
import org.tensorflow.op.core.UnsortedSegmentMin;
import org.tensorflow.op.core.UnsortedSegmentProd;
import org.tensorflow.op.core.UnsortedSegmentSum;
import org.tensorflow.op.core.Unstack;
import org.tensorflow.op.core.Unstage;
import org.tensorflow.op.core.VarHandleOp;
import org.tensorflow.op.core.VarIsInitializedOp;
import org.tensorflow.op.core.Variable;
import org.tensorflow.op.core.VariableShape;
import org.tensorflow.op.core.Where;
import org.tensorflow.op.core.Where3;
import org.tensorflow.op.core.WholeFileReader;
import org.tensorflow.op.core.WriteFile;
import org.tensorflow.op.core.Zeros;
import org.tensorflow.op.core.ZerosLike;
import org.tensorflow.op.core.Zeta;
import org.tensorflow.op.core.ZipDataset;
import org.tensorflow.types.UInt8;
/**
* An API for building a {@link Graph} with operation wrappers
*
* Any operation wrapper found in the classpath properly annotated as an{@link org.tensorflow.op.annotation.Operator @Operator} is exposed
* by this API or one of its subgroup.
*
Example usage:
*
{@code
* try (Graph g = new Graph()) {
* Ops ops = new Ops(g);
* // Operations are typed classes with convenience
* // builders in Ops.
* Constant three = ops.constant(3);
* // Single-result operations implement the Operand
* // interface, so this works too.
* Operand four = ops.constant(4);
* // Most builders are found within a group, and accept
* // Operand types as operands
* Operand nine = ops.math().add(four, ops.constant(5));
* // Multi-result operations however offer methods to
* // select a particular result for use.
* Operand result =
* ops.math().add(ops.array().unique(s, a).y(), b);
* // Optional attributes
* ops.math().matMul(a, b, MatMul.transposeA(true));
* // Naming operators
* ops.withName(“foo”).constant(5); // name “foo”
* // Names can exist in a hierarchy
* Ops sub = ops.withSubScope(“sub”);
* sub.withName(“bar”).constant(4); // “sub/bar”
* }
* }
*/
public final class Ops {
private final Scope scope;
private Ops(Scope scope) {
this.scope = scope;
}
/**
* Adds an {@link GatherV2} operation to the graph
*
* @param params The tensor from which to gather values. Must be at least rank
* @param indices Index tensor. Must be in range `[0, params.shape[axis])`.
* @param axis The axis in `params` to gather `indices` from. Defaults to the first
* @return a new instance of GatherV2
* @see org.tensorflow.op.core.GatherV2
*/
public GatherV2 gatherV2(Operand params,
Operand indices, Operand axis) {
return GatherV2.create(scope, params, indices, axis);
}
/**
* Adds an {@link SparseSegmentSumWithNumSegments} operation to the graph
*
* @param data
* @param indices A 1-D tensor. Has same rank as `segment_ids`.
* @param segmentIds A 1-D tensor. Values should be sorted and can be repeated.
* @param numSegments Should equal the number of distinct segment IDs.
* @return a new instance of SparseSegmentSumWithNumSegments
* @see org.tensorflow.op.core.SparseSegmentSumWithNumSegments
*/
public SparseSegmentSumWithNumSegments sparseSegmentSumWithNumSegments(Operand data,
Operand indices, Operand segmentIds, Operand numSegments) {
return SparseSegmentSumWithNumSegments.create(scope, data, indices, segmentIds, numSegments);
}
/**
* Adds an {@link Assign} operation to the graph
*
* @param ref Should be from a `Variable` node. May be uninitialized.
* @param value The value to be assigned to the variable.
* @param options carries optional attributes values
* @return a new instance of Assign
* @see org.tensorflow.op.core.Assign
*/
public Assign assign(Operand ref, Operand value, Assign.Options... options) {
return Assign.create(scope, ref, value, options);
}
/**
* Adds an {@link IFFT} operation to the graph
*
* @param input A complex64 tensor.
* @return a new instance of IFFT
* @see org.tensorflow.op.core.IFFT
*/
public IFFT iFFT(Operand input) {
return IFFT.create(scope, input);
}
/**
* Adds an {@link IsFinite} operation to the graph
*
* @param x
* @return a new instance of IsFinite
* @see org.tensorflow.op.core.IsFinite
*/
public IsFinite isFinite(Operand x) {
return IsFinite.create(scope, x);
}
/**
* Adds an {@link ParseExampleDataset} operation to the graph
*
* @param inputDataset
* @param numParallelCalls
* @param denseDefaults A dict mapping string keys to `Tensor`s.
* @param sparseKeys A list of string keys in the examples features.
* @param denseKeys A list of Ndense string Tensors (scalars).
* @param sparseTypes A list of `DTypes` of the same length as `sparse_keys`.
* @param denseShapes List of tuples with the same length as `dense_keys`.
* @param outputTypes The type list for the return values.
* @param outputShapes The list of shapes being produced.
* @return a new instance of ParseExampleDataset
* @see org.tensorflow.op.core.ParseExampleDataset
*/
public ParseExampleDataset parseExampleDataset(Operand> inputDataset,
Operand numParallelCalls, Iterable> denseDefaults, List sparseKeys,
List denseKeys, List> sparseTypes, List denseShapes,
List> outputTypes, List outputShapes) {
return ParseExampleDataset.create(scope, inputDataset, numParallelCalls, denseDefaults, sparseKeys, denseKeys, sparseTypes, denseShapes, outputTypes, outputShapes);
}
/**
* Adds an {@link ShuffleAndRepeatDataset} operation to the graph
*
* @param inputDataset
* @param bufferSize The number of output elements to buffer in an iterator over
* @param seed A scalar seed for the random number generator. If either `seed` or
* @param seed2 A second scalar seed to avoid seed collision.
* @param count A scalar representing the number of times the underlying dataset
* @param outputTypes
* @param outputShapes
* @return a new instance of ShuffleAndRepeatDataset
* @see org.tensorflow.op.core.ShuffleAndRepeatDataset
*/
public ShuffleAndRepeatDataset shuffleAndRepeatDataset(Operand> inputDataset,
Operand bufferSize, Operand seed, Operand seed2, Operand count,
List> outputTypes, List outputShapes) {
return ShuffleAndRepeatDataset.create(scope, inputDataset, bufferSize, seed, seed2, count, outputTypes, outputShapes);
}
/**
* Adds an {@link Conv2DBackpropInput} operation to the graph
*
* @param inputSizes An integer vector representing the shape of `input`,
* @param filter 4-D with shape
* @param outBackprop 4-D with shape `[batch, out_height, out_width, out_channels]`.
* @param strides The stride of the sliding window for each dimension of the input
* @param padding The type of padding algorithm to use.
* @param options carries optional attributes values
* @return a new instance of Conv2DBackpropInput
* @see org.tensorflow.op.core.Conv2DBackpropInput
*/
public Conv2DBackpropInput conv2DBackpropInput(Operand inputSizes,
Operand filter, Operand outBackprop, List strides, String padding,
Conv2DBackpropInput.Options... options) {
return Conv2DBackpropInput.create(scope, inputSizes, filter, outBackprop, strides, padding, options);
}
/**
* Adds an {@link Split} operation to the graph
*
* @param axis 0-D. The dimension along which to split. Must be in the range
* @param value The tensor to split.
* @param numSplit The number of ways to split. Must evenly divide
* @return a new instance of Split
* @see org.tensorflow.op.core.Split
*/
public Split split(Operand axis, Operand value, Long numSplit) {
return Split.create(scope, axis, value, numSplit);
}
/**
* Adds an {@link CTCLoss} operation to the graph
*
* @param inputs 3-D, shape: `(max_time x batch_size x num_classes)`, the logits.
* @param labelsIndices The indices of a `SparseTensor`.
* @param labelsValues The values (labels) associated with the given batch and time.
* @param sequenceLength A vector containing sequence lengths (batch).
* @param options carries optional attributes values
* @return a new instance of CTCLoss
* @see org.tensorflow.op.core.CTCLoss
*/
public CTCLoss cTCLoss(Operand inputs, Operand labelsIndices,
Operand labelsValues, Operand sequenceLength, CTCLoss.Options... options) {
return CTCLoss.create(scope, inputs, labelsIndices, labelsValues, sequenceLength, options);
}
/**
* Adds an {@link Sigmoid} operation to the graph
*
* @param x
* @return a new instance of Sigmoid
* @see org.tensorflow.op.core.Sigmoid
*/
public Sigmoid sigmoid(Operand x) {
return Sigmoid.create(scope, x);
}
/**
* Adds an {@link ResourceStridedSliceAssign} operation to the graph
*
* @param ref
* @param begin
* @param end
* @param strides
* @param value
* @param options carries optional attributes values
* @return a new instance of ResourceStridedSliceAssign
* @see org.tensorflow.op.core.ResourceStridedSliceAssign
*/
public ResourceStridedSliceAssign resourceStridedSliceAssign(Operand> ref,
Operand begin, Operand end, Operand strides, Operand value,
ResourceStridedSliceAssign.Options... options) {
return ResourceStridedSliceAssign.create(scope, ref, begin, end, strides, value, options);
}
/**
* Adds an {@link BatchCholeskyGrad} operation to the graph
*
* @param l
* @param grad
* @return a new instance of BatchCholeskyGrad
* @see org.tensorflow.op.core.BatchCholeskyGrad
*/
public BatchCholeskyGrad batchCholeskyGrad(Operand l, Operand grad) {
return BatchCholeskyGrad.create(scope, l, grad);
}
/**
* Adds an {@link PriorityQueue} operation to the graph
*
* @param componentTypes The type of each component in a value.
* @param shapes The shape of each component in a value. The length of this attr must
* @param options carries optional attributes values
* @return a new instance of PriorityQueue
* @see org.tensorflow.op.core.PriorityQueue
*/
public PriorityQueue priorityQueue(List> componentTypes, List shapes,
PriorityQueue.Options... options) {
return PriorityQueue.create(scope, componentTypes, shapes, options);
}
/**
* Adds an {@link Pad} operation to the graph
*
* @param input
* @param paddings
* @return a new instance of Pad
* @see org.tensorflow.op.core.Pad
*/
public Pad pad(Operand input, Operand paddings) {
return Pad.create(scope, input, paddings);
}
/**
* Adds an {@link Constant} operation to the graph
*
* @param data An array containing the values to put into the new constant. The dimensions of the
* @see org.tensorflow.op.core.Constant
*/
public Constant constant(float[][][][][] data) {
return Constant.create(scope, data);
}
/**
* Adds an {@link FloorDiv} operation to the graph
*
* @param x
* @param y
* @return a new instance of FloorDiv
* @see org.tensorflow.op.core.FloorDiv
*/
public FloorDiv floorDiv(Operand x, Operand y) {
return FloorDiv.create(scope, x, y);
}
/**
* Adds an {@link QuantizedReluX} operation to the graph
*
* @param features
* @param maxValue
* @param minFeatures The float value that the lowest quantized value represents.
* @param maxFeatures The float value that the highest quantized value represents.
* @param outType
* @return a new instance of QuantizedReluX
* @see org.tensorflow.op.core.QuantizedReluX
*/
public QuantizedReluX quantizedReluX(Operand features, Operand maxValue,
Operand minFeatures, Operand maxFeatures, Class outType) {
return QuantizedReluX.create(scope, features, maxValue, minFeatures, maxFeatures, outType);
}
/**
* Adds an {@link UnravelIndex} operation to the graph
*
* @param indices An 0-D or 1-D `int` Tensor whose elements are indices into the
* @param dims An 1-D `int` Tensor. The shape of the array to use for unraveling
* @return a new instance of UnravelIndex
* @see org.tensorflow.op.core.UnravelIndex
*/
public UnravelIndex unravelIndex(Operand indices, Operand dims) {
return UnravelIndex.create(scope, indices, dims);
}
/**
* Adds an {@link ResourceScatterAdd} operation to the graph
*
* @param resource Should be from a `Variable` node.
* @param indices A tensor of indices into the first dimension of `ref`.
* @param updates A tensor of updated values to add to `ref`.
* @return a new instance of ResourceScatterAdd
* @see org.tensorflow.op.core.ResourceScatterAdd
*/
public ResourceScatterAdd resourceScatterAdd(Operand> resource,
Operand indices, Operand updates) {
return ResourceScatterAdd.create(scope, resource, indices, updates);
}
/**
* Adds an {@link RestoreSlice} operation to the graph
*
* @param filePattern Must have a single element. The pattern of the files from
* @param tensorName Must have a single element. The name of the tensor to be
* @param shapeAndSlice Scalar. The shapes and slice specifications to use when
* @param dt The type of the tensor to be restored.
* @param options carries optional attributes values
* @return a new instance of RestoreSlice
* @see org.tensorflow.op.core.RestoreSlice
*/
public RestoreSlice restoreSlice(Operand filePattern, Operand tensorName,
Operand shapeAndSlice, Class dt, RestoreSlice.Options... options) {
return RestoreSlice.create(scope, filePattern, tensorName, shapeAndSlice, dt, options);
}
/**
* Adds an {@link AccumulateNV2} operation to the graph
*
* @param inputs A list of `Tensor` objects, each with same shape and type.
* @param shape Shape of elements of `inputs`.
* @return a new instance of AccumulateNV2
* @see org.tensorflow.op.core.AccumulateNV2
*/
public AccumulateNV2 accumulateNV2(Operand inputs, Shape shape) {
return AccumulateNV2.create(scope, inputs, shape);
}
/**
* Adds an {@link ScatterNdAdd} operation to the graph
*
* @param ref A mutable Tensor. Should be from a Variable node.
* @param indices A Tensor. Must be one of the following types: int32, int64.
* @param updates A Tensor. Must have the same type as ref. A tensor of updated values
* @param options carries optional attributes values
* @return a new instance of ScatterNdAdd
* @see org.tensorflow.op.core.ScatterNdAdd
*/
public ScatterNdAdd scatterNdAdd(Operand ref, Operand indices,
Operand updates, ScatterNdAdd.Options... options) {
return ScatterNdAdd.create(scope, ref, indices, updates, options);
}
/**
* Adds an {@link Constant} operation to the graph
*
* @param data An array containing the values to put into the new constant. The dimensions of the
* @see org.tensorflow.op.core.Constant
*/
public Constant constant(int[][][][][][] data) {
return Constant.create(scope, data);
}
/**
* Adds an {@link AddN} operation to the graph
*
* @param inputs Must all be the same size and shape.
* @return a new instance of AddN
* @see org.tensorflow.op.core.AddN
*/
public AddN addN(Operand inputs) {
return AddN.create(scope, inputs);
}
/**
* Adds an {@link Sum} operation to the graph
*
* @param input The tensor to reduce.
* @param axis The dimensions to reduce. Must be in the range
* @param options carries optional attributes values
* @return a new instance of Sum
* @see org.tensorflow.op.core.Sum
*/
public Sum sum(Operand input, Operand axis,
Sum.Options... options) {
return Sum.create(scope, input, axis, options);
}
/**
* Adds an {@link PlaceholderWithDefault} operation to the graph
*
* @param input The default value to produce when `output` is not fed.
* @param shape The (possibly partial) shape of the tensor.
* @return a new instance of PlaceholderWithDefault
* @see org.tensorflow.op.core.PlaceholderWithDefault
*/
public PlaceholderWithDefault placeholderWithDefault(Operand input, Shape shape) {
return PlaceholderWithDefault.create(scope, input, shape);
}
/**
* Adds an {@link Abort} operation to the graph
*
* @param options carries optional attributes values
* @return a new instance of Abort
* @see org.tensorflow.op.core.Abort
*/
public Abort abort(Abort.Options... options) {
return Abort.create(scope, options);
}
/**
* Adds an {@link AvgPool} operation to the graph
*
* @param value 4-D with shape `[batch, height, width, channels]`.
* @param ksize The size of the sliding window for each dimension of `value`.
* @param strides The stride of the sliding window for each dimension of `value`.
* @param padding The type of padding algorithm to use.
* @param options carries optional attributes values
* @return a new instance of AvgPool
* @see org.tensorflow.op.core.AvgPool
*/
public AvgPool avgPool(Operand value, List ksize,
List strides, String padding, AvgPool.Options... options) {
return AvgPool.create(scope, value, ksize, strides, padding, options);
}
/**
* Adds an {@link BatchIFFT} operation to the graph
*
* @param input
* @return a new instance of BatchIFFT
* @see org.tensorflow.op.core.BatchIFFT
*/
public BatchIFFT batchIFFT(Operand> input) {
return BatchIFFT.create(scope, input);
}
/**
* Adds an {@link NthElement} operation to the graph
*
* @param input 1-D or higher with last dimension at least `n+1`.
* @param n 0-D. Position of sorted vector to select along the last dimension (along
* @param options carries optional attributes values
* @return a new instance of NthElement
* @see org.tensorflow.op.core.NthElement
*/
public NthElement nthElement(Operand input, Operand n,
NthElement.Options... options) {
return NthElement.create(scope, input, n, options);
}
/**
* Adds an {@link BytesProducedStatsDataset} operation to the graph
*
* @param inputDataset
* @param tag
* @param outputTypes
* @param outputShapes
* @return a new instance of BytesProducedStatsDataset
* @see org.tensorflow.op.core.BytesProducedStatsDataset
*/
public BytesProducedStatsDataset bytesProducedStatsDataset(Operand> inputDataset,
Operand tag, List> outputTypes, List outputShapes) {
return BytesProducedStatsDataset.create(scope, inputDataset, tag, outputTypes, outputShapes);
}
/**
* Adds an {@link SegmentMean} operation to the graph
*
* @param data
* @param segmentIds A 1-D tensor whose rank is equal to the rank of `data`'s
* @return a new instance of SegmentMean
* @see org.tensorflow.op.core.SegmentMean
*/
public SegmentMean segmentMean(Operand data, Operand segmentIds) {
return SegmentMean.create(scope, data, segmentIds);
}
/**
* Adds an {@link EncodeJpeg} operation to the graph
*
* @param image 3-D with shape `[height, width, channels]`.
* @param options carries optional attributes values
* @return a new instance of EncodeJpeg
* @see org.tensorflow.op.core.EncodeJpeg
*/
public EncodeJpeg encodeJpeg(Operand image, EncodeJpeg.Options... options) {
return EncodeJpeg.create(scope, image, options);
}
/**
* Adds an {@link MaxPoolV2} operation to the graph
*
* @param input 4-D input to pool over.
* @param ksize The size of the window for each dimension of the input tensor.
* @param strides The stride of the sliding window for each dimension of the
* @param padding The type of padding algorithm to use.
* @param options carries optional attributes values
* @return a new instance of MaxPoolV2
* @see org.tensorflow.op.core.MaxPoolV2
*/
public MaxPoolV2 maxPoolV2(Operand input, Operand ksize,
Operand strides, String padding, MaxPoolV2.Options... options) {
return MaxPoolV2.create(scope, input, ksize, strides, padding, options);
}
/**
* Adds an {@link MatMul} operation to the graph
*
* @param a
* @param b
* @param options carries optional attributes values
* @return a new instance of MatMul
* @see org.tensorflow.op.core.MatMul
*/
public MatMul matMul(Operand a, Operand b, MatMul.Options... options) {
return MatMul.create(scope, a, b, options);
}
/**
* Adds an {@link Acos} operation to the graph
*
* @param x
* @return a new instance of Acos
* @see org.tensorflow.op.core.Acos
*/
public Acos acos(Operand x) {
return Acos.create(scope, x);
}
/**
* Adds an {@link TensorListScatter} operation to the graph
*
* @param tensor
* @param indices
* @param elementShape
* @return a new instance of TensorListScatter
* @see org.tensorflow.op.core.TensorListScatter
*/
public TensorListScatter tensorListScatter(Operand tensor,
Operand indices, Operand elementShape) {
return TensorListScatter.create(scope, tensor, indices, elementShape);
}
/**
* Adds an {@link BatchFFT2D} operation to the graph
*
* @param input
* @return a new instance of BatchFFT2D
* @see org.tensorflow.op.core.BatchFFT2D
*/
public BatchFFT2D batchFFT2D(Operand> input) {
return BatchFFT2D.create(scope, input);
}
/**
* Adds an {@link Requantize} operation to the graph
*
* @param input
* @param inputMin The float value that the minimum quantized input value represents.
* @param inputMax The float value that the maximum quantized input value represents.
* @param requestedOutputMin The float value that the minimum quantized output value represents.
* @param requestedOutputMax The float value that the maximum quantized output value represents.
* @param outType The type of the output. Should be a lower bit depth than Tinput.
* @return a new instance of Requantize
* @see org.tensorflow.op.core.Requantize
*/
public Requantize requantize(Operand input, Operand inputMin,
Operand inputMax, Operand requestedOutputMin, Operand requestedOutputMax,
Class outType) {
return Requantize.create(scope, input, inputMin, inputMax, requestedOutputMin, requestedOutputMax, outType);
}
/**
* Adds an {@link All} operation to the graph
*
* @param input The tensor to reduce.
* @param axis The dimensions to reduce. Must be in the range
* @param options carries optional attributes values
* @return a new instance of All
* @see org.tensorflow.op.core.All
*/
public All all(Operand input, Operand axis,
All.Options... options) {
return All.create(scope, input, axis, options);
}
/**
* Adds an {@link StridedSliceAssign} operation to the graph
*
* @param ref
* @param begin
* @param end
* @param strides
* @param value
* @param options carries optional attributes values
* @return a new instance of StridedSliceAssign
* @see org.tensorflow.op.core.StridedSliceAssign
*/
public StridedSliceAssign stridedSliceAssign(Operand ref,
Operand begin, Operand end, Operand strides, Operand value,
StridedSliceAssign.Options... options) {
return StridedSliceAssign.create(scope, ref, begin, end, strides, value, options);
}
/**
* Adds an {@link OrderedMapUnstage} operation to the graph
*
* @param key
* @param indices
* @param dtypes
* @param options carries optional attributes values
* @return a new instance of OrderedMapUnstage
* @see org.tensorflow.op.core.OrderedMapUnstage
*/
public OrderedMapUnstage orderedMapUnstage(Operand key, Operand indices,
List> dtypes, OrderedMapUnstage.Options... options) {
return OrderedMapUnstage.create(scope, key, indices, dtypes, options);
}
/**
* Adds an {@link SparseReshape} operation to the graph
*
* @param inputIndices 2-D. `N x R_in` matrix with the indices of non-empty values in a
* @param inputShape 1-D. `R_in` vector with the input SparseTensor's dense shape.
* @param newShape 1-D. `R_out` vector with the requested new dense shape.
* @return a new instance of SparseReshape
* @see org.tensorflow.op.core.SparseReshape
*/
public SparseReshape sparseReshape(Operand inputIndices, Operand inputShape,
Operand newShape) {
return SparseReshape.create(scope, inputIndices, inputShape, newShape);
}
/**
* Adds an {@link DataFormatDimMap} operation to the graph
*
* @param x A Tensor with each element as a dimension index in source data format.
* @param options carries optional attributes values
* @return a new instance of DataFormatDimMap
* @see org.tensorflow.op.core.DataFormatDimMap
*/
public DataFormatDimMap dataFormatDimMap(Operand x,
DataFormatDimMap.Options... options) {
return DataFormatDimMap.create(scope, x, options);
}
/**
* Adds an {@link AssignAddVariableOp} operation to the graph
*
* @param resource handle to the resource in which to store the variable.
* @param value the value by which the variable will be incremented.
* @return a new instance of AssignAddVariableOp
* @see org.tensorflow.op.core.AssignAddVariableOp
*/
public AssignAddVariableOp assignAddVariableOp(Operand> resource, Operand value) {
return AssignAddVariableOp.create(scope, resource, value);
}
/**
* Adds an {@link ScatterNdSub} operation to the graph
*
* @param ref A mutable Tensor. Should be from a Variable node.
* @param indices A Tensor. Must be one of the following types: int32, int64.
* @param updates A Tensor. Must have the same type as ref. A tensor of updated values
* @param options carries optional attributes values
* @return a new instance of ScatterNdSub
* @see org.tensorflow.op.core.ScatterNdSub
*/
public ScatterNdSub scatterNdSub(Operand ref, Operand indices,
Operand updates, ScatterNdSub.Options... options) {
return ScatterNdSub.create(scope, ref, indices, updates, options);
}
/**
* Adds an {@link StringToHashBucketStrong} operation to the graph
*
* @param input The strings to assign a hash bucket.
* @param numBuckets The number of buckets.
* @param key The key for the keyed hash function passed as a list of two uint64
* @return a new instance of StringToHashBucketStrong
* @see org.tensorflow.op.core.StringToHashBucketStrong
*/
public StringToHashBucketStrong stringToHashBucketStrong(Operand input, Long numBuckets,
List key) {
return StringToHashBucketStrong.create(scope, input, numBuckets, key);
}
/**
* Adds an {@link Polygamma} operation to the graph
*
* @param a
* @param x
* @return a new instance of Polygamma
* @see org.tensorflow.op.core.Polygamma
*/
public Polygamma polygamma(Operand a, Operand x) {
return Polygamma.create(scope, a, x);
}
/**
* Adds an {@link BigQueryReader} operation to the graph
*
* @param projectId GCP project ID.
* @param datasetId BigQuery Dataset ID.
* @param tableId Table to read.
* @param columns List of columns to read. Leave empty to read all columns.
* @param timestampMillis Table snapshot timestamp in millis since epoch. Relative
* @param options carries optional attributes values
* @return a new instance of BigQueryReader
* @see org.tensorflow.op.core.BigQueryReader
*/
public BigQueryReader bigQueryReader(String projectId, String datasetId, String tableId,
List columns, Long timestampMillis, BigQueryReader.Options... options) {
return BigQueryReader.create(scope, projectId, datasetId, tableId, columns, timestampMillis, options);
}
/**
* Adds an {@link AssignVariableOp} operation to the graph
*
* @param resource handle to the resource in which to store the variable.
* @param value the value to set the new tensor to use.
* @return a new instance of AssignVariableOp
* @see org.tensorflow.op.core.AssignVariableOp
*/
public AssignVariableOp assignVariableOp(Operand> resource, Operand value) {
return AssignVariableOp.create(scope, resource, value);
}
/**
* Adds an {@link SparseApplyFtrl} operation to the graph
*
* @param var Should be from a Variable().
* @param accum Should be from a Variable().
* @param linear Should be from a Variable().
* @param grad The gradient.
* @param indices A vector of indices into the first dimension of var and accum.
* @param lr Scaling factor. Must be a scalar.
* @param l1 L1 regularization. Must be a scalar.
* @param l2 L2 regularization. Must be a scalar.
* @param lrPower Scaling factor. Must be a scalar.
* @param options carries optional attributes values
* @return a new instance of SparseApplyFtrl
* @see org.tensorflow.op.core.SparseApplyFtrl
*/
public SparseApplyFtrl sparseApplyFtrl(Operand var, Operand accum,
Operand linear, Operand grad, Operand indices, Operand lr, Operand l1,
Operand l2, Operand lrPower, SparseApplyFtrl.Options... options) {
return SparseApplyFtrl.create(scope, var, accum, linear, grad, indices, lr, l1, l2, lrPower, options);
}
/**
* Adds an {@link SparseSegmentSqrtN} operation to the graph
*
* @param data
* @param indices A 1-D tensor. Has same rank as `segment_ids`.
* @param segmentIds A 1-D tensor. Values should be sorted and can be repeated.
* @return a new instance of SparseSegmentSqrtN
* @see org.tensorflow.op.core.SparseSegmentSqrtN
*/
public SparseSegmentSqrtN sparseSegmentSqrtN(Operand data,
Operand indices, Operand segmentIds) {
return SparseSegmentSqrtN.create(scope, data, indices, segmentIds);
}
/**
* Adds an {@link TextLineDataset} operation to the graph
*
* @param filenames A scalar or a vector containing the name(s) of the file(s) to be
* @param compressionType A scalar containing either (i) the empty string (no
* @param bufferSize A scalar containing the number of bytes to buffer.
* @return a new instance of TextLineDataset
* @see org.tensorflow.op.core.TextLineDataset
*/
public TextLineDataset textLineDataset(Operand filenames, Operand compressionType,
Operand bufferSize) {
return TextLineDataset.create(scope, filenames, compressionType, bufferSize);
}
/**
* Adds an {@link PreventGradient} operation to the graph
*
* @param input any tensor.
* @param options carries optional attributes values
* @return a new instance of PreventGradient
* @see org.tensorflow.op.core.PreventGradient
*/
public PreventGradient preventGradient(Operand input,
PreventGradient.Options... options) {
return PreventGradient.create(scope, input, options);
}
/**
* Adds an {@link TFRecordDataset} operation to the graph
*
* @param filenames A scalar or vector containing the name(s) of the file(s) to be
* @param compressionType A scalar containing either (i) the empty string (no
* @param bufferSize A scalar representing the number of bytes to buffer. A value of
* @return a new instance of TFRecordDataset
* @see org.tensorflow.op.core.TFRecordDataset
*/
public TFRecordDataset tFRecordDataset(Operand filenames, Operand compressionType,
Operand bufferSize) {
return TFRecordDataset.create(scope, filenames, compressionType, bufferSize);
}
/**
* Adds an {@link FakeQuantWithMinMaxVars} operation to the graph
*
* @param inputs
* @param min
* @param max
* @param options carries optional attributes values
* @return a new instance of FakeQuantWithMinMaxVars
* @see org.tensorflow.op.core.FakeQuantWithMinMaxVars
*/
public FakeQuantWithMinMaxVars fakeQuantWithMinMaxVars(Operand inputs, Operand min,
Operand max, FakeQuantWithMinMaxVars.Options... options) {
return FakeQuantWithMinMaxVars.create(scope, inputs, min, max, options);
}
/**
* Adds an {@link TensorListPushBackBatch} operation to the graph
*
* @param inputHandles
* @param tensor
* @return a new instance of TensorListPushBackBatch
* @see org.tensorflow.op.core.TensorListPushBackBatch
*/
public TensorListPushBackBatch tensorListPushBackBatch(Operand> inputHandles,
Operand tensor) {
return TensorListPushBackBatch.create(scope, inputHandles, tensor);
}
/**
* Adds an {@link BesselI0e} operation to the graph
*
* @param x
* @return a new instance of BesselI0e
* @see org.tensorflow.op.core.BesselI0e
*/
public BesselI0e besselI0e(Operand x) {
return BesselI0e.create(scope, x);
}
/**
* Adds an {@link Rpc} operation to the graph
*
* @param address `0-D` or `1-D`. The address (i.e. host_name:port) of the RPC server.
* @param method `0-D` or `1-D`. The method address on the RPC server.
* @param request `0-D` or `1-D`. Serialized proto strings: the rpc request argument.
* @param options carries optional attributes values
* @return a new instance of Rpc
* @see org.tensorflow.op.core.Rpc
*/
public Rpc rpc(Operand address, Operand method, Operand request,
Rpc.Options... options) {
return Rpc.create(scope, address, method, request, options);
}
/**
* Adds an {@link ResizeArea} operation to the graph
*
* @param images 4-D with shape `[batch, height, width, channels]`.
* @param size = A 1-D int32 Tensor of 2 elements: `new_height, new_width`. The
* @param options carries optional attributes values
* @return a new instance of ResizeArea
* @see org.tensorflow.op.core.ResizeArea
*/
public ResizeArea resizeArea(Operand images, Operand size,
ResizeArea.Options... options) {
return ResizeArea.create(scope, images, size, options);
}
/**
* Adds an {@link Constant} operation to the graph
*
* @param data An array containing the values to put into the new constant. The dimensions of the
* @see org.tensorflow.op.core.Constant
*/
public Constant constant(int[][] data) {
return Constant.create(scope, data);
}
/**
* Adds an {@link Asin} operation to the graph
*
* @param x
* @return a new instance of Asin
* @see org.tensorflow.op.core.Asin
*/
public Asin asin(Operand x) {
return Asin.create(scope, x);
}
/**
* Adds an {@link SparseSoftmax} operation to the graph
*
* @param spIndices 2-D. `NNZ x R` matrix with the indices of non-empty values in a
* @param spValues 1-D. `NNZ` non-empty values corresponding to `sp_indices`.
* @param spShape 1-D. Shape of the input SparseTensor.
* @return a new instance of SparseSoftmax
* @see org.tensorflow.op.core.SparseSoftmax
*/
public SparseSoftmax sparseSoftmax(Operand spIndices,
Operand spValues, Operand spShape) {
return SparseSoftmax.create(scope, spIndices, spValues, spShape);
}
/**
* Adds an {@link Constant} operation to the graph
*
* @param data The value to put into the new constant.
* @return a boolean constant
* @see org.tensorflow.op.core.Constant
*/
public Constant constant(boolean data) {
return Constant.create(scope, data);
}
/**
* Adds an {@link VariableShape} operation to the graph
*
* @param input
* @return a new instance of VariableShape
* @see org.tensorflow.op.core.VariableShape
*/
public VariableShape variableShape(Operand> input) {
return VariableShape.create(scope, input);
}
/**
* Adds an {@link TensorArrayGradWithShape} operation to the graph
*
* @param handle The handle to the forward TensorArray.
* @param flowIn A float scalar that enforces proper chaining of operations.
* @param shapeToPrepend An int32 vector representing a shape. Elements in the gradient accumulator will
* @param source The gradient source string, used to decide which gradient TensorArray
* @return a new instance of TensorArrayGradWithShape
* @see org.tensorflow.op.core.TensorArrayGradWithShape
*/
public TensorArrayGradWithShape tensorArrayGradWithShape(Operand> handle, Operand flowIn,
Operand shapeToPrepend, String source) {
return TensorArrayGradWithShape.create(scope, handle, flowIn, shapeToPrepend, source);
}
/**
* Adds an {@link ApplyAdagradDA} operation to the graph
*
* @param var Should be from a Variable().
* @param gradientAccumulator Should be from a Variable().
* @param gradientSquaredAccumulator Should be from a Variable().
* @param grad The gradient.
* @param lr Scaling factor. Must be a scalar.
* @param l1 L1 regularization. Must be a scalar.
* @param l2 L2 regularization. Must be a scalar.
* @param globalStep Training step number. Must be a scalar.
* @param options carries optional attributes values
* @return a new instance of ApplyAdagradDA
* @see org.tensorflow.op.core.ApplyAdagradDA
*/
public ApplyAdagradDA applyAdagradDA(Operand var, Operand gradientAccumulator,
Operand gradientSquaredAccumulator, Operand grad, Operand lr, Operand l1,
Operand l2, Operand globalStep, ApplyAdagradDA.Options... options) {
return ApplyAdagradDA.create(scope, var, gradientAccumulator, gradientSquaredAccumulator, grad, lr, l1, l2, globalStep, options);
}
/**
* Adds an {@link Angle} operation to the graph
*
* @param input
* @param Tout
* @return a new instance of Angle
* @see org.tensorflow.op.core.Angle
*/
public Angle angle(Operand