Skip to content

Commit b38cc04

Browse files
authored
Use OP_NAME constant instead of hard coding (#328)
1 parent 031a0c1 commit b38cc04

File tree

1,259 files changed

+1447
-1433
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,259 files changed

+1447
-1433
lines changed

tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/audio/AudioSpectrogram.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private AudioSpectrogram(Operation operation) {
8484
)
8585
public static AudioSpectrogram create(Scope scope, Operand<TFloat32> input, Long windowSize,
8686
Long stride, Options... options) {
87-
OperationBuilder opBuilder = scope.env().opBuilder("AudioSpectrogram", scope.makeOpName("AudioSpectrogram"));
87+
OperationBuilder opBuilder = scope.env().opBuilder(OP_NAME, scope.makeOpName("AudioSpectrogram"));
8888
opBuilder.addInput(input.asOutput());
8989
opBuilder = scope.apply(opBuilder);
9090
opBuilder.setAttr("window_size", windowSize);

tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/audio/DecodeWav.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private DecodeWav(Operation operation) {
7575
describeByClass = true
7676
)
7777
public static DecodeWav create(Scope scope, Operand<TString> contents, Options... options) {
78-
OperationBuilder opBuilder = scope.env().opBuilder("DecodeWav", scope.makeOpName("DecodeWav"));
78+
OperationBuilder opBuilder = scope.env().opBuilder(OP_NAME, scope.makeOpName("DecodeWav"));
7979
opBuilder.addInput(contents.asOutput());
8080
opBuilder = scope.apply(opBuilder);
8181
if (options != null) {

tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/audio/EncodeWav.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private EncodeWav(Operation operation) {
6767
describeByClass = true
6868
)
6969
public static EncodeWav create(Scope scope, Operand<TFloat32> audio, Operand<TInt32> sampleRate) {
70-
OperationBuilder opBuilder = scope.env().opBuilder("EncodeWav", scope.makeOpName("EncodeWav"));
70+
OperationBuilder opBuilder = scope.env().opBuilder(OP_NAME, scope.makeOpName("EncodeWav"));
7171
opBuilder.addInput(audio.asOutput());
7272
opBuilder.addInput(sampleRate.asOutput());
7373
opBuilder = scope.apply(opBuilder);

tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/audio/Mfcc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private Mfcc(Operation operation) {
6969
)
7070
public static Mfcc create(Scope scope, Operand<TFloat32> spectrogram, Operand<TInt32> sampleRate,
7171
Options... options) {
72-
OperationBuilder opBuilder = scope.env().opBuilder("Mfcc", scope.makeOpName("Mfcc"));
72+
OperationBuilder opBuilder = scope.env().opBuilder(OP_NAME, scope.makeOpName("Mfcc"));
7373
opBuilder.addInput(spectrogram.asOutput());
7474
opBuilder.addInput(sampleRate.asOutput());
7575
opBuilder = scope.apply(opBuilder);

tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/BitwiseAnd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private BitwiseAnd(Operation operation) {
7979
describeByClass = true
8080
)
8181
public static <T extends TNumber> BitwiseAnd<T> create(Scope scope, Operand<T> x, Operand<T> y) {
82-
OperationBuilder opBuilder = scope.env().opBuilder("BitwiseAnd", scope.makeOpName("BitwiseAnd"));
82+
OperationBuilder opBuilder = scope.env().opBuilder(OP_NAME, scope.makeOpName("BitwiseAnd"));
8383
opBuilder.addInput(x.asOutput());
8484
opBuilder.addInput(y.asOutput());
8585
opBuilder = scope.apply(opBuilder);

tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/BitwiseOr.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private BitwiseOr(Operation operation) {
7979
describeByClass = true
8080
)
8181
public static <T extends TNumber> BitwiseOr<T> create(Scope scope, Operand<T> x, Operand<T> y) {
82-
OperationBuilder opBuilder = scope.env().opBuilder("BitwiseOr", scope.makeOpName("BitwiseOr"));
82+
OperationBuilder opBuilder = scope.env().opBuilder(OP_NAME, scope.makeOpName("BitwiseOr"));
8383
opBuilder.addInput(x.asOutput());
8484
opBuilder.addInput(y.asOutput());
8585
opBuilder = scope.apply(opBuilder);

tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/BitwiseXor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private BitwiseXor(Operation operation) {
7979
describeByClass = true
8080
)
8181
public static <T extends TNumber> BitwiseXor<T> create(Scope scope, Operand<T> x, Operand<T> y) {
82-
OperationBuilder opBuilder = scope.env().opBuilder("BitwiseXor", scope.makeOpName("BitwiseXor"));
82+
OperationBuilder opBuilder = scope.env().opBuilder(OP_NAME, scope.makeOpName("BitwiseXor"));
8383
opBuilder.addInput(x.asOutput());
8484
opBuilder.addInput(y.asOutput());
8585
opBuilder = scope.apply(opBuilder);

tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/Invert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private Invert(Operation operation) {
9999
describeByClass = true
100100
)
101101
public static <T extends TNumber> Invert<T> create(Scope scope, Operand<T> x) {
102-
OperationBuilder opBuilder = scope.env().opBuilder("Invert", scope.makeOpName("Invert"));
102+
OperationBuilder opBuilder = scope.env().opBuilder(OP_NAME, scope.makeOpName("Invert"));
103103
opBuilder.addInput(x.asOutput());
104104
opBuilder = scope.apply(opBuilder);
105105
return new Invert<>(opBuilder.build());

tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/LeftShift.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private LeftShift(Operation operation) {
9090
describeByClass = true
9191
)
9292
public static <T extends TNumber> LeftShift<T> create(Scope scope, Operand<T> x, Operand<T> y) {
93-
OperationBuilder opBuilder = scope.env().opBuilder("LeftShift", scope.makeOpName("LeftShift"));
93+
OperationBuilder opBuilder = scope.env().opBuilder(OP_NAME, scope.makeOpName("LeftShift"));
9494
opBuilder.addInput(x.asOutput());
9595
opBuilder.addInput(y.asOutput());
9696
opBuilder = scope.apply(opBuilder);

tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/bitwise/RightShift.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private RightShift(Operation operation) {
9292
describeByClass = true
9393
)
9494
public static <T extends TNumber> RightShift<T> create(Scope scope, Operand<T> x, Operand<T> y) {
95-
OperationBuilder opBuilder = scope.env().opBuilder("RightShift", scope.makeOpName("RightShift"));
95+
OperationBuilder opBuilder = scope.env().opBuilder(OP_NAME, scope.makeOpName("RightShift"));
9696
opBuilder.addInput(x.asOutput());
9797
opBuilder.addInput(y.asOutput());
9898
opBuilder = scope.apply(opBuilder);

0 commit comments

Comments
 (0)