Skip to content

Commit 0685287

Browse files
committed
default parameters
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
1 parent 90288a0 commit 0685287

File tree

23 files changed

+10021
-5128
lines changed

23 files changed

+10021
-5128
lines changed

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

Lines changed: 55 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,34 +33,65 @@ import org.tensorflow.types.TString
3333
* @see {@link org.tensorflow.op.Ops}
3434
*/
3535
public class AudioOps(
36-
/**
37-
* Get the parent {@link KotlinOps} object.
38-
*/
39-
public val ops: KotlinOps
36+
/**
37+
* Get the parent {@link KotlinOps} object.
38+
*/
39+
public val ops: KotlinOps
4040
) {
41-
public val java: org.tensorflow.op.AudioOps = ops.java.audio
41+
public val java: org.tensorflow.op.AudioOps = ops.java.audio
4242

43-
/**
44-
* Returns the current {@link Scope scope} of this API
45-
*/
46-
public val scope: Scope = ops.scope
43+
/**
44+
* Returns the current {@link Scope scope} of this API
45+
*/
46+
public val scope: Scope = ops.scope
4747

48-
public fun audioSpectrogram(
49-
input: Operand<TFloat32>,
50-
windowSize: Long,
51-
stride: Long,
52-
vararg options: AudioSpectrogram.Options
53-
): AudioSpectrogram = java.audioSpectrogram(input, windowSize, stride, *options)
48+
public fun audioSpectrogram(
49+
input: Operand<TFloat32>,
50+
windowSize: Long,
51+
stride: Long,
52+
magnitudeSquared: Boolean? = null
53+
): AudioSpectrogram = java.audioSpectrogram(
54+
input,
55+
windowSize,
56+
stride,
57+
*listOfNotNull(
58+
magnitudeSquared?.let{ org.tensorflow.op.audio.AudioSpectrogram.magnitudeSquared(it) }
59+
).toTypedArray()
60+
)
5461

55-
public fun decodeWav(contents: Operand<TString>, vararg options: DecodeWav.Options): DecodeWav =
56-
java.decodeWav(contents, *options)
62+
public fun decodeWav(
63+
contents: Operand<TString>,
64+
desiredChannels: Long? = null,
65+
desiredSamples: Long? = null
66+
): DecodeWav = java.decodeWav(
67+
contents,
68+
*listOfNotNull(
69+
desiredChannels?.let{ org.tensorflow.op.audio.DecodeWav.desiredChannels(it) },
70+
desiredSamples?.let{ org.tensorflow.op.audio.DecodeWav.desiredSamples(it) }
71+
).toTypedArray()
72+
)
5773

58-
public fun encodeWav(audio: Operand<TFloat32>, sampleRate: Operand<TInt32>): EncodeWav =
59-
java.encodeWav(audio, sampleRate)
74+
public fun encodeWav(audio: Operand<TFloat32>, sampleRate: Operand<TInt32>): EncodeWav =
75+
java.encodeWav(
76+
audio,
77+
sampleRate
78+
)
6079

61-
public fun mfcc(
62-
spectrogram: Operand<TFloat32>,
63-
sampleRate: Operand<TInt32>,
64-
vararg options: Mfcc.Options
65-
): Mfcc = java.mfcc(spectrogram, sampleRate, *options)
80+
public fun mfcc(
81+
spectrogram: Operand<TFloat32>,
82+
sampleRate: Operand<TInt32>,
83+
upperFrequencyLimit: Float? = null,
84+
lowerFrequencyLimit: Float? = null,
85+
filterbankChannelCount: Long? = null,
86+
dctCoefficientCount: Long? = null
87+
): Mfcc = java.mfcc(
88+
spectrogram,
89+
sampleRate,
90+
*listOfNotNull(
91+
upperFrequencyLimit?.let{ org.tensorflow.op.audio.Mfcc.upperFrequencyLimit(it) },
92+
lowerFrequencyLimit?.let{ org.tensorflow.op.audio.Mfcc.lowerFrequencyLimit(it) },
93+
filterbankChannelCount?.let{ org.tensorflow.op.audio.Mfcc.filterbankChannelCount(it) },
94+
dctCoefficientCount?.let{ org.tensorflow.op.audio.Mfcc.dctCoefficientCount(it) }
95+
).toTypedArray()
96+
)
6697
}

tensorflow-core-kotlin/tensorflow-core-kotlin-api/src/gen/annotations/org/tensorflow/op/kotlin/BitwiseOps.kt

