Skip to content

Commit 54535ab

Browse files
committed
Add and use ktlint
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
1 parent 0685287 commit 54535ab

File tree

28 files changed

+9689
-9525
lines changed

28 files changed

+9689
-9525
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[*.{kt,kts}]
2+
indent_size=4
3+
insert_final_newline=true
4+
max_line_length=120

tensorflow-core-kotlin/tensorflow-core-kotlin-api/pom.xml

Lines changed: 233 additions & 167 deletions
Large diffs are not rendered by default.

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

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -33,65 +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-
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-
)
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+
)
6161

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-
)
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+
)
7373

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

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-
)
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+
)
9797
}

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

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -33,49 +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>(
50-
x,
51-
y
52-
)
48+
public fun <T : TNumber> bitwiseAnd(x: Operand<T>, y: Operand<T>): BitwiseAnd<T> =
49+
java.bitwiseAnd<T>(
50+
x,
51+
y
52+
)
5353

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

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

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

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

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

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

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -31,42 +31,43 @@ 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-
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-
)
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+
}
71+
).toTypedArray()
72+
)
7273
}

0 commit comments

Comments
 (0)