177
177
import org .tensorflow .op .core .SetDiff1d ;
178
178
import org .tensorflow .op .core .SetSize ;
179
179
import org .tensorflow .op .core .ShapeN ;
180
- import org .tensorflow .op .core .ShapeOps ;
181
180
import org .tensorflow .op .core .Size ;
182
181
import org .tensorflow .op .core .Skipgram ;
183
182
import org .tensorflow .op .core .Slice ;
@@ -337,10 +336,10 @@ public final class Ops {
337
336
338
337
public final SignalOps signal ;
339
338
340
- public final QuantizationOps quantization ;
341
-
342
339
public final TrainOps train ;
343
340
341
+ public final QuantizationOps quantization ;
342
+
344
343
private final Scope scope ;
345
344
346
345
private Ops (Scope scope ) {
@@ -360,8 +359,8 @@ private Ops(Scope scope) {
360
359
math = new MathOps (scope );
361
360
audio = new AudioOps (scope );
362
361
signal = new SignalOps (scope );
363
- quantization = new QuantizationOps (scope );
364
362
train = new TrainOps (scope );
363
+ quantization = new QuantizationOps (scope );
365
364
}
366
365
367
366
/**
@@ -2298,58 +2297,6 @@ public <T extends TType> Fingerprint fingerprint(Operand<T> data, Operand<TStrin
2298
2297
return Fingerprint .create (scope , data , method );
2299
2298
}
2300
2299
2301
- /**
2302
- * Flatten the operand to 1 dimension
2303
- *
2304
- * @param <T> the type of operand
2305
- * @param scope current scope
2306
- * @param operand the operand to flatten
2307
- * @return the reshaped operand
2308
- */
2309
- public <T extends TType > Operand <T > flatten (Operand <T > operand ) {
2310
- return ShapeOps .flatten (scope , operand );
2311
- }
2312
-
2313
- /**
2314
- * Flatten the shape to 1 dimension
2315
- *
2316
- * @param scope current scope
2317
- * @param shape the TensorFlow shape
2318
- * @return the flattened shape
2319
- */
2320
- public Operand <TInt32 > flatten (org .tensorflow .op .core .Shape <TInt32 > shape ) {
2321
- return ShapeOps .flatten (scope , shape );
2322
- }
2323
-
2324
- /**
2325
- * Flatten the operand to 1 dimension
2326
- *
2327
- * @param <T> the type of operand
2328
- * @param <U> the shape datatype.
2329
- * @param scope current scope
2330
- * @param operand the operand to flatten
2331
- * @param dType the shape datatype.
2332
- * @return the reshaped operand
2333
- */
2334
- public <T extends TType , U extends TNumber > Operand <T > flatten (Operand <T > operand ,
2335
- DataType <U > dType ) {
2336
- return ShapeOps .flatten (scope , operand , dType );
2337
- }
2338
-
2339
- /**
2340
- * Flatten the shape to 1 dimension
2341
- *
2342
- * @param <U> the shape datatype.
2343
- * @param scope current scope
2344
- * @param shape the TensorFlow shape
2345
- * @param dType the shape datatype.
2346
- * @return the flattened shape
2347
- */
2348
- public <U extends TNumber > Operand <U > flatten (org .tensorflow .op .core .Shape <U > shape ,
2349
- DataType <U > dType ) {
2350
- return ShapeOps .flatten (scope , shape , dType );
2351
- }
2352
-
2353
2300
/**
2354
2301
* Gather slices from `params` axis `axis` according to `indices`.
2355
2302
* <p>
@@ -3380,31 +3327,6 @@ public NoOp noOp() {
3380
3327
return NoOp .create (scope );
3381
3328
}
3382
3329
3383
- /**
3384
- * Get the number of dimensions of the shape object
3385
- *
3386
- * @param scope current scope
3387
- * @param shape the shape
3388
- * @return the number of dimensions
3389
- */
3390
- public Operand <TInt32 > numDimensions (org .tensorflow .op .core .Shape <TInt32 > shape ) {
3391
- return ShapeOps .numDimensions (scope , shape );
3392
- }
3393
-
3394
- /**
3395
- * Get the number of dimensions of the shape object
3396
- *
3397
- * @param <U> the shape datatype.
3398
- * @param scope the curren scope
3399
- * @param shape the shape
3400
- * @param dType the shape datatype.
3401
- * @return the number of dimensions
3402
- */
3403
- public <U extends TNumber > Operand <U > numDimensions (org .tensorflow .op .core .Shape <U > shape ,
3404
- DataType <U > dType ) {
3405
- return ShapeOps .numDimensions (scope , shape , dType );
3406
- }
3407
-
3408
3330
/**
3409
3331
* Returns a one-hot tensor.
3410
3332
* <p>
@@ -3936,63 +3858,6 @@ public <T extends TNumber> ReduceAny reduceAny(Operand<TBool> input, Operand<T>
3936
3858
return ReduceAny .create (scope , input , axis , options );
3937
3859
}
3938
3860
3939
- /**
3940
- * Reshapes the operand to the specified axis,
3941
- *
3942
- * @param <T> the type of Operand
3943
- * @param scope current scope
3944
- * @param operand the operand
3945
- * @param axis the axis
3946
- * @return the reshaped operand
3947
- */
3948
- public <T extends TType > Operand <T > reduceDims (Operand <T > operand , Operand <TInt32 > axis ) {
3949
- return ShapeOps .reduceDims (scope , operand , axis );
3950
- }
3951
-
3952
- /**
3953
- * Reduces the shape to the specified axis,
3954
- *
3955
- * @param scope current scope
3956
- * @param shape the TensorFlow shape
3957
- * @param axis the axis
3958
- * @return the reduced shape
3959
- */
3960
- public Operand <TInt32 > reduceDims (org .tensorflow .op .core .Shape <TInt32 > shape ,
3961
- Operand <TInt32 > axis ) {
3962
- return ShapeOps .reduceDims (scope , shape , axis );
3963
- }
3964
-
3965
- /**
3966
- * Reshapes the operand to the specified axis,
3967
- *
3968
- * @param <T> the type of Operand
3969
- * @param <U> the shape datatype.
3970
- * @param scope current scope
3971
- * @param operand the operand
3972
- * @param axis the axis
3973
- * @param dType the shape datatype.
3974
- * @return the reshaped operand
3975
- */
3976
- public <T extends TType , U extends TNumber > Operand <T > reduceDims (Operand <T > operand ,
3977
- Operand <U > axis , DataType <U > dType ) {
3978
- return ShapeOps .reduceDims (scope , operand , axis , dType );
3979
- }
3980
-
3981
- /**
3982
- * Reduces the shape to the specified axis,
3983
- *
3984
- * @param <U> the shape datatype.
3985
- * @param scope current scope
3986
- * @param shape the TensorFlow shape
3987
- * @param axis the axis
3988
- * @param dType the shape datatype.
3989
- * @return the reduced shape
3990
- */
3991
- public <U extends TNumber > Operand <U > reduceDims (org .tensorflow .op .core .Shape <U > shape ,
3992
- Operand <U > axis , DataType <U > dType ) {
3993
- return ShapeOps .reduceDims (scope , shape , axis , dType );
3994
- }
3995
-
3996
3861
/**
3997
3862
* Computes the maximum of elements across dimensions of a tensor.
3998
3863
* <p>
@@ -5620,29 +5485,6 @@ public <T extends TType> Size<TInt32> size(Operand<T> input) {
5620
5485
return Size .create (scope , input );
5621
5486
}
5622
5487
5623
- /**
5624
- * Get the size represented by the TensorFlow shape
5625
- *
5626
- * @param scope current scope
5627
- * @param shape the TensorFlow shape
5628
- * @return the size
5629
- */
5630
- public Operand <TInt32 > size (org .tensorflow .op .core .Shape <TInt32 > shape ) {
5631
- return ShapeOps .size (scope , shape );
5632
- }
5633
-
5634
- /**
5635
- * Get the size of the specified dimension for the shape of the tensor
5636
- *
5637
- * @param scope current scope
5638
- * @param input the operand
5639
- * @param dim the dimension
5640
- * @return the size of the specified dimension
5641
- */
5642
- public Operand <TInt32 > size (Operand input , Operand <TInt32 > dim ) {
5643
- return ShapeOps .size (scope , input , dim );
5644
- }
5645
-
5646
5488
/**
5647
5489
* Returns the size of a tensor.
5648
5490
* <p>
@@ -5664,61 +5506,6 @@ public <U extends TNumber, T extends TType> Size<U> size(Operand<T> input, DataT
5664
5506
return Size .create (scope , input , outType );
5665
5507
}
5666
5508
5667
- /**
5668
- * Get the size represented by the TensorFlow shape
5669
- *
5670
- * @param <U> the shape datatype. the type of the shape
5671
- * @param scope current scope
5672
- * @param shape the TensorFlow shape
5673
- * @param dType the shape datatype.
5674
- * @return the size
5675
- */
5676
- public <U extends TNumber > Operand <U > size (org .tensorflow .op .core .Shape <U > shape ,
5677
- DataType <U > dType ) {
5678
- return ShapeOps .size (scope , shape , dType );
5679
- }
5680
-
5681
- /**
5682
- * Get the size of the specified dimension in the shape
5683
- *
5684
- * @param scope current scope
5685
- * @param shape the TensorFlow shape
5686
- * @param dim the dimension
5687
- * @return the size of the specified dimension
5688
- */
5689
- public Operand <TInt32 > size (org .tensorflow .op .core .Shape <TInt32 > shape , Operand <TInt32 > dim ) {
5690
- return ShapeOps .size (scope , shape , dim );
5691
- }
5692
-
5693
- /**
5694
- * Get the size of the specified dimension for the shape of the tensor
5695
- *
5696
- * @param <U> the shape datatype.
5697
- * @param scope current scope
5698
- * @param input the operand
5699
- * @param dim the dimension
5700
- * @param dType the shape datatype.
5701
- * @return the size of the specified dimension
5702
- */
5703
- public <U extends TNumber > Operand <U > size (Operand input , Operand <U > dim , DataType <U > dType ) {
5704
- return ShapeOps .size (scope , input , dim , dType );
5705
- }
5706
-
5707
- /**
5708
- * Get the size of the specified dimension in the shape
5709
- *
5710
- * @param <U> the shape datatype.
5711
- * @param scope current scope
5712
- * @param shape the TensorFlow shape
5713
- * @param dim the dimension
5714
- * @param dType the shape datatype.
5715
- * @return the size of the specified dimension
5716
- */
5717
- public <U extends TNumber > Operand <U > size (org .tensorflow .op .core .Shape <U > shape , Operand <U > dim ,
5718
- DataType <U > dType ) {
5719
- return ShapeOps .size (scope , shape , dim , dType );
5720
- }
5721
-
5722
5509
/**
5723
5510
* Parses a text file and creates a batch of examples.
5724
5511
*
@@ -5915,17 +5702,6 @@ public <T extends TType, U extends TNumber> SplitV<T> splitV(Operand<T> value,
5915
5702
return SplitV .create (scope , value , sizeSplits , axis , numSplit );
5916
5703
}
5917
5704
5918
- /**
5919
- * Removes dimensions of size 1 from the shape
5920
- *
5921
- * @param scope current scope
5922
- * @param shape the TensorFlow shape
5923
- * @return the squeezed shape
5924
- */
5925
- public Operand <TInt32 > squeeze (org .tensorflow .op .core .Shape <TInt32 > shape ) {
5926
- return ShapeOps .squeeze (scope , shape );
5927
- }
5928
-
5929
5705
/**
5930
5706
* Removes dimensions of size 1 from the shape of a tensor.
5931
5707
* <p>
@@ -5954,20 +5730,6 @@ public <T extends TType> Squeeze<T> squeeze(Operand<T> input, Squeeze.Options...
5954
5730
return Squeeze .create (scope , input , options );
5955
5731
}
5956
5732
5957
- /**
5958
- * Removes dimensions of size 1 from the shape
5959
- *
5960
- * @param <U> the shape datatype.
5961
- * @param scope current scope
5962
- * @param shape the TensorFlow shape
5963
- * @param dType the shape datatype.
5964
- * @return the squeezed shape
5965
- */
5966
- public <U extends TNumber > Operand <U > squeeze (org .tensorflow .op .core .Shape <U > shape ,
5967
- DataType <U > dType ) {
5968
- return ShapeOps .squeeze (scope , shape , dType );
5969
- }
5970
-
5971
5733
/**
5972
5734
* Packs a list of `N` rank-`R` tensors into one rank-`(R+1)` tensor.
5973
5735
* <p>
0 commit comments