Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@
public final class AudioOps {
private final Scope scope;

AudioOps(Scope scope) {
this.scope = scope;
private final Ops ops;

AudioOps(Ops ops) {
this.scope = ops.scope();
this.ops = ops;
}

/**
Expand Down Expand Up @@ -144,4 +147,11 @@ public Mfcc mfcc(Operand<TFloat32> spectrogram, Operand<TInt32> sampleRate,
Mfcc.Options... options) {
return Mfcc.create(scope, spectrogram, sampleRate, options);
}

/**
* Get the parent {@link Ops} object.
*/
public final Ops ops() {
return ops;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@
public final class BitwiseOps {
private final Scope scope;

BitwiseOps(Scope scope) {
this.scope = scope;
private final Ops ops;

BitwiseOps(Ops ops) {
this.scope = ops.scope();
this.ops = ops;
}

/**
Expand Down Expand Up @@ -268,4 +271,11 @@ public <T extends TNumber> LeftShift<T> leftShift(Operand<T> x, Operand<T> y) {
public <T extends TNumber> RightShift<T> rightShift(Operand<T> x, Operand<T> y) {
return RightShift.create(scope, x, y);
}

/**
* Get the parent {@link Ops} object.
*/
public final Ops ops() {
return ops;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@
public final class DataExperimentalOps {
private final Scope scope;

DataExperimentalOps(Scope scope) {
this.scope = scope;
private final Ops ops;

DataExperimentalOps(Ops ops) {
this.scope = ops.scope();
this.ops = ops;
}

/**
Expand All @@ -58,4 +61,11 @@ public DataServiceDataset dataServiceDataset(Operand<TInt64> datasetId,
DataServiceDataset.Options... options) {
return DataServiceDataset.create(scope, datasetId, processingMode, address, protocol, jobName, maxOutstandingRequests, iterationCounter, outputTypes, outputShapes, options);
}

/**
* Get the parent {@link Ops} object.
*/
public final Ops ops() {
return ops;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@ public final class DataOps {

private final Scope scope;

DataOps(Scope scope) {
this.scope = scope;
experimental = new DataExperimentalOps(scope);
private final Ops ops;

DataOps(Ops ops) {
this.scope = ops.scope();
this.ops = ops;
experimental = new DataExperimentalOps(ops);
}

/**
Expand Down Expand Up @@ -410,4 +413,11 @@ public ZipDataset zipDataset(Iterable<Operand<?>> inputDatasets, List<DataType<?
List<Shape> outputShapes) {
return ZipDataset.create(scope, inputDatasets, outputTypes, outputShapes);
}

/**
* Get the parent {@link Ops} object.
*/
public final Ops ops() {
return ops;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@
public final class DtypesOps {
private final Scope scope;

DtypesOps(Scope scope) {
this.scope = scope;
private final Ops ops;

DtypesOps(Ops ops) {
this.scope = ops.scope();
this.ops = ops;
}

/**
Expand Down Expand Up @@ -102,4 +105,11 @@ public <U extends TType, T extends TNumber> Complex<U> complex(Operand<T> real,
DataType<U> Tout) {
return Complex.create(scope, real, imag, Tout);
}

/**
* Get the parent {@link Ops} object.
*/
public final Ops ops() {
return ops;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@
public final class ImageOps {
private final Scope scope;

ImageOps(Scope scope) {
this.scope = scope;
private final Ops ops;

ImageOps(Ops ops) {
this.scope = ops.scope();
this.ops = ops;
}

/**
Expand Down Expand Up @@ -942,4 +945,11 @@ public <T extends TNumber> ScaleAndTranslate scaleAndTranslate(Operand<T> images
ScaleAndTranslate.Options... options) {
return ScaleAndTranslate.create(scope, images, size, scale, translation, options);
}

/**
* Get the parent {@link Ops} object.
*/
public final Ops ops() {
return ops;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@
public final class IoOps {
private final Scope scope;

IoOps(Scope scope) {
this.scope = scope;
private final Ops ops;

IoOps(Ops ops) {
this.scope = ops.scope();
this.ops = ops;
}

/**
Expand Down Expand Up @@ -1030,4 +1033,11 @@ public WholeFileReader wholeFileReader(WholeFileReader.Options... options) {
public WriteFile writeFile(Operand<TString> filename, Operand<TString> contents) {
return WriteFile.create(scope, filename, contents);
}

/**
* Get the parent {@link Ops} object.
*/
public final Ops ops() {
return ops;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@
public final class LinalgOps {
private final Scope scope;

LinalgOps(Scope scope) {
this.scope = scope;
private final Ops ops;

LinalgOps(Ops ops) {
this.scope = ops.scope();
this.ops = ops;
}

/**
Expand Down Expand Up @@ -1606,4 +1609,11 @@ public <T extends TType> TriangularSolve<T> triangularSolve(Operand<T> matrix, O
TriangularSolve.Options... options) {
return TriangularSolve.create(scope, matrix, rhs, options);
}

/**
* Get the parent {@link Ops} object.
*/
public final Ops ops() {
return ops;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,11 @@
public final class MathOps {
private final Scope scope;

MathOps(Scope scope) {
this.scope = scope;
private final Ops ops;

MathOps(Ops ops) {
this.scope = ops.scope();
this.ops = ops;
}

/**
Expand Down Expand Up @@ -2391,4 +2394,11 @@ public <T extends TType> Xlogy<T> xlogy(Operand<T> x, Operand<T> y) {
public <T extends TNumber> Zeta<T> zeta(Operand<T> x, Operand<T> q) {
return Zeta.create(scope, x, q);
}

/**
* Get the parent {@link Ops} object.
*/
public final Ops ops() {
return ops;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,12 @@ public final class NnOps {

private final Scope scope;

NnOps(Scope scope) {
this.scope = scope;
raw = new NnRawOps(scope);
private final Ops ops;

NnOps(Ops ops) {
this.scope = ops.scope();
this.ops = ops;
raw = new NnRawOps(ops);
}

/**
Expand Down Expand Up @@ -2148,4 +2151,11 @@ public <T extends TNumber> TopK<T> topK(Operand<T> input, Operand<TInt32> k,
TopK.Options... options) {
return TopK.create(scope, input, k, options);
}

/**
* Get the parent {@link Ops} object.
*/
public final Ops ops() {
return ops;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@
public final class NnRawOps {
private final Scope scope;

NnRawOps(Scope scope) {
this.scope = scope;
private final Ops ops;

NnRawOps(Ops ops) {
this.scope = ops.scope();
this.ops = ops;
}

/**
Expand Down Expand Up @@ -71,4 +74,11 @@ public <T extends TNumber, U extends TNumber> SparseSoftmaxCrossEntropyWithLogit
Operand<T> features, Operand<U> labels) {
return SparseSoftmaxCrossEntropyWithLogits.create(scope, features, labels);
}

/**
* Get the parent {@link Ops} object.
*/
public final Ops ops() {
return ops;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -347,33 +347,33 @@ public final class Ops {

public final SignalOps signal;

public final QuantizationOps quantization;

public final TrainOps train;

public final QuantizationOps quantization;

private final Scope scope;

private Ops(Scope scope) {
this.scope = scope;
nn = new NnOps(scope);
summary = new SummaryOps(scope);
image = new ImageOps(scope);
ragged = new RaggedOps(scope);
data = new DataOps(scope);
shape = new ShapeOps(scope);
io = new IoOps(scope);
dtypes = new DtypesOps(scope);
xla = new XlaOps(scope);
linalg = new LinalgOps(scope);
random = new RandomOps(scope);
strings = new StringsOps(scope);
sparse = new SparseOps(scope);
bitwise = new BitwiseOps(scope);
math = new MathOps(scope);
audio = new AudioOps(scope);
signal = new SignalOps(scope);
quantization = new QuantizationOps(scope);
train = new TrainOps(scope);
nn = new NnOps(this);
summary = new SummaryOps(this);
image = new ImageOps(this);
ragged = new RaggedOps(this);
data = new DataOps(this);
shape = new ShapeOps(this);
io = new IoOps(this);
dtypes = new DtypesOps(this);
xla = new XlaOps(this);
linalg = new LinalgOps(this);
random = new RandomOps(this);
strings = new StringsOps(this);
sparse = new SparseOps(this);
bitwise = new BitwiseOps(this);
math = new MathOps(this);
audio = new AudioOps(this);
signal = new SignalOps(this);
train = new TrainOps(this);
quantization = new QuantizationOps(this);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@
public final class QuantizationOps {
private final Scope scope;

QuantizationOps(Scope scope) {
this.scope = scope;
private final Ops ops;

QuantizationOps(Ops ops) {
this.scope = ops.scope();
this.ops = ops;
}

/**
Expand Down Expand Up @@ -628,4 +631,11 @@ public <U extends TType, T extends TType> Requantize<U> requantize(Operand<T> in
Operand<TFloat32> requestedOutputMax, DataType<U> outType) {
return Requantize.create(scope, input, inputMin, inputMax, requestedOutputMin, requestedOutputMax, outType);
}

/**
* Get the parent {@link Ops} object.
*/
public final Ops ops() {
return ops;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@
public final class RaggedOps {
private final Scope scope;

RaggedOps(Scope scope) {
this.scope = scope;
private final Ops ops;

RaggedOps(Ops ops) {
this.scope = ops.scope();
this.ops = ops;
}

/**
Expand Down Expand Up @@ -60,4 +63,11 @@ public <U extends TNumber, T extends TNumber> RaggedBincount<U> raggedBincount(
RaggedBincount.Options... options) {
return RaggedBincount.create(scope, splits, values, size, weights, options);
}

/**
* Get the parent {@link Ops} object.
*/
public final Ops ops() {
return ops;
}
}
Loading