Skip to content

Commit

Permalink
Reduce constants to 'val' and 'array'
Browse files Browse the repository at this point in the history
  • Loading branch information
karllessard committed Feb 12, 2020
1 parent 172dd5f commit 8c73b39
Show file tree
Hide file tree
Showing 9 changed files with 5,611 additions and 4,904 deletions.
9,506 changes: 4,889 additions & 4,617 deletions tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/Ops.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,19 @@
* <p>Example usage:
*
* <pre>{@code
* Ops tf = Ops.create();
*
* // The "decodeJpeg" operation can be used as an operand to the "cast" operation
* Operand<TUint8> decodeJpeg = ops.image.decodeJpeg(...);
* ops.dtypes.cast(decodeJpeg, TFloat32.DTYPE);
* Operand<TUint8> decodeJpeg = tf.image.decodeJpeg(...);
* tf.dtypes.cast(decodeJpeg, TFloat32.DTYPE);
*
* // The output "y" of the "unique" operation can be used as an operand to the "cast" operation
* Output<TInt32> y = ops.unique(...).y();
* ops.dtypes.cast(y, TFloat32.DTYPE);
* Output<TInt32> y = tf.unique(...).y();
* tf.dtypes.cast(y, TFloat32.DTYPE);
*
* // The "split" operation can be used as operand list to the "concat" operation
* Iterable<? extends Operand<TFloat32>> split = ops.split(...);
* ops.concat(split, ops.scalar(0));
* Iterable<? extends Operand<TFloat32>> split = tf.split(...);
* tf.concat(split, tf.val(0));
* }</pre>
*/
public interface Operand<T extends TType> {
Expand Down
Loading

0 comments on commit 8c73b39

Please sign in to comment.