Lines changed: 37 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,32 +33,49 @@ import org.tensorflow.types.family.TNumber
3333
* @see {@link org.tensorflow.op.Ops}
3434
*/
3535
public class BitwiseOps(
36-
/**
37-
* Get the parent {@link KotlinOps} object.
38-
*/
39-
public val ops: KotlinOps
36+
/**
37+
* Get the parent {@link KotlinOps} object.
38+
*/
39+
public val ops: KotlinOps
4040
) {
41-
public val java: org.tensorflow.op.BitwiseOps = ops.java.bitwise
41+
public val java: org.tensorflow.op.BitwiseOps = ops.java.bitwise
4242

43-
/**
44-
* Returns the current {@link Scope scope} of this API
45-
*/
46-
public val scope: Scope = ops.scope
43+
/**
44+
* Returns the current {@link Scope scope} of this API
45+
*/
46+
public val scope: Scope = ops.scope
4747

48-
public fun <T : TNumber> bitwiseAnd(x: Operand<T>, y: Operand<T>): BitwiseAnd<T> =
49-
java.bitwiseAnd<T>(x, y)
48+
public fun <T : TNumber> bitwiseAnd(x: Operand<T>, y: Operand<T>): BitwiseAnd<T> =
49+
java.bitwiseAnd<T>(
50+
x,
51+
y
52+
)
5053

51-
public fun <T : TNumber> bitwiseOr(x: Operand<T>, y: Operand<T>): BitwiseOr<T> =
52-
java.bitwiseOr<T>(x, y)
54+
public fun <T : TNumber> bitwiseOr(x: Operand<T>, y: Operand<T>): BitwiseOr<T> =
55+
java.bitwiseOr<T>(
56+
x,
57+
y
58+
)
5359

54-
public fun <T : TNumber> bitwiseXor(x: Operand<T>, y: Operand<T>): BitwiseXor<T> =
55-
java.bitwiseXor<T>(x, y)
60+
public fun <T : TNumber> bitwiseXor(x: Operand<T>, y: Operand<T>): BitwiseXor<T> =
61+
java.bitwiseXor<T>(
62+
x,
63+
y
64+
)
5665

57-
public fun <T : TNumber> invert(x: Operand<T>): Invert<T> = java.invert<T>(x)
66+
public fun <T : TNumber> invert(x: Operand<T>): Invert<T> = java.invert<T>(
67+
x
68+
)
5869

59-
public fun <T : TNumber> leftShift(x: Operand<T>, y: Operand<T>): LeftShift<T> =
60-
java.leftShift<T>(x, y)
70+
public fun <T : TNumber> leftShift(x: Operand<T>, y: Operand<T>): LeftShift<T> =
71+
java.leftShift<T>(
72+
x,
73+
y
74+
)
6175

62-
public fun <T : TNumber> rightShift(x: Operand<T>, y: Operand<T>): RightShift<T> =
63-
java.rightShift<T>(x, y)
76+
public fun <T : TNumber> rightShift(x: Operand<T>, y: Operand<T>): RightShift<T> =
77+
java.rightShift<T>(
78+
x,
79+
y
80+
)
6481
}

tensorflow-core-kotlin/tensorflow-core-kotlin-api/src/gen/annotations/org/tensorflow/op/kotlin/DataExperimentalOps.kt

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,42 @@ import org.tensorflow.types.TString
3131
* @see {@link org.tensorflow.op.Ops}
3232
*/
3333
public class DataExperimentalOps(
34-
/**
35-
* Get the parent {@link KotlinOps} object.
36-
*/
37-
public val ops: KotlinOps
34+
/**
35+
* Get the parent {@link KotlinOps} object.
36+
*/
37+
public val ops: KotlinOps
3838
) {
39-
public val java: org.tensorflow.op.DataExperimentalOps = ops.java.data.experimental
39+
public val java: org.tensorflow.op.DataExperimentalOps = ops.java.data.experimental
4040

41-
/**
42-
* Returns the current {@link Scope scope} of this API
43-
*/
44-
public val scope: Scope = ops.scope
41+
/**
42+
* Returns the current {@link Scope scope} of this API
43+
*/
44+
public val scope: Scope = ops.scope
4545

46-
public fun dataServiceDataset(
47-
datasetId: Operand<TInt64>,
48-
processingMode: Operand<TString>,
49-
address: Operand<TString>,
50-
protocol: Operand<TString>,
51-
jobName: Operand<TString>,
52-
maxOutstandingRequests: Operand<TInt64>,
53-
iterationCounter: Operand<*>,
54-
outputTypes: List<DataType<*>>,
55-
outputShapes: List<Shape>,
56-
vararg options: DataServiceDataset.Options
57-
): DataServiceDataset = java.dataServiceDataset(datasetId, processingMode, address, protocol,
58-
jobName, maxOutstandingRequests, iterationCounter, outputTypes, outputShapes, *options)
46+
public fun dataServiceDataset(
47+
datasetId: Operand<TInt64>,
48+
processingMode: Operand<TString>,
49+
address: Operand<TString>,
50+
protocol: Operand<TString>,
51+
jobName: Operand<TString>,
52+
maxOutstandingRequests: Operand<TInt64>,
53+
iterationCounter: Operand<*>,
54+
outputTypes: List<DataType<*>>,
55+
outputShapes: List<Shape>,
56+
taskRefreshIntervalHintMs: Long? = null
57+
): DataServiceDataset = java.dataServiceDataset(
58+
datasetId,
59+
processingMode,
60+
address,
61+
protocol,
62+
jobName,
63+
maxOutstandingRequests,
64+
iterationCounter,
65+
outputTypes,
66+
outputShapes,
67+
*listOfNotNull(
68+
taskRefreshIntervalHintMs?.let{
69+
org.tensorflow.op.data.experimental.DataServiceDataset.taskRefreshIntervalHintMs(it) }
70+
).toTypedArray()
71+
)
5972
}

0 commit comments

Comments
 (0)