Skip to content

Commit c9cad15

Browse files
committed
Add Matrix operator
1 parent 6d385c7 commit c9cad15

34 files changed

Lines changed: 2667 additions & 2509 deletions

File tree

tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/AudioOps.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,6 @@ public EncodeWav encodeWav(Operand<TFloat32> audio, Operand<TInt32> sampleRate)
4545
return EncodeWav.create(scope, audio, sampleRate);
4646
}
4747

48-
/**
49-
* Builds an {@link Mfcc} operation
50-
*
51-
* @param spectrogram Typically produced by the Spectrogram op, with magnitude_squared
52-
* @param sampleRate How many samples per second the source audio used.
53-
* @param options carries optional attributes values
54-
* @return a new instance of Mfcc
55-
* @see org.tensorflow.op.audio.Mfcc
56-
*/
57-
public Mfcc mfcc(Operand<TFloat32> spectrogram, Operand<TInt32> sampleRate,
58-
Mfcc.Options... options) {
59-
return Mfcc.create(scope, spectrogram, sampleRate, options);
60-
}
61-
6248
/**
6349
* Builds an {@link AudioSpectrogram} operation
6450
*
@@ -73,4 +59,18 @@ public AudioSpectrogram audioSpectrogram(Operand<TFloat32> input, Long windowSiz
7359
AudioSpectrogram.Options... options) {
7460
return AudioSpectrogram.create(scope, input, windowSize, stride, options);
7561
}
62+
63+
/**
64+
* Builds an {@link Mfcc} operation
65+
*
66+
* @param spectrogram Typically produced by the Spectrogram op, with magnitude_squared
67+
* @param sampleRate How many samples per second the source audio used.
68+
* @param options carries optional attributes values
69+
* @return a new instance of Mfcc
70+
* @see org.tensorflow.op.audio.Mfcc
71+
*/
72+
public Mfcc mfcc(Operand<TFloat32> spectrogram, Operand<TInt32> sampleRate,
73+
Mfcc.Options... options) {
74+
return Mfcc.create(scope, spectrogram, sampleRate, options);
75+
}
7676
}

tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/DataOps.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,15 @@ public OptionalHasValue optionalHasValue(Operand<?> optional) {
8686
}
8787

8888
/**
89-
* Builds an {@link SerializeIterator} operation
89+
* Builds an {@link DeserializeIterator} operation
9090
*
9191
* @param resourceHandle A handle to an iterator resource.
92-
* @return a new instance of SerializeIterator
93-
* @see org.tensorflow.op.data.SerializeIterator
92+
* @param serialized A variant tensor storing the state of the iterator contained in the
93+
* @return a new instance of DeserializeIterator
94+
* @see org.tensorflow.op.data.DeserializeIterator
9495
*/
95-
public SerializeIterator serializeIterator(Operand<?> resourceHandle) {
96-
return SerializeIterator.create(scope, resourceHandle);
96+
public DeserializeIterator deserializeIterator(Operand<?> resourceHandle, Operand<?> serialized) {
97+
return DeserializeIterator.create(scope, resourceHandle, serialized);
9798
}
9899

99100
/**
@@ -109,15 +110,14 @@ public MakeIterator makeIterator(Operand<?> dataset, Operand<?> iterator) {
109110
}
110111

111112
/**
112-
* Builds an {@link DeserializeIterator} operation
113+
* Builds an {@link SerializeIterator} operation
113114
*
114115
* @param resourceHandle A handle to an iterator resource.
115-
* @param serialized A variant tensor storing the state of the iterator contained in the
116-
* @return a new instance of DeserializeIterator
117-
* @see org.tensorflow.op.data.DeserializeIterator
116+
* @return a new instance of SerializeIterator
117+
* @see org.tensorflow.op.data.SerializeIterator
118118
*/
119-
public DeserializeIterator deserializeIterator(Operand<?> resourceHandle, Operand<?> serialized) {
120-
return DeserializeIterator.create(scope, resourceHandle, serialized);
119+
public SerializeIterator serializeIterator(Operand<?> resourceHandle) {
120+
return SerializeIterator.create(scope, resourceHandle);
121121
}
122122

123123
/**

tensorflow-core/tensorflow-core-api/src/gen/annotations/org/tensorflow/op/ImageOps.java

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -196,20 +196,6 @@ public DecodePng<TUint8> decodePng(Operand<TString> contents, DecodePng.Options.
196196
return DecodePng.create(scope, contents, options);
197197
}
198198

199-
/**
200-
* Builds an {@link DecodeAndCropJpeg} operation
201-
*
202-
* @param contents 0-D. The JPEG-encoded image.
203-
* @param cropWindow 1-D. The crop window: [crop_y, crop_x, crop_height, crop_width].
204-
* @param options carries optional attributes values
205-
* @return a new instance of DecodeAndCropJpeg
206-
* @see org.tensorflow.op.image.DecodeAndCropJpeg
207-
*/
208-
public DecodeAndCropJpeg decodeAndCropJpeg(Operand<TString> contents, Operand<TInt32> cropWindow,
209-
DecodeAndCropJpeg.Options... options) {
210-
return DecodeAndCropJpeg.create(scope, contents, cropWindow, options);
211-
}
212-
213199
/**
214200
* Builds an {@link NonMaxSuppressionWithOverlaps} operation
215201
*
@@ -227,6 +213,20 @@ public NonMaxSuppressionWithOverlaps nonMaxSuppressionWithOverlaps(Operand<TFloa
227213
return NonMaxSuppressionWithOverlaps.create(scope, overlaps, scores, maxOutputSize, overlapThreshold, scoreThreshold);
228214
}
229215

216+
/**
217+
* Builds an {@link DecodeAndCropJpeg} operation
218+
*
219+
* @param contents 0-D. The JPEG-encoded image.
220+
* @param cropWindow 1-D. The crop window: [crop_y, crop_x, crop_height, crop_width].
221+
* @param options carries optional attributes values
222+
* @return a new instance of DecodeAndCropJpeg
223+
* @see org.tensorflow.op.image.DecodeAndCropJpeg
224+
*/
225+
public DecodeAndCropJpeg decodeAndCropJpeg(Operand<TString> contents, Operand<TInt32> cropWindow,
226+
DecodeAndCropJpeg.Options... options) {
227+
return DecodeAndCropJpeg.create(scope, contents, cropWindow, options);
228+
}
229+
230230
/**
231231
* Builds an {@link SampleDistortedBoundingBox} operation
232232
*
@@ -479,18 +479,6 @@ public DecodeJpeg decodeJpeg(Operand<TString> contents, DecodeJpeg.Options... op
479479
return DecodeJpeg.create(scope, contents, options);
480480
}
481481

482-
/**
483-
* Builds an {@link EncodeJpeg} operation
484-
*
485-
* @param image 3-D with shape `[height, width, channels]`.
486-
* @param options carries optional attributes values
487-
* @return a new instance of EncodeJpeg
488-
* @see org.tensorflow.op.image.EncodeJpeg
489-
*/
490-
public EncodeJpeg encodeJpeg(Operand<TUint8> image, EncodeJpeg.Options... options) {
491-
return EncodeJpeg.create(scope, image, options);
492-
}
493-
494482
/**
495483
* Builds an {@link ExtractGlimpse} operation
496484
*
@@ -506,6 +494,18 @@ public ExtractGlimpse extractGlimpse(Operand<TFloat32> input, Operand<TInt32> si
506494
return ExtractGlimpse.create(scope, input, size, offsets, options);
507495
}
508496

497+
/**
498+
* Builds an {@link EncodeJpeg} operation
499+
*
500+
* @param image 3-D with shape `[height, width, channels]`.
501+
* @param options carries optional attributes values
502+
* @return a new instance of EncodeJpeg
503+
* @see org.tensorflow.op.image.EncodeJpeg
504+
*/
505+
public EncodeJpeg encodeJpeg(Operand<TUint8> image, EncodeJpeg.Options... options) {
506+
return EncodeJpeg.create(scope, image, options);
507+
}
508+
509509
/**
510510
* Builds an {@link CropAndResize} operation
511511
*

0 commit comments

Comments
 (0)