Skip to content

Commit bdb0420

Browse files
committed
First draft for saved model export API
1 parent 58b28ea commit bdb0420

File tree

6 files changed

+293
-242
lines changed

6 files changed

+293
-242
lines changed

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

Lines changed: 3 additions & 241 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@
177177
import org.tensorflow.op.core.SetDiff1d;
178178
import org.tensorflow.op.core.SetSize;
179179
import org.tensorflow.op.core.ShapeN;
180-
import org.tensorflow.op.core.ShapeOps;
181180
import org.tensorflow.op.core.Size;
182181
import org.tensorflow.op.core.Skipgram;
183182
import org.tensorflow.op.core.Slice;
@@ -337,10 +336,10 @@ public final class Ops {
337336

338337
public final SignalOps signal;
339338

340-
public final QuantizationOps quantization;
341-
342339
public final TrainOps train;
343340

341+
public final QuantizationOps quantization;
342+
344343
private final Scope scope;
345344

346345
private Ops(Scope scope) {
@@ -360,8 +359,8 @@ private Ops(Scope scope) {
360359
math = new MathOps(scope);
361360
audio = new AudioOps(scope);
362361
signal = new SignalOps(scope);
363-
quantization = new QuantizationOps(scope);
364362
train = new TrainOps(scope);
363+
quantization = new QuantizationOps(scope);
365364
}
366365

367366
/**
@@ -2298,58 +2297,6 @@ public <T extends TType> Fingerprint fingerprint(Operand<T> data, Operand<TStrin
22982297
return Fingerprint.create(scope, data, method);
22992298
}
23002299

2301-
/**
2302-
* Flatten the operand to 1 dimension
2303-
*
2304-
* @param <T> the type of operand
2305-
* @param scope current scope
2306-
* @param operand the operand to flatten
2307-
* @return the reshaped operand
2308-
*/
2309-
public <T extends TType> Operand<T> flatten(Operand<T> operand) {
2310-
return ShapeOps.flatten(scope, operand);
2311-
}
2312-
2313-
/**
2314-
* Flatten the shape to 1 dimension
2315-
*
2316-
* @param scope current scope
2317-
* @param shape the TensorFlow shape
2318-
* @return the flattened shape
2319-
*/
2320-
public Operand<TInt32> flatten(org.tensorflow.op.core.Shape<TInt32> shape) {
2321-
return ShapeOps.flatten(scope, shape);
2322-
}
2323-
2324-
/**
2325-
* Flatten the operand to 1 dimension
2326-
*
2327-
* @param <T> the type of operand
2328-
* @param <U> the shape datatype.
2329-
* @param scope current scope
2330-
* @param operand the operand to flatten
2331-
* @param dType the shape datatype.
2332-
* @return the reshaped operand
2333-
*/
2334-
public <T extends TType, U extends TNumber> Operand<T> flatten(Operand<T> operand,
2335-
DataType<U> dType) {
2336-
return ShapeOps.flatten(scope, operand, dType);
2337-
}
2338-
2339-
/**
2340-
* Flatten the shape to 1 dimension
2341-
*
2342-
* @param <U> the shape datatype.
2343-
* @param scope current scope
2344-
* @param shape the TensorFlow shape
2345-
* @param dType the shape datatype.
2346-
* @return the flattened shape
2347-
*/
2348-
public <U extends TNumber> Operand<U> flatten(org.tensorflow.op.core.Shape<U> shape,
2349-
DataType<U> dType) {
2350-
return ShapeOps.flatten(scope, shape, dType);
2351-
}
2352-
23532300
/**
23542301
* Gather slices from `params` axis `axis` according to `indices`.
23552302
* <p>
@@ -3380,31 +3327,6 @@ public NoOp noOp() {
33803327
return NoOp.create(scope);
33813328
}
33823329

3383-
/**
3384-
* Get the number of dimensions of the shape object
3385-
*
3386-
* @param scope current scope
3387-
* @param shape the shape
3388-
* @return the number of dimensions
3389-
*/
3390-
public Operand<TInt32> numDimensions(org.tensorflow.op.core.Shape<TInt32> shape) {
3391-
return ShapeOps.numDimensions(scope, shape);
3392-
}
3393-
3394-
/**
3395-
* Get the number of dimensions of the shape object
3396-
*
3397-
* @param <U> the shape datatype.
3398-
* @param scope the curren scope
3399-
* @param shape the shape
3400-
* @param dType the shape datatype.
3401-
* @return the number of dimensions
3402-
*/
3403-
public <U extends TNumber> Operand<U> numDimensions(org.tensorflow.op.core.Shape<U> shape,
3404-
DataType<U> dType) {
3405-
return ShapeOps.numDimensions(scope, shape, dType);
3406-
}
3407-
34083330
/**
34093331
* Returns a one-hot tensor.
34103332
* <p>
@@ -3936,63 +3858,6 @@ public <T extends TNumber> ReduceAny reduceAny(Operand<TBool> input, Operand<T>
39363858
return ReduceAny.create(scope, input, axis, options);
39373859
}
39383860

3939-
/**
3940-
* Reshapes the operand to the specified axis,
3941-
*
3942-
* @param <T> the type of Operand
3943-
* @param scope current scope
3944-
* @param operand the operand
3945-
* @param axis the axis
3946-
* @return the reshaped operand
3947-
*/
3948-
public <T extends TType> Operand<T> reduceDims(Operand<T> operand, Operand<TInt32> axis) {
3949-
return ShapeOps.reduceDims(scope, operand, axis);
3950-
}
3951-
3952-
/**
3953-
* Reduces the shape to the specified axis,
3954-
*
3955-
* @param scope current scope
3956-
* @param shape the TensorFlow shape
3957-
* @param axis the axis
3958-
* @return the reduced shape
3959-
*/
3960-
public Operand<TInt32> reduceDims(org.tensorflow.op.core.Shape<TInt32> shape,
3961-
Operand<TInt32> axis) {
3962-
return ShapeOps.reduceDims(scope, shape, axis);
3963-
}
3964-
3965-
/**
3966-
* Reshapes the operand to the specified axis,
3967-
*
3968-
* @param <T> the type of Operand
3969-
* @param <U> the shape datatype.
3970-
* @param scope current scope
3971-
* @param operand the operand
3972-
* @param axis the axis
3973-
* @param dType the shape datatype.
3974-
* @return the reshaped operand
3975-
*/
3976-
public <T extends TType, U extends TNumber> Operand<T> reduceDims(Operand<T> operand,
3977-
Operand<U> axis, DataType<U> dType) {
3978-
return ShapeOps.reduceDims(scope, operand, axis, dType);
3979-
}
3980-
3981-
/**
3982-
* Reduces the shape to the specified axis,
3983-
*
3984-
* @param <U> the shape datatype.
3985-
* @param scope current scope
3986-
* @param shape the TensorFlow shape
3987-
* @param axis the axis
3988-
* @param dType the shape datatype.
3989-
* @return the reduced shape
3990-
*/
3991-
public <U extends TNumber> Operand<U> reduceDims(org.tensorflow.op.core.Shape<U> shape,
3992-
Operand<U> axis, DataType<U> dType) {
3993-
return ShapeOps.reduceDims(scope, shape, axis, dType);
3994-
}
3995-
39963861
/**
39973862
* Computes the maximum of elements across dimensions of a tensor.
39983863
* <p>
@@ -5620,29 +5485,6 @@ public <T extends TType> Size<TInt32> size(Operand<T> input) {
56205485
return Size.create(scope, input);
56215486
}
56225487

5623-
/**
5624-
* Get the size represented by the TensorFlow shape
5625-
*
5626-
* @param scope current scope
5627-
* @param shape the TensorFlow shape
5628-
* @return the size
5629-
*/
5630-
public Operand<TInt32> size(org.tensorflow.op.core.Shape<TInt32> shape) {
5631-
return ShapeOps.size(scope, shape);
5632-
}
5633-
5634-
/**
5635-
* Get the size of the specified dimension for the shape of the tensor
5636-
*
5637-
* @param scope current scope
5638-
* @param input the operand
5639-
* @param dim the dimension
5640-
* @return the size of the specified dimension
5641-
*/
5642-
public Operand<TInt32> size(Operand input, Operand<TInt32> dim) {
5643-
return ShapeOps.size(scope, input, dim);
5644-
}
5645-
56465488
/**
56475489
* Returns the size of a tensor.
56485490
* <p>
@@ -5664,61 +5506,6 @@ public <U extends TNumber, T extends TType> Size<U> size(Operand<T> input, DataT
56645506
return Size.create(scope, input, outType);
56655507
}
56665508

5667-
/**
5668-
* Get the size represented by the TensorFlow shape
5669-
*
5670-
* @param <U> the shape datatype. the type of the shape
5671-
* @param scope current scope
5672-
* @param shape the TensorFlow shape
5673-
* @param dType the shape datatype.
5674-
* @return the size
5675-
*/
5676-
public <U extends TNumber> Operand<U> size(org.tensorflow.op.core.Shape<U> shape,
5677-
DataType<U> dType) {
5678-
return ShapeOps.size(scope, shape, dType);
5679-
}
5680-
5681-
/**
5682-
* Get the size of the specified dimension in the shape
5683-
*
5684-
* @param scope current scope
5685-
* @param shape the TensorFlow shape
5686-
* @param dim the dimension
5687-
* @return the size of the specified dimension
5688-
*/
5689-
public Operand<TInt32> size(org.tensorflow.op.core.Shape<TInt32> shape, Operand<TInt32> dim) {
5690-
return ShapeOps.size(scope, shape, dim);
5691-
}
5692-
5693-
/**
5694-
* Get the size of the specified dimension for the shape of the tensor
5695-
*
5696-
* @param <U> the shape datatype.
5697-
* @param scope current scope
5698-
* @param input the operand
5699-
* @param dim the dimension
5700-
* @param dType the shape datatype.
5701-
* @return the size of the specified dimension
5702-
*/
5703-
public <U extends TNumber> Operand<U> size(Operand input, Operand<U> dim, DataType<U> dType) {
5704-
return ShapeOps.size(scope, input, dim, dType);
5705-
}
5706-
5707-
/**
5708-
* Get the size of the specified dimension in the shape
5709-
*
5710-
* @param <U> the shape datatype.
5711-
* @param scope current scope
5712-
* @param shape the TensorFlow shape
5713-
* @param dim the dimension
5714-
* @param dType the shape datatype.
5715-
* @return the size of the specified dimension
5716-
*/
5717-
public <U extends TNumber> Operand<U> size(org.tensorflow.op.core.Shape<U> shape, Operand<U> dim,
5718-
DataType<U> dType) {
5719-
return ShapeOps.size(scope, shape, dim, dType);
5720-
}
5721-
57225509
/**
57235510
* Parses a text file and creates a batch of examples.
57245511
*
@@ -5915,17 +5702,6 @@ public <T extends TType, U extends TNumber> SplitV<T> splitV(Operand<T> value,
59155702
return SplitV.create(scope, value, sizeSplits, axis, numSplit);
59165703
}
59175704

5918-
/**
5919-
* Removes dimensions of size 1 from the shape
5920-
*
5921-
* @param scope current scope
5922-
* @param shape the TensorFlow shape
5923-
* @return the squeezed shape
5924-
*/
5925-
public Operand<TInt32> squeeze(org.tensorflow.op.core.Shape<TInt32> shape) {
5926-
return ShapeOps.squeeze(scope, shape);
5927-
}
5928-
59295705
/**
59305706
* Removes dimensions of size 1 from the shape of a tensor.
59315707
* <p>
@@ -5954,20 +5730,6 @@ public <T extends TType> Squeeze<T> squeeze(Operand<T> input, Squeeze.Options...
59545730
return Squeeze.create(scope, input, options);
59555731
}
59565732

5957-
/**
5958-
* Removes dimensions of size 1 from the shape
5959-
*
5960-
* @param <U> the shape datatype.
5961-
* @param scope current scope
5962-
* @param shape the TensorFlow shape
5963-
* @param dType the shape datatype.
5964-
* @return the squeezed shape
5965-
*/
5966-
public <U extends TNumber> Operand<U> squeeze(org.tensorflow.op.core.Shape<U> shape,
5967-
DataType<U> dType) {
5968-
return ShapeOps.squeeze(scope, shape, dType);
5969-
}
5970-
59715733
/**
59725734
* Packs a list of `N` rank-`R` tensors into one rank-`(R+1)` tensor.
59735735
* <p>

0 commit comments

Comments
 (0)