isotonicRegression(Operand extends TNumber
* Solves a batch of isotonic regression problems.
*
* @param input A (batch_size, dim)-tensor holding a batch of inputs.
- * @param outputDtype Dtype of output.
+ * @param outputDtype Dtype of the output tensor.
+ * Note on supported input-output type combinations:
+ *
+ * - For floating-point types, the output has the same dtype as the input.
+ * - For 8-bit and 16-bit integer inputs, the output is a 32-bit float.
+ * - For 32-bit and 64-bit integer inputs, the output is a 64-bit float.
+ *
+ * Using unsupported dtype pairs (for example, input=float64 with output=float32)
+ * will result in a "Could not find device for node" error.
* @param data type for {@code IsotonicRegression} output and operands
* @return a new instance of IsotonicRegression
*/
@@ -2127,7 +2135,7 @@ public MaxPoolGradWithArgmax maxPoolGradWithArgmax(Operan
* @return a new instance of MaxPoolWithArgmax, with default output types
*/
public MaxPoolWithArgmax maxPoolWithArgmax(Operand input,
- List ksize, List strides, String padding, MaxPoolWithArgmax.Options[] options) {
+ List ksize, List strides, String padding, MaxPoolWithArgmax.Options... options) {
return MaxPoolWithArgmax.create(scope, input, ksize, strides, padding, options);
}
@@ -3126,7 +3134,7 @@ public SparseSoftmaxCrossEntropyWithLogits sparseSoftmaxC
* @return a new instance of TopK, with default output types
*/
public TopK topK(Operand input, Operand extends TNumber> k,
- TopK.Options[] options) {
+ TopK.Options... options) {
return TopK.create(scope, input, k, options);
}
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java
index 8483a4efb61..40c5d8f1ace 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java
@@ -7743,12 +7743,12 @@ public TensorListGather tensorListGather(
* @param index The index value
* @param elementShape The elementShape value
* @param elementDtype The value of the elementDtype attribute
- * @param data type for {@code TensorListGetItem} output and operands
+ * @param data type for {@code TensorListGetItem} output and operands
* @return a new instance of TensorListGetItem
*/
- public TensorListGetItem tensorListGetItem(
- Operand extends TType> inputHandle, Operand index, Operand elementShape,
- Class elementDtype) {
+ public TensorListGetItem tensorListGetItem(
+ Operand extends TType> inputHandle, Operand index,
+ Operand extends TNumber> elementShape, Class elementDtype) {
return TensorListGetItem.create(scope, inputHandle, index, elementShape, elementDtype);
}
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/QuantizationOps.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/QuantizationOps.java
index 8bd174ba427..8485f694be2 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/QuantizationOps.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/QuantizationOps.java
@@ -114,7 +114,7 @@ public final class QuantizationOps {
* @return a new instance of Dequantize, with default output types
*/
public Dequantize dequantize(Operand extends TNumber> input,
- Operand minRange, Operand maxRange, Dequantize.Options[] options) {
+ Operand minRange, Operand maxRange, Dequantize.Options... options) {
return Dequantize.create(scope, input, minRange, maxRange, options);
}
@@ -562,8 +562,10 @@ public QuantizeAndDequantizeV4 quantizeAndDequantizeV4(Op
*
* @param gradients The gradients value
* @param input The input value
- * @param inputMin The inputMin value
- * @param inputMax The inputMax value
+ * @param inputMin If {@code axis} is specified, the shape of the minimum input tensor
+ * must be rank 1.
+ * @param inputMax If {@code axis} is specified, the shape of the maximum input tensor
+ * must be rank 1.
* @param options carries optional attribute values
* @param data type for {@code QuantizeAndDequantizeV4Grad} output and operands
* @return a new instance of QuantizeAndDequantizeV4Grad
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/RandomOps.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/RandomOps.java
index c5ff9a489a0..6000af11c9b 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/RandomOps.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/RandomOps.java
@@ -210,7 +210,7 @@ public LogUniformCandidateSampler logUniformCandidateSampler(Operand tru
* @return a new instance of Multinomial, with default output types
*/
public Multinomial multinomial(Operand extends TNumber> logits,
- Operand numSamples, Multinomial.Options[] options) {
+ Operand numSamples, Multinomial.Options... options) {
return Multinomial.create(scope, logits, numSamples, options);
}
@@ -327,7 +327,7 @@ public RandomGammaGrad randomGammaGrad(Operand alpha,
* @return a new instance of RandomPoisson, with default output types
*/
public RandomPoisson randomPoisson(Operand extends TNumber> shape,
- Operand extends TNumber> rate, RandomPoisson.Options[] options) {
+ Operand extends TNumber> rate, RandomPoisson.Options... options) {
return RandomPoisson.create(scope, shape, rate, options);
}
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/SignalOps.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/SignalOps.java
index ac5703c264a..8537e79ada7 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/SignalOps.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/SignalOps.java
@@ -444,9 +444,10 @@ public IrfftNd irfftNd(Operand extends TType> input,
* corresponding dimension of {@code input}, the dimension is cropped. If it is larger,
* the dimension is padded with zeros.
*
- * @param input A float32 tensor.
+ * @param input A float32 or float64 tensor.
* @param fftLength An int32 tensor of shape [1]. The FFT length.
- * @param Tcomplex The value of the Tcomplex attribute
+ * @param Tcomplex Should be {@code tf.complex64} when the type of {@code input} is {@code float32}.
+ * Should be {@code tf.complex128} when the type of {@code input} is {@code float64}.
* @param data type for {@code RFFT} output and operands
* @return a new instance of Rfft
*/
@@ -467,9 +468,10 @@ public Rfft rfft(Operand extends TNumber> input, Operand<
* corresponding dimension of {@code input}, the dimension is cropped. If it is larger,
* the dimension is padded with zeros.
*
- * @param input A float32 tensor.
+ * @param input A float32 or float64 tensor.
* @param fftLength An int32 tensor of shape [2]. The FFT length for each dimension.
- * @param Tcomplex The value of the Tcomplex attribute
+ * @param Tcomplex Should be {@code tf.complex64} when the type of {@code input} is {@code float32}.
+ * Should be {@code tf.complex128} when the type of {@code input} is {@code float64}.
* @param data type for {@code RFFT2D} output and operands
* @return a new instance of Rfft2d
*/
@@ -490,9 +492,10 @@ public Rfft2d rfft2d(Operand extends TNumber> input,
* corresponding dimension of {@code input}, the dimension is cropped. If it is larger,
* the dimension is padded with zeros.
*
- * @param input A float32 tensor.
+ * @param input A float32 or float64 tensor.
* @param fftLength An int32 tensor of shape [3]. The FFT length for each dimension.
- * @param Tcomplex The value of the Tcomplex attribute
+ * @param Tcomplex Should be {@code tf.complex64} when the type of {@code input} is {@code float32}.
+ * Should be {@code tf.complex128} when the type of {@code input} is {@code float64}.
* @param data type for {@code RFFT3D} output and operands
* @return a new instance of Rfft3d
*/
@@ -513,10 +516,11 @@ public Rfft3d rfft3d(Operand extends TNumber> input,
* Axes mean the dimensions to perform the transform on. Default is to perform on
* all axes.
*
- * @param input A complex tensor.
+ * @param input A float32 or float64 tensor.
* @param fftLength An int32 tensor. The FFT length for each dimension.
* @param axes An int32 tensor with a same shape as fft_length. Axes to perform the transform.
- * @param Tcomplex The value of the Tcomplex attribute
+ * @param Tcomplex Should be {@code tf.complex64} when the type of {@code input} is {@code float32}.
+ * Should be {@code tf.complex128} when the type of {@code input} is {@code float64}.
* @param data type for {@code RFFTND} output and operands
* @return a new instance of RfftNd
*/
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/StringsOps.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/StringsOps.java
index 56a82c2dbf6..2b49dd474a3 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/StringsOps.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/StringsOps.java
@@ -564,7 +564,7 @@ public ToNumber toNumber(Operand stringTensor, C
* @return a new instance of UnicodeDecode, with default output types
*/
public UnicodeDecode unicodeDecode(Operand input, String inputEncoding,
- UnicodeDecode.Options[] options) {
+ UnicodeDecode.Options... options) {
return UnicodeDecode.create(scope, input, inputEncoding, options);
}
@@ -626,7 +626,7 @@ public UnicodeDecode unicodeDecode(Operand input
* @return a new instance of UnicodeDecodeWithOffsets, with default output types
*/
public UnicodeDecodeWithOffsets unicodeDecodeWithOffsets(Operand input,
- String inputEncoding, UnicodeDecodeWithOffsets.Options[] options) {
+ String inputEncoding, UnicodeDecodeWithOffsets.Options... options) {
return UnicodeDecodeWithOffsets.create(scope, input, inputEncoding, options);
}
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/XlaOps.java b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/XlaOps.java
index 22a2ef5ae85..38961e1570a 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/XlaOps.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/XlaOps.java
@@ -28,12 +28,18 @@
import org.tensorflow.op.xla.XlaHostCompute;
import org.tensorflow.op.xla.XlaRecvFromHost;
import org.tensorflow.op.xla.XlaSendToHost;
+import org.tensorflow.op.xla.XlaSparseActivationsUnstack;
import org.tensorflow.op.xla.XlaSparseCoreAdagrad;
import org.tensorflow.op.xla.XlaSparseCoreAdagradMomentum;
import org.tensorflow.op.xla.XlaSparseCoreAdam;
import org.tensorflow.op.xla.XlaSparseCoreFtrl;
import org.tensorflow.op.xla.XlaSparseCoreSgd;
import org.tensorflow.op.xla.XlaSparseDenseMatmul;
+import org.tensorflow.op.xla.XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdagradAndCsrInput;
+import org.tensorflow.op.xla.XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdagradMomentumAndCsrInput;
+import org.tensorflow.op.xla.XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdamAndCsrInput;
+import org.tensorflow.op.xla.XlaSparseDenseMatmulCustomCombinerOnTcGradWithCsrInput;
+import org.tensorflow.op.xla.XlaSparseDenseMatmulCustomCombinerOnTcGradWithFtrlAndCsrInput;
import org.tensorflow.op.xla.XlaSparseDenseMatmulGradWithAdagradAndCsrInput;
import org.tensorflow.op.xla.XlaSparseDenseMatmulGradWithAdagradMomentumAndCsrInput;
import org.tensorflow.op.xla.XlaSparseDenseMatmulGradWithAdamAndCsrInput;
@@ -42,6 +48,7 @@
import org.tensorflow.op.xla.XlaSparseDenseMatmulWithCsrInput;
import org.tensorflow.types.TFloat32;
import org.tensorflow.types.TInt32;
+import org.tensorflow.types.family.TNumber;
import org.tensorflow.types.family.TType;
/**
@@ -292,6 +299,24 @@ public XlaSendToHost xlaSendToHost(Operand extends TType> input, String key) {
return XlaSendToHost.create(scope, input, key);
}
+ /**
+ * The XlaSparseActivationsUnstack operation
+ *
+ * @param stackedActivations The stackedActivations value
+ * @param numTables The value of the numTables attribute
+ * @param sampleCounts The value of the sampleCounts attribute
+ * @param features The value of the features attribute
+ * @param interleaved The value of the interleaved attribute
+ * @param dtype The value of the dtype attribute
+ * @param data type for {@code XlaSparseActivationsUnstack} output and operands
+ * @return a new instance of XlaSparseActivationsUnstack
+ */
+ public XlaSparseActivationsUnstack xlaSparseActivationsUnstack(
+ Operand extends TType> stackedActivations, Long numTables, List sampleCounts,
+ List features, Boolean interleaved, Class dtype) {
+ return XlaSparseActivationsUnstack.create(scope, stackedActivations, numTables, sampleCounts, features, interleaved, dtype);
+ }
+
/**
* The XlaSparseCoreAdagrad operation
*
@@ -418,6 +443,217 @@ public XlaSparseDenseMatmul xlaSparseDenseMatmul(Operand rowIds,
return XlaSparseDenseMatmul.create(scope, rowIds, colIds, values, offsets, embeddingTable, maxIdsPerPartition, maxUniqueIdsPerPartition, inputSize);
}
+ /**
+ * The XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdagradAndCsrInput operation
+ *
+ * @param rowPointers The rowPointers value
+ * @param sortedSampleIds The sortedSampleIds value
+ * @param sortedTokenIds The sortedTokenIds value
+ * @param sortedPosIds The sortedPosIds value
+ * @param sortedGains The sortedGains value
+ * @param weights The weights value
+ * @param preservedValencies The preservedValencies value
+ * @param preservedVectors The preservedVectors value
+ * @param preservedWeights The preservedWeights value
+ * @param activationGradients The activationGradients value
+ * @param learningRate The learningRate value
+ * @param combinerWeightsLearningRate The combinerWeightsLearningRate value
+ * @param embeddingTable The embeddingTable value
+ * @param accumulator The accumulator value
+ * @param maxValency The value of the maxValency attribute
+ * @param numWeights The value of the numWeights attribute
+ * @param combinerTableVjpComputation The value of the combinerTableVjpComputation attribute
+ * @param combinerWeightsVjpComputation The value of the combinerWeightsVjpComputation attribute
+ * @param tableName The value of the tableName attribute
+ * @param options carries optional attribute values
+ * @return a new instance of XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdagradAndCsrInput
+ */
+ public XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdagradAndCsrInput xlaSparseDenseMatmulCustomCombinerOnTcGradWithAdagradAndCsrInput(
+ Operand rowPointers, Operand sortedSampleIds, Operand sortedTokenIds,
+ Operand sortedPosIds, Operand sortedGains, Operand weights,
+ Operand preservedValencies, Operand preservedVectors,
+ Operand preservedWeights, Operand activationGradients,
+ Operand learningRate, Operand combinerWeightsLearningRate,
+ Operand embeddingTable, Operand accumulator, Long maxValency,
+ Long numWeights, ConcreteFunction combinerTableVjpComputation,
+ ConcreteFunction combinerWeightsVjpComputation, String tableName,
+ XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdagradAndCsrInput.Options... options) {
+ return XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdagradAndCsrInput.create(scope, rowPointers, sortedSampleIds, sortedTokenIds, sortedPosIds, sortedGains, weights, preservedValencies, preservedVectors, preservedWeights, activationGradients, learningRate, combinerWeightsLearningRate, embeddingTable, accumulator, maxValency, numWeights, combinerTableVjpComputation, combinerWeightsVjpComputation, tableName, options);
+ }
+
+ /**
+ * The XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdagradMomentumAndCsrInput operation
+ *
+ * @param rowPointers The rowPointers value
+ * @param sortedSampleIds The sortedSampleIds value
+ * @param sortedTokenIds The sortedTokenIds value
+ * @param sortedPosIds The sortedPosIds value
+ * @param sortedGains The sortedGains value
+ * @param weights The weights value
+ * @param preservedValencies The preservedValencies value
+ * @param preservedVectors The preservedVectors value
+ * @param preservedWeights The preservedWeights value
+ * @param activationGradients The activationGradients value
+ * @param learningRate The learningRate value
+ * @param combinerWeightsLearningRate The combinerWeightsLearningRate value
+ * @param embeddingTable The embeddingTable value
+ * @param accumulator The accumulator value
+ * @param momenta The momenta value
+ * @param useNesterov The value of the useNesterov attribute
+ * @param exponent The value of the exponent attribute
+ * @param beta1 The value of the beta1 attribute
+ * @param beta2 The value of the beta2 attribute
+ * @param epsilon The value of the epsilon attribute
+ * @param maxValency The value of the maxValency attribute
+ * @param numWeights The value of the numWeights attribute
+ * @param combinerTableVjpComputation The value of the combinerTableVjpComputation attribute
+ * @param combinerWeightsVjpComputation The value of the combinerWeightsVjpComputation attribute
+ * @param tableName The value of the tableName attribute
+ * @param options carries optional attribute values
+ * @return a new instance of XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdagradMomentumAndCsrInput
+ */
+ public XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdagradMomentumAndCsrInput xlaSparseDenseMatmulCustomCombinerOnTcGradWithAdagradMomentumAndCsrInput(
+ Operand rowPointers, Operand sortedSampleIds, Operand sortedTokenIds,
+ Operand sortedPosIds, Operand sortedGains, Operand weights,
+ Operand preservedValencies, Operand preservedVectors,
+ Operand preservedWeights, Operand activationGradients,
+ Operand learningRate, Operand combinerWeightsLearningRate,
+ Operand embeddingTable, Operand accumulator, Operand momenta,
+ Boolean useNesterov, Float exponent, Float beta1, Float beta2, Float epsilon, Long maxValency,
+ Long numWeights, ConcreteFunction combinerTableVjpComputation,
+ ConcreteFunction combinerWeightsVjpComputation, String tableName,
+ XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdagradMomentumAndCsrInput.Options... options) {
+ return XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdagradMomentumAndCsrInput.create(scope, rowPointers, sortedSampleIds, sortedTokenIds, sortedPosIds, sortedGains, weights, preservedValencies, preservedVectors, preservedWeights, activationGradients, learningRate, combinerWeightsLearningRate, embeddingTable, accumulator, momenta, useNesterov, exponent, beta1, beta2, epsilon, maxValency, numWeights, combinerTableVjpComputation, combinerWeightsVjpComputation, tableName, options);
+ }
+
+ /**
+ * The XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdamAndCsrInput operation
+ *
+ * @param rowPointers The rowPointers value
+ * @param sortedSampleIds The sortedSampleIds value
+ * @param sortedTokenIds The sortedTokenIds value
+ * @param sortedPosIds The sortedPosIds value
+ * @param sortedGains The sortedGains value
+ * @param weights The weights value
+ * @param preservedValencies The preservedValencies value
+ * @param preservedVectors The preservedVectors value
+ * @param preservedWeights The preservedWeights value
+ * @param activationGradients The activationGradients value
+ * @param learningRate The learningRate value
+ * @param combinerWeightsLearningRate The combinerWeightsLearningRate value
+ * @param embeddingTable The embeddingTable value
+ * @param momenta The momenta value
+ * @param velocity The velocity value
+ * @param useSumInsideSqrt The value of the useSumInsideSqrt attribute
+ * @param beta1 The value of the beta1 attribute
+ * @param beta2 The value of the beta2 attribute
+ * @param epsilon The value of the epsilon attribute
+ * @param maxValency The value of the maxValency attribute
+ * @param numWeights The value of the numWeights attribute
+ * @param combinerTableVjpComputation The value of the combinerTableVjpComputation attribute
+ * @param combinerWeightsVjpComputation The value of the combinerWeightsVjpComputation attribute
+ * @param tableName The value of the tableName attribute
+ * @param options carries optional attribute values
+ * @return a new instance of XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdamAndCsrInput
+ */
+ public XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdamAndCsrInput xlaSparseDenseMatmulCustomCombinerOnTcGradWithAdamAndCsrInput(
+ Operand rowPointers, Operand sortedSampleIds, Operand sortedTokenIds,
+ Operand sortedPosIds, Operand sortedGains, Operand weights,
+ Operand preservedValencies, Operand preservedVectors,
+ Operand preservedWeights, Operand activationGradients,
+ Operand learningRate, Operand combinerWeightsLearningRate,
+ Operand embeddingTable, Operand momenta, Operand velocity,
+ Boolean useSumInsideSqrt, Float beta1, Float beta2, Float epsilon, Long maxValency,
+ Long numWeights, ConcreteFunction combinerTableVjpComputation,
+ ConcreteFunction combinerWeightsVjpComputation, String tableName,
+ XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdamAndCsrInput.Options... options) {
+ return XlaSparseDenseMatmulCustomCombinerOnTcGradWithAdamAndCsrInput.create(scope, rowPointers, sortedSampleIds, sortedTokenIds, sortedPosIds, sortedGains, weights, preservedValencies, preservedVectors, preservedWeights, activationGradients, learningRate, combinerWeightsLearningRate, embeddingTable, momenta, velocity, useSumInsideSqrt, beta1, beta2, epsilon, maxValency, numWeights, combinerTableVjpComputation, combinerWeightsVjpComputation, tableName, options);
+ }
+
+ /**
+ * The XlaSparseDenseMatmulCustomCombinerOnTcGradWithCsrInput operation
+ *
+ * @param rowPointers The rowPointers value
+ * @param sortedSampleIds The sortedSampleIds value
+ * @param sortedTokenIds The sortedTokenIds value
+ * @param sortedPosIds The sortedPosIds value
+ * @param sortedGains The sortedGains value
+ * @param weights The weights value
+ * @param preservedValencies The preservedValencies value
+ * @param preservedVectors The preservedVectors value
+ * @param preservedWeights The preservedWeights value
+ * @param activationGradients The activationGradients value
+ * @param tables The tables value
+ * @param hyperparameters The hyperparameters value
+ * @param combinerWeightsLearningRate The combinerWeightsLearningRate value
+ * @param maxValency The value of the maxValency attribute
+ * @param numWeights The value of the numWeights attribute
+ * @param combinerTableVjpComputation The value of the combinerTableVjpComputation attribute
+ * @param combinerWeightsVjpComputation The value of the combinerWeightsVjpComputation attribute
+ * @param optimizerCustomComputation The value of the optimizerCustomComputation attribute
+ * @param tableName The value of the tableName attribute
+ * @param options carries optional attribute values
+ * @return a new instance of XlaSparseDenseMatmulCustomCombinerOnTcGradWithCsrInput
+ */
+ public XlaSparseDenseMatmulCustomCombinerOnTcGradWithCsrInput xlaSparseDenseMatmulCustomCombinerOnTcGradWithCsrInput(
+ Operand rowPointers, Operand sortedSampleIds, Operand sortedTokenIds,
+ Operand sortedPosIds, Operand sortedGains, Operand weights,
+ Operand preservedValencies, Operand preservedVectors,
+ Operand preservedWeights, Operand activationGradients,
+ Iterable> tables, Iterable> hyperparameters,
+ Operand combinerWeightsLearningRate, Long maxValency, Long numWeights,
+ ConcreteFunction combinerTableVjpComputation, ConcreteFunction combinerWeightsVjpComputation,
+ ConcreteFunction optimizerCustomComputation, String tableName,
+ XlaSparseDenseMatmulCustomCombinerOnTcGradWithCsrInput.Options... options) {
+ return XlaSparseDenseMatmulCustomCombinerOnTcGradWithCsrInput.create(scope, rowPointers, sortedSampleIds, sortedTokenIds, sortedPosIds, sortedGains, weights, preservedValencies, preservedVectors, preservedWeights, activationGradients, tables, hyperparameters, combinerWeightsLearningRate, maxValency, numWeights, combinerTableVjpComputation, combinerWeightsVjpComputation, optimizerCustomComputation, tableName, options);
+ }
+
+ /**
+ * The XlaSparseDenseMatmulCustomCombinerOnTcGradWithFtrlAndCsrInput operation
+ *
+ * @param rowPointers The rowPointers value
+ * @param sortedSampleIds The sortedSampleIds value
+ * @param sortedTokenIds The sortedTokenIds value
+ * @param sortedPosIds The sortedPosIds value
+ * @param sortedGains The sortedGains value
+ * @param weights The weights value
+ * @param preservedValencies The preservedValencies value
+ * @param preservedVectors The preservedVectors value
+ * @param preservedWeights The preservedWeights value
+ * @param activationGradients The activationGradients value
+ * @param learningRate The learningRate value
+ * @param combinerWeightsLearningRate The combinerWeightsLearningRate value
+ * @param embeddingTable The embeddingTable value
+ * @param accumulator The accumulator value
+ * @param linear The linear value
+ * @param multiplyLinearByLearningRate The value of the multiplyLinearByLearningRate attribute
+ * @param beta The value of the beta attribute
+ * @param learningRatePower The value of the learningRatePower attribute
+ * @param l1RegularizationStrength The value of the l1RegularizationStrength attribute
+ * @param l2RegularizationStrength The value of the l2RegularizationStrength attribute
+ * @param maxValency The value of the maxValency attribute
+ * @param numWeights The value of the numWeights attribute
+ * @param combinerTableVjpComputation The value of the combinerTableVjpComputation attribute
+ * @param combinerWeightsVjpComputation The value of the combinerWeightsVjpComputation attribute
+ * @param tableName The value of the tableName attribute
+ * @param options carries optional attribute values
+ * @return a new instance of XlaSparseDenseMatmulCustomCombinerOnTcGradWithFtrlAndCsrInput
+ */
+ public XlaSparseDenseMatmulCustomCombinerOnTcGradWithFtrlAndCsrInput xlaSparseDenseMatmulCustomCombinerOnTcGradWithFtrlAndCsrInput(
+ Operand rowPointers, Operand sortedSampleIds, Operand sortedTokenIds,
+ Operand sortedPosIds, Operand sortedGains, Operand weights,
+ Operand preservedValencies, Operand preservedVectors,
+ Operand preservedWeights, Operand activationGradients,
+ Operand learningRate, Operand combinerWeightsLearningRate,
+ Operand embeddingTable, Operand accumulator, Operand linear,
+ Boolean multiplyLinearByLearningRate, Float beta, Float learningRatePower,
+ Float l1RegularizationStrength, Float l2RegularizationStrength, Long maxValency,
+ Long numWeights, ConcreteFunction combinerTableVjpComputation,
+ ConcreteFunction combinerWeightsVjpComputation, String tableName,
+ XlaSparseDenseMatmulCustomCombinerOnTcGradWithFtrlAndCsrInput.Options... options) {
+ return XlaSparseDenseMatmulCustomCombinerOnTcGradWithFtrlAndCsrInput.create(scope, rowPointers, sortedSampleIds, sortedTokenIds, sortedPosIds, sortedGains, weights, preservedValencies, preservedVectors, preservedWeights, activationGradients, learningRate, combinerWeightsLearningRate, embeddingTable, accumulator, linear, multiplyLinearByLearningRate, beta, learningRatePower, l1RegularizationStrength, l2RegularizationStrength, maxValency, numWeights, combinerTableVjpComputation, combinerWeightsVjpComputation, tableName, options);
+ }
+
/**
* The XlaSparseDenseMatmulGradWithAdagradAndCsrInput operation
*
@@ -579,15 +815,17 @@ public XlaSparseDenseMatmulGradWithSgdAndCsrInput xlaSparseDenseMatmulGradWithSg
* @param quantizationConfigHigh The value of the quantizationConfigHigh attribute
* @param quantizationConfigNumBuckets The value of the quantizationConfigNumBuckets attribute
* @param tableName The value of the tableName attribute
+ * @param options carries optional attribute values
+ * @param data type for {@code XlaSparseDenseMatmulWithCsrInput} output and operands
* @return a new instance of XlaSparseDenseMatmulWithCsrInput
*/
- public XlaSparseDenseMatmulWithCsrInput xlaSparseDenseMatmulWithCsrInput(
+ public XlaSparseDenseMatmulWithCsrInput xlaSparseDenseMatmulWithCsrInput(
Operand rowPointers, Operand sortedSampleIds, Operand sortedTokenIds,
- Operand sortedGains, Operand embeddingTable,
+ Operand sortedGains, Operand embeddingTable,
Operand numMinibatchesPerPhysicalSparseCore, Long inputSize,
Float quantizationConfigLow, Float quantizationConfigHigh, Long quantizationConfigNumBuckets,
- String tableName) {
- return XlaSparseDenseMatmulWithCsrInput.create(scope, rowPointers, sortedSampleIds, sortedTokenIds, sortedGains, embeddingTable, numMinibatchesPerPhysicalSparseCore, inputSize, quantizationConfigLow, quantizationConfigHigh, quantizationConfigNumBuckets, tableName);
+ String tableName, XlaSparseDenseMatmulWithCsrInput.Options... options) {
+ return XlaSparseDenseMatmulWithCsrInput.create(scope, rowPointers, sortedSampleIds, sortedTokenIds, sortedGains, embeddingTable, numMinibatchesPerPhysicalSparseCore, inputSize, quantizationConfigLow, quantizationConfigHigh, quantizationConfigNumBuckets, tableName, options);
}
/**
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListGetItem.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListGetItem.java
index 244704b5754..8fbdb5e80e0 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListGetItem.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/core/TensorListGetItem.java
@@ -33,6 +33,7 @@
import org.tensorflow.op.annotation.Operator;
import org.tensorflow.proto.DataType;
import org.tensorflow.types.TInt32;
+import org.tensorflow.types.family.TNumber;
import org.tensorflow.types.family.TType;
/**
@@ -46,13 +47,13 @@
inputsClass = TensorListGetItem.Inputs.class
)
@Operator
-public final class TensorListGetItem extends RawOp implements Operand {
+public final class TensorListGetItem extends RawOp implements Operand {
/**
* The name of this op, as known by TensorFlow core engine
*/
public static final String OP_NAME = "TensorListGetItem";
- private Output item;
+ private Output item;
public TensorListGetItem(Operation operation) {
super(operation, OP_NAME);
@@ -68,15 +69,15 @@ public TensorListGetItem(Operation operation) {
* @param index The index value
* @param elementShape The elementShape value
* @param elementDtype The value of the elementDtype attribute
- * @param data type for {@code TensorListGetItem} output and operands
+ * @param data type for {@code TensorListGetItem} output and operands
* @return a new instance of TensorListGetItem
*/
@Endpoint(
describeByClass = true
)
- public static TensorListGetItem create(Scope scope,
- Operand extends TType> inputHandle, Operand index, Operand elementShape,
- Class elementDtype) {
+ public static TensorListGetItem create(Scope scope,
+ Operand extends TType> inputHandle, Operand index,
+ Operand extends TNumber> elementShape, Class elementDtype) {
OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "TensorListGetItem");
opBuilder.addInput(inputHandle.asOutput());
opBuilder.addInput(index.asOutput());
@@ -90,12 +91,12 @@ public static TensorListGetItem create(Scope scope,
*
* @return item.
*/
- public Output item() {
+ public Output item() {
return item;
}
@Override
- public Output asOutput() {
+ public Output asOutput() {
return item;
}
@@ -116,20 +117,26 @@ public static class Inputs extends RawOpInputs> {
/**
* The elementShape input
*/
- public final Operand elementShape;
+ public final Operand extends TNumber> elementShape;
/**
* The elementDtype attribute
*/
public final DataType elementDtype;
+ /**
+ * The Tshape attribute
+ */
+ public final DataType Tshape;
+
public Inputs(GraphOperation op) {
- super(new TensorListGetItem<>(op), op, Arrays.asList("element_dtype"));
+ super(new TensorListGetItem<>(op), op, Arrays.asList("element_dtype", "Tshape"));
int inputIndex = 0;
inputHandle = (Operand extends TType>) op.input(inputIndex++);
index = (Operand) op.input(inputIndex++);
- elementShape = (Operand) op.input(inputIndex++);
+ elementShape = (Operand extends TNumber>) op.input(inputIndex++);
elementDtype = op.attributes().getAttrType("element_dtype");
+ Tshape = op.attributes().getAttrType("Tshape");
}
}
}
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/StatsAggregatorHandle.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/StatsAggregatorHandle.java
index 080585d34a6..c17850e66a4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/StatsAggregatorHandle.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/StatsAggregatorHandle.java
@@ -85,7 +85,8 @@ public static StatsAggregatorHandle create(Scope scope, Options... options) {
/**
* Sets the container option.
*
- * @param container the container option
+ * @param container The name of {@code container} should start with {@code '.'} or {@code letter} or {@code digit},
+ * with ['-', '.', '/'] or {@code letter} or {@code digit} follows several times.
* @return this Options instance.
*/
public static Options container(String container) {
@@ -131,7 +132,8 @@ private Options() {
/**
* Sets the container option.
*
- * @param container the container option
+ * @param container The name of {@code container} should start with {@code '.'} or {@code letter} or {@code digit},
+ * with ['-', '.', '/'] or {@code letter} or {@code digit} follows several times.
* @return this Options instance.
*/
public Options container(String container) {
@@ -156,7 +158,8 @@ public Options sharedName(String sharedName) {
)
public static class Inputs extends RawOpInputs {
/**
- * The container attribute
+ * The name of {@code container} should start with {@code '.'} or {@code letter} or {@code digit},
+ * with ['-', '.', '/'] or {@code letter} or {@code digit} follows several times.
*/
public final String container;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ThreadPoolHandle.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ThreadPoolHandle.java
index 8e110f97a30..f372fcd859d 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ThreadPoolHandle.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/ThreadPoolHandle.java
@@ -64,7 +64,6 @@ public ThreadPoolHandle(Operation operation) {
* @param numThreads The number of threads in the thread pool.
* @param displayName A human-readable name for the threads that may be visible in some
* visualizations.
- * threadpool.
* @param options carries optional attribute values
* @return a new instance of ThreadPoolHandle
*/
@@ -106,7 +105,8 @@ public static Options maxIntraOpParallelism(Long maxIntraOpParallelism) {
/**
* Sets the container option.
*
- * @param container the container option
+ * @param container The name of {@code container} should start with {@code '.'} or {@code letter} or {@code digit},
+ * with ['-', '.', '/'] or {@code letter} or {@code digit} follows several times.
* @return this Options instance.
*/
public static Options container(String container) {
@@ -125,8 +125,7 @@ public static Options sharedName(String sharedName) {
/**
* Gets handle.
- * A resource that can be consumed by one or more ExperimentalThreadPoolDataset
- * ops.
+ *
* @return handle.
*/
public Output extends TType> handle() {
@@ -167,7 +166,8 @@ public Options maxIntraOpParallelism(Long maxIntraOpParallelism) {
/**
* Sets the container option.
*
- * @param container the container option
+ * @param container The name of {@code container} should start with {@code '.'} or {@code letter} or {@code digit},
+ * with ['-', '.', '/'] or {@code letter} or {@code digit} follows several times.
* @return this Options instance.
*/
public Options container(String container) {
@@ -205,12 +205,12 @@ public static class Inputs extends RawOpInputs {
/**
* A human-readable name for the threads that may be visible in some
* visualizations.
- * threadpool.
*/
public final String displayName;
/**
- * The container attribute
+ * The name of {@code container} should start with {@code '.'} or {@code letter} or {@code digit},
+ * with ['-', '.', '/'] or {@code letter} or {@code digit} follows several times.
*/
public final String container;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ThreadPoolHandle.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ThreadPoolHandle.java
index edcfe5cd3b8..2022bbba44d 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ThreadPoolHandle.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/ThreadPoolHandle.java
@@ -64,7 +64,6 @@ public ThreadPoolHandle(Operation operation) {
* @param numThreads The number of threads in the thread pool.
* @param displayName A human-readable name for the threads that may be visible in some
* visualizations.
- * threadpool.
* @param options carries optional attribute values
* @return a new instance of ThreadPoolHandle
*/
@@ -106,7 +105,8 @@ public static Options maxIntraOpParallelism(Long maxIntraOpParallelism) {
/**
* Sets the container option.
*
- * @param container the container option
+ * @param container The name of {@code container} should start with {@code '.'} or {@code letter} or {@code digit},
+ * with ['-', '.', '/'] or {@code letter} or {@code digit} follows several times.
* @return this Options instance.
*/
public static Options container(String container) {
@@ -125,8 +125,7 @@ public static Options sharedName(String sharedName) {
/**
* Gets handle.
- * A resource that can be consumed by one or more ExperimentalThreadPoolDataset
- * ops.
+ *
* @return handle.
*/
public Output extends TType> handle() {
@@ -167,7 +166,8 @@ public Options maxIntraOpParallelism(Long maxIntraOpParallelism) {
/**
* Sets the container option.
*
- * @param container the container option
+ * @param container The name of {@code container} should start with {@code '.'} or {@code letter} or {@code digit},
+ * with ['-', '.', '/'] or {@code letter} or {@code digit} follows several times.
* @return this Options instance.
*/
public Options container(String container) {
@@ -205,12 +205,12 @@ public static class Inputs extends RawOpInputs {
/**
* A human-readable name for the threads that may be visible in some
* visualizations.
- * threadpool.
*/
public final String displayName;
/**
- * The container attribute
+ * The name of {@code container} should start with {@code '.'} or {@code letter} or {@code digit},
+ * with ['-', '.', '/'] or {@code letter} or {@code digit} follows several times.
*/
public final String container;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugNumericsSummary.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugNumericsSummary.java
index 4ff0f11c7bc..d83f728b452 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugNumericsSummary.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/debugging/DebugNumericsSummary.java
@@ -102,7 +102,7 @@ public static DebugNumericsSummary create(Scope scope,
describeByClass = true
)
public static DebugNumericsSummary create(Scope scope, Operand extends TType> input,
- Options[] options) {
+ Options... options) {
return create(scope, input, TFloat32.class, options);
}
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/AsString.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/AsString.java
index 1f9b0285c6c..463a55959d4 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/AsString.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/dtypes/AsString.java
@@ -38,7 +38,7 @@
* Converts each entry in the given tensor to strings.
* Supports many numeric types and boolean.
* For Unicode, see the
- * [https://www.tensorflow.org/tutorials/representation/unicode](Working with Unicode text)
+ * [https://www.tensorflow.org/text/guide/unicode](Working with Unicode text)
* tutorial.
*
Examples:
*
@@ -124,6 +124,7 @@ public static Options precision(Long precision) {
* Sets the scientific option.
*
* @param scientific Use scientific notation for floating point numbers.
+ * Can't be specified to {@code True} when {@code shortest} is set to {@code True}.
* @return this Options instance.
*/
public static Options scientific(Boolean scientific) {
@@ -135,6 +136,7 @@ public static Options scientific(Boolean scientific) {
*
* @param shortest Use shortest representation (either scientific or standard) for
* floating point numbers.
+ * Can't be specified to {@code True} when {@code scientific} is set to {@code True}.
* @return this Options instance.
*/
public static Options shortest(Boolean shortest) {
@@ -211,6 +213,7 @@ public Options precision(Long precision) {
* Sets the scientific option.
*
* @param scientific Use scientific notation for floating point numbers.
+ * Can't be specified to {@code True} when {@code shortest} is set to {@code True}.
* @return this Options instance.
*/
public Options scientific(Boolean scientific) {
@@ -223,6 +226,7 @@ public Options scientific(Boolean scientific) {
*
* @param shortest Use shortest representation (either scientific or standard) for
* floating point numbers.
+ * Can't be specified to {@code True} when {@code scientific} is set to {@code True}.
* @return this Options instance.
*/
public Options shortest(Boolean shortest) {
@@ -278,12 +282,14 @@ public static class Inputs extends RawOpInputs {
/**
* Use scientific notation for floating point numbers.
+ * Can't be specified to {@code True} when {@code shortest} is set to {@code True}.
*/
public final boolean scientific;
/**
* Use shortest representation (either scientific or standard) for
* floating point numbers.
+ * Can't be specified to {@code True} when {@code scientific} is set to {@code True}.
*/
public final boolean shortest;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodeImage.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodeImage.java
index a5c7ee7845e..ced9e2198c5 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodeImage.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodeImage.java
@@ -37,17 +37,18 @@
import org.tensorflow.types.family.TNumber;
/**
- * Function for decode_bmp, decode_gif, decode_jpeg, and decode_png.
- * Detects whether an image is a BMP, GIF, JPEG, or PNG, and performs the
- * appropriate operation to convert the input bytes string into a Tensor of type
- * dtype.
- * NOTE: decode_gif returns a 4-D array [num_frames, height, width, 3], as
- * opposed to decode_bmp, decode_jpeg and decode_png, which return 3-D arrays
- * [height, width, num_channels]. Make sure to take this into account when
- * constructing your graph if you are intermixing GIF files with BMP, JPEG, and/or
- * PNG files. Alternately, set the expand_animations argument of this function to
- * False, in which case the op will return 3-dimensional tensors and will truncate
- * animated GIF files to the first frame.
+ * Function for decode_bmp, decode_gif, decode_jpeg, decode_jxl, decode_webp, and decode_png.
+ * Detects whether an image is a BMP, GIF, JPEG, JPEG XL, WebP, or PNG, and
+ * performs the appropriate operation to convert the input bytes string into a
+ * Tensor of type dtype.
+ *
NOTE: decode_gif and decode_webp return a 4-D
+ * array [num_frames, height, width, 3], as opposed to decode_bmp,
+ * decode_jpeg, and decode_png, which always return 3-D arrays [height,
+ * width, num_channels]. Make sure to take this into account when
+ * constructing your graph if you are intermixing animated files with
+ * BMP, JPEG, and/or PNG files. Alternately, set the expand_animations
+ * argument of this function to False, in which case the op will return
+ * 3-dimensional tensors and will truncate animations to the first frame.
*
NOTE: If the first frame of an animated GIF does not occupy the entire
* canvas (maximum frame width x maximum frame height), then it fills the
* unoccupied areas (in the first frame) with zeros (black). For frames after the
@@ -118,7 +119,7 @@ public static DecodeImage create(Scope scope, Operand create(Scope scope, Operand contents,
- Options[] options) {
+ Options... options) {
return create(scope, contents, TUint8.class, options);
}
@@ -135,10 +136,11 @@ public static Options channels(Long channels) {
/**
* Sets the expandAnimations option.
*
- * @param expandAnimations Controls the output shape of the returned op. If True, the returned op will
- * produce a 3-D tensor for PNG, JPEG, and BMP files; and a 4-D tensor for all
- * GIFs, whether animated or not. If, False, the returned op will produce a 3-D
- * tensor for all file types and will truncate animated GIFs to the first frame.
+ * @param expandAnimations Controls the output shape of the returned op. If True, the returned op
+ * will produce a 3-D tensor for PNG, JPEG, JPEG XL, and BMP files; and a
+ * 4-D tensor for all GIFs and WebP images, whether animated or not. If,
+ * False, the returned op will produce a 3-D tensor for all file types
+ * and will truncate animated images to the first frame.
* @return this Options instance.
*/
public static Options expandAnimations(Boolean expandAnimations) {
@@ -185,10 +187,11 @@ public Options channels(Long channels) {
/**
* Sets the expandAnimations option.
*
- * @param expandAnimations Controls the output shape of the returned op. If True, the returned op will
- * produce a 3-D tensor for PNG, JPEG, and BMP files; and a 4-D tensor for all
- * GIFs, whether animated or not. If, False, the returned op will produce a 3-D
- * tensor for all file types and will truncate animated GIFs to the first frame.
+ * @param expandAnimations Controls the output shape of the returned op. If True, the returned op
+ * will produce a 3-D tensor for PNG, JPEG, JPEG XL, and BMP files; and a
+ * 4-D tensor for all GIFs and WebP images, whether animated or not. If,
+ * False, the returned op will produce a 3-D tensor for all file types
+ * and will truncate animated images to the first frame.
* @return this Options instance.
*/
public Options expandAnimations(Boolean expandAnimations) {
@@ -217,10 +220,11 @@ public static class Inputs extends RawOpInputs> {
public final DataType dtype;
/**
- * Controls the output shape of the returned op. If True, the returned op will
- * produce a 3-D tensor for PNG, JPEG, and BMP files; and a 4-D tensor for all
- * GIFs, whether animated or not. If, False, the returned op will produce a 3-D
- * tensor for all file types and will truncate animated GIFs to the first frame.
+ * Controls the output shape of the returned op. If True, the returned op
+ * will produce a 3-D tensor for PNG, JPEG, JPEG XL, and BMP files; and a
+ * 4-D tensor for all GIFs and WebP images, whether animated or not. If,
+ * False, the returned op will produce a 3-D tensor for all file types
+ * and will truncate animated images to the first frame.
*/
public final boolean expandAnimations;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodePng.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodePng.java
index dd6384caf7c..8352476fae0 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodePng.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodePng.java
@@ -113,7 +113,7 @@ public static DecodePng create(Scope scope, Operand create(Scope scope, Operand contents,
- Options[] options) {
+ Options... options) {
return create(scope, contents, TUint8.class, options);
}
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodeWebP.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodeWebP.java
new file mode 100644
index 00000000000..16a7b6b54cb
--- /dev/null
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/DecodeWebP.java
@@ -0,0 +1,189 @@
+/* Copyright 2018-2023 The TensorFlow Authors. All Rights Reserved.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+=======================================================================*/
+
+// This class has been generated, DO NOT EDIT!
+
+package org.tensorflow.op.image;
+
+import java.util.Arrays;
+import org.tensorflow.GraphOperation;
+import org.tensorflow.Operand;
+import org.tensorflow.Operation;
+import org.tensorflow.OperationBuilder;
+import org.tensorflow.Output;
+import org.tensorflow.op.Operands;
+import org.tensorflow.op.RawOp;
+import org.tensorflow.op.RawOpInputs;
+import org.tensorflow.op.Scope;
+import org.tensorflow.op.annotation.Endpoint;
+import org.tensorflow.op.annotation.OpInputsMetadata;
+import org.tensorflow.op.annotation.OpMetadata;
+import org.tensorflow.op.annotation.Operator;
+import org.tensorflow.proto.DataType;
+import org.tensorflow.types.TString;
+import org.tensorflow.types.TUint8;
+import org.tensorflow.types.family.TNumber;
+
+/**
+ * Decode a WebP-encoded image to a uint8 tensor.
+ * The attr {@code channels} indicates the desired number of color channels for the
+ * decoded image.
+ * Accepted values are:
+ *
+ * - 0: Use the number of channels in the WebP-encoded image.
+ * - 3: output an RGB image.
+ * - 4: output an RGBA image.
+ *
+ * The number of channels must currently match that of the underlying file.
+ * For WebP animations, only 4-channel RGBA is supported.
+ */
+@OpMetadata(
+ opType = DecodeWebP.OP_NAME,
+ inputsClass = DecodeWebP.Inputs.class
+)
+@Operator(
+ group = "image"
+)
+public final class DecodeWebP extends RawOp implements Operand {
+ /**
+ * The name of this op, as known by TensorFlow core engine
+ */
+ public static final String OP_NAME = "DecodeWebP";
+
+ private Output image;
+
+ public DecodeWebP(Operation operation) {
+ super(operation, OP_NAME);
+ int outputIdx = 0;
+ image = operation.output(outputIdx++);
+ }
+
+ /**
+ * Factory method to create a class wrapping a new DecodeWebP operation.
+ *
+ * @param scope current scope
+ * @param contents 0-D. The WebP-encoded image.
+ * @param dtype The value of the dtype attribute
+ * @param options carries optional attribute values
+ * @param data type for {@code DecodeWebP} output and operands
+ * @return a new instance of DecodeWebP
+ */
+ @Endpoint(
+ describeByClass = true
+ )
+ public static DecodeWebP create(Scope scope, Operand contents,
+ Class dtype, Options... options) {
+ OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "DecodeWebP");
+ opBuilder.addInput(contents.asOutput());
+ opBuilder.setAttr("dtype", Operands.toDataType(dtype));
+ if (options != null) {
+ for (Options opts : options) {
+ if (opts.channels != null) {
+ opBuilder.setAttr("channels", opts.channels);
+ }
+ }
+ }
+ return new DecodeWebP<>(opBuilder.build());
+ }
+
+ /**
+ * Factory method to create a class wrapping a new DecodeWebP operation, with the default output types.
+ *
+ * @param scope current scope
+ * @param contents 0-D. The WebP-encoded image.
+ * @param options carries optional attribute values
+ * @return a new instance of DecodeWebP, with default output types
+ */
+ @Endpoint(
+ describeByClass = true
+ )
+ public static DecodeWebP create(Scope scope, Operand contents,
+ Options... options) {
+ return create(scope, contents, TUint8.class, options);
+ }
+
+ /**
+ * Sets the channels option.
+ *
+ * @param channels Number of color channels for the decoded image.
+ * @return this Options instance.
+ */
+ public static Options channels(Long channels) {
+ return new Options().channels(channels);
+ }
+
+ /**
+ * Gets image.
+ * 4-D with shape {@code [num_frames, height, width, channels]}.
+ * @return image.
+ */
+ public Output image() {
+ return image;
+ }
+
+ @Override
+ public Output asOutput() {
+ return image;
+ }
+
+ /**
+ * Optional attributes for {@link org.tensorflow.op.image.DecodeWebP}
+ */
+ public static class Options {
+ private Long channels;
+
+ private Options() {
+ }
+
+ /**
+ * Sets the channels option.
+ *
+ * @param channels Number of color channels for the decoded image.
+ * @return this Options instance.
+ */
+ public Options channels(Long channels) {
+ this.channels = channels;
+ return this;
+ }
+ }
+
+ @OpInputsMetadata(
+ outputsClass = DecodeWebP.class
+ )
+ public static class Inputs extends RawOpInputs> {
+ /**
+ * 0-D. The WebP-encoded image.
+ */
+ public final Operand contents;
+
+ /**
+ * Number of color channels for the decoded image.
+ */
+ public final long channels;
+
+ /**
+ * The dtype attribute
+ */
+ public final DataType dtype;
+
+ public Inputs(GraphOperation op) {
+ super(new DecodeWebP<>(op), op, Arrays.asList("channels", "dtype"));
+ int inputIndex = 0;
+ contents = (Operand) op.input(inputIndex++);
+ channels = op.attributes().getAttrInt("channels");
+ dtype = op.attributes().getAttrType("dtype");
+ }
+ }
+}
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ExtractGlimpse.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ExtractGlimpse.java
index 44daff67647..ee9c2316946 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ExtractGlimpse.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/image/ExtractGlimpse.java
@@ -145,6 +145,7 @@ public static Options normalized(Boolean normalized) {
*
* @param uniformNoise indicates if the noise should be generated using a
* uniform distribution or a Gaussian distribution.
+ * It should not be {@code True} when {@code noise} is not {@code uniform}.
* @return this Options instance.
*/
public static Options uniformNoise(Boolean uniformNoise) {
@@ -222,6 +223,7 @@ public Options normalized(Boolean normalized) {
*
* @param uniformNoise indicates if the noise should be generated using a
* uniform distribution or a Gaussian distribution.
+ * It should not be {@code True} when {@code noise} is not {@code uniform}.
* @return this Options instance.
*/
public Options uniformNoise(Boolean uniformNoise) {
@@ -281,6 +283,7 @@ public static class Inputs extends RawOpInputs {
/**
* indicates if the noise should be generated using a
* uniform distribution or a Gaussian distribution.
+ * It should not be {@code True} when {@code noise} is not {@code uniform}.
*/
public final boolean uniformNoise;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodeCsv.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodeCsv.java
index 899877be0c6..a6c00ac6e3c 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodeCsv.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/io/DecodeCsv.java
@@ -145,7 +145,9 @@ public static Options naValue(String naValue) {
/**
* Sets the selectCols option.
*
- * @param selectCols the selectCols option
+ * @param selectCols Optional sorted list of column indices to select. If specified,
+ * only this subset of columns will be parsed and returned.
+ * It only works on {@code records} except for {@code record_defaults}.
* @return this Options instance.
*/
public static Options selectCols(List selectCols) {
@@ -155,7 +157,9 @@ public static Options selectCols(List selectCols) {
/**
* Sets the selectCols option.
*
- * @param selectCols the selectCols option
+ * @param selectCols Optional sorted list of column indices to select. If specified,
+ * only this subset of columns will be parsed and returned.
+ * It only works on {@code records} except for {@code record_defaults}.
* @return this Options instance.
*/
public static Options selectCols(Long... selectCols) {
@@ -230,7 +234,9 @@ public Options naValue(String naValue) {
/**
* Sets the selectCols option.
*
- * @param selectCols the selectCols option
+ * @param selectCols Optional sorted list of column indices to select. If specified,
+ * only this subset of columns will be parsed and returned.
+ * It only works on {@code records} except for {@code record_defaults}.
* @return this Options instance.
*/
public Options selectCols(List selectCols) {
@@ -241,7 +247,9 @@ public Options selectCols(List selectCols) {
/**
* Sets the selectCols option.
*
- * @param selectCols the selectCols option
+ * @param selectCols Optional sorted list of column indices to select. If specified,
+ * only this subset of columns will be parsed and returned.
+ * It only works on {@code records} except for {@code record_defaults}.
* @return this Options instance.
*/
public Options selectCols(Long... selectCols) {
@@ -290,7 +298,9 @@ public static class Inputs extends RawOpInputs {
public final String naValue;
/**
- * The selectCols attribute
+ * Optional sorted list of column indices to select. If specified,
+ * only this subset of columns will be parsed and returned.
+ * It only works on {@code records} except for {@code record_defaults}.
*/
public final long[] selectCols;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ComplexAbs.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ComplexAbs.java
index 9461d599888..807724d575d 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ComplexAbs.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/ComplexAbs.java
@@ -79,7 +79,8 @@ public ComplexAbs(Operation operation) {
*
* @param scope current scope
* @param x The x value
- * @param Tout The value of the Tout attribute
+ * @param Tout Need to be {@code tf.float32} when the type of {@code x} is {@code tf.complex64}.
+ * Need to be {@code tf.float64} when the type of {@code x} is {@code tf.complex128}.
* @param data type for {@code ComplexAbs} output and operands
* @return a new instance of ComplexAbs
*/
@@ -137,7 +138,8 @@ public static class Inputs extends RawOpInputs> {
public final DataType T;
/**
- * The Tout attribute
+ * Need to be {@code tf.float32} when the type of {@code x} is {@code tf.complex64}.
+ * Need to be {@code tf.float64} when the type of {@code x} is {@code tf.complex128}.
*/
public final DataType Tout;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/DenseBincount.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/DenseBincount.java
index 808be372c5f..f4581fe9844 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/DenseBincount.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/DenseBincount.java
@@ -69,9 +69,9 @@ public DenseBincount(Operation operation) {
* @param scope current scope
* @param input 1D or 2D int {@code Tensor}.
* @param sizeOutput non-negative int scalar {@code Tensor}.
- * @param weights is an int32, int64, float32, or float64 {@code Tensor} with the same
- * shape as {@code arr}, or a length-0 {@code Tensor}, in which case it acts as all weights
- * equal to 1.
+ * @param weights {@code Tensor} with the same shape as {@code arr}, or a length-0 {@code Tensor},
+ * in which case it acts as all weights equal to 1.
+ * Not supported by the GPU implementation of Bincount.
* @param options carries optional attribute values
* @param data type for {@code DenseBincount} output and operands
* @param data type for {@code DenseBincount} output and operands
@@ -99,7 +99,9 @@ public static DenseBincount create(Sco
/**
* Sets the binaryOutput option.
*
- * @param binaryOutput bool; Whether the kernel should count the appearance or number of occurrences.
+ * @param binaryOutput Whether the kernel should count the appearance or number of occurrences.
+ * Will raise {@code UnimplementedError} when {@code binary_output} is specified to {@code True}
+ * and the size of {@code weights} is not 0.
* @return this Options instance.
*/
public static Options binaryOutput(Boolean binaryOutput) {
@@ -133,7 +135,9 @@ private Options() {
/**
* Sets the binaryOutput option.
*
- * @param binaryOutput bool; Whether the kernel should count the appearance or number of occurrences.
+ * @param binaryOutput Whether the kernel should count the appearance or number of occurrences.
+ * Will raise {@code UnimplementedError} when {@code binary_output} is specified to {@code True}
+ * and the size of {@code weights} is not 0.
* @return this Options instance.
*/
public Options binaryOutput(Boolean binaryOutput) {
@@ -157,9 +161,9 @@ public static class Inputs extends RawOpIn
public final Operand sizeOutput;
/**
- * is an int32, int64, float32, or float64 {@code Tensor} with the same
- * shape as {@code arr}, or a length-0 {@code Tensor}, in which case it acts as all weights
- * equal to 1.
+ * {@code Tensor} with the same shape as {@code arr}, or a length-0 {@code Tensor},
+ * in which case it acts as all weights equal to 1.
+ * Not supported by the GPU implementation of Bincount.
*/
public final Operand weights;
@@ -174,7 +178,9 @@ public static class Inputs extends RawOpIn
public final DataType T;
/**
- * bool; Whether the kernel should count the appearance or number of occurrences.
+ * Whether the kernel should count the appearance or number of occurrences.
+ * Will raise {@code UnimplementedError} when {@code binary_output} is specified to {@code True}
+ * and the size of {@code weights} is not 0.
*/
public final boolean binaryOutput;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Imag.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Imag.java
index 509de2b8c7b..ce739b420de 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Imag.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Imag.java
@@ -74,7 +74,8 @@ public Imag(Operation operation) {
*
* @param scope current scope
* @param input The input value
- * @param Tout The value of the Tout attribute
+ * @param Tout Need to be {@code tf.float32} when the type of {@code x} is {@code tf.complex64}.
+ * Need to be {@code tf.float64} when the type of {@code x} is {@code tf.complex128}.
* @param data type for {@code Imag} output and operands
* @return a new instance of Imag
*/
@@ -132,7 +133,8 @@ public static class Inputs extends RawOpInputs> {
public final DataType T;
/**
- * The Tout attribute
+ * Need to be {@code tf.float32} when the type of {@code x} is {@code tf.complex64}.
+ * Need to be {@code tf.float64} when the type of {@code x} is {@code tf.complex128}.
*/
public final DataType Tout;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/IsotonicRegression.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/IsotonicRegression.java
index ecd511253e8..73ea2a63c84 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/IsotonicRegression.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/IsotonicRegression.java
@@ -68,7 +68,15 @@ public IsotonicRegression(Operation operation) {
*
* @param scope current scope
* @param input A (batch_size, dim)-tensor holding a batch of inputs.
- * @param outputDtype Dtype of output.
+ * @param outputDtype Dtype of the output tensor.
+ * Note on supported input-output type combinations:
+ *
+ * - For floating-point types, the output has the same dtype as the input.
+ * - For 8-bit and 16-bit integer inputs, the output is a 32-bit float.
+ * - For 32-bit and 64-bit integer inputs, the output is a 64-bit float.
+ *
+ * Using unsupported dtype pairs (for example, input=float64 with output=float32)
+ * will result in a "Could not find device for node" error.
* @param data type for {@code IsotonicRegression} output and operands
* @return a new instance of IsotonicRegression
*/
@@ -130,7 +138,15 @@ public static class Inputs extends RawOpInputs> {
public final DataType T;
/**
- * Dtype of output.
+ * Dtype of the output tensor.
+ * Note on supported input-output type combinations:
+ *
+ * - For floating-point types, the output has the same dtype as the input.
+ * - For 8-bit and 16-bit integer inputs, the output is a 32-bit float.
+ * - For 32-bit and 64-bit integer inputs, the output is a 64-bit float.
+ *
+ * Using unsupported dtype pairs (for example, input=float64 with output=float32)
+ * will result in a "Could not find device for node" error.
*/
public final DataType outputDtype;
diff --git a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolWithArgmax.java b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolWithArgmax.java
index bd19af1b703..78e871d2de7 100644
--- a/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolWithArgmax.java
+++ b/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPoolWithArgmax.java
@@ -133,7 +133,7 @@ public static MaxPoolWithArgmax cre
describeByClass = true
)
public static MaxPoolWithArgmax create(Scope scope,
- Operand input, List ksize, List strides, String padding, Options[] options) {
+ Operand