Skip to content

Commit 1ed0df8

Browse files
committed
Regenerate
Signed-off-by: Ryan Nett <rnett@calpoly.edu>
1 parent f6c0480 commit 1ed0df8

File tree

8 files changed

+2710
-3481
lines changed

8 files changed

+2710
-3481
lines changed

tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/GradFunc.java

Lines changed: 15 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,24 @@
22

33
package org.tensorflow.internal.c_api;
44

5-
import org.bytedeco.javacpp.FunctionPointer;
6-
import org.bytedeco.javacpp.Loader;
7-
import org.bytedeco.javacpp.Pointer;
8-
import org.bytedeco.javacpp.annotation.ByRef;
9-
import org.bytedeco.javacpp.annotation.ByVal;
10-
import org.bytedeco.javacpp.annotation.Const;
11-
import org.bytedeco.javacpp.annotation.Properties;
12-
import org.bytedeco.javacpp.annotation.StdMove;
5+
import java.nio.*;
6+
import org.bytedeco.javacpp.*;
7+
import org.bytedeco.javacpp.annotation.*;
138

9+
import static org.tensorflow.internal.c_api.global.tensorflow.*;
1410

15-
/**
16-
* GradFunc is the signature for all gradient functions in GradOpRegistry. Implementations should
17-
* add operations to compute the gradient outputs of 'op' (returned in 'grad_outputs') using 'scope'
18-
* and 'grad_inputs'.
19-
*/
11+
12+
/** GradFunc is the signature for all gradient functions in GradOpRegistry.
13+
* Implementations should add operations to compute the gradient outputs of
14+
* 'op' (returned in 'grad_outputs') using 'scope' and 'grad_inputs'. */
2015
@Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class)
2116
public class GradFunc extends FunctionPointer {
22-
23-
static {
24-
Loader.load();
25-
}
26-
27-
/**
28-
* Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}.
29-
*/
30-
public GradFunc(Pointer p) {
31-
super(p);
32-
}
33-
34-
protected GradFunc() {
35-
allocate();
36-
}
37-
17+
static { Loader.load(); }
18+
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
19+
public GradFunc(Pointer p) { super(p); }
20+
protected GradFunc() { allocate(); }
3821
private native void allocate();
39-
40-
public native @ByVal
41-
NativeStatus call(@Const @ByRef TF_Scope scope, @Const @ByRef NativeOperation op,
42-
@StdMove NativeOutputVector grad_inputs,
43-
NativeOutputVector grad_outputs);
22+
public native @ByVal NativeStatus call(@Const @ByRef TF_Scope scope, @Const @ByRef NativeOperation op,
23+
NativeOutputVector grad_inputs,
24+
NativeOutputVector grad_outputs);
4425
}

tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeOperation.java

Lines changed: 34 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -2,76 +2,48 @@
22

33
package org.tensorflow.internal.c_api;
44

5-
import org.bytedeco.javacpp.Loader;
6-
import org.bytedeco.javacpp.Pointer;
7-
import org.bytedeco.javacpp.annotation.ByRef;
8-
import org.bytedeco.javacpp.annotation.Cast;
9-
import org.bytedeco.javacpp.annotation.Const;
10-
import org.bytedeco.javacpp.annotation.Name;
11-
import org.bytedeco.javacpp.annotation.NoOffset;
12-
import org.bytedeco.javacpp.annotation.Properties;
5+
import java.nio.*;
6+
import org.bytedeco.javacpp.*;
7+
import org.bytedeco.javacpp.annotation.*;
138

9+
import static org.tensorflow.internal.c_api.global.tensorflow.*;
1410

15-
/**
16-
* \addtogroup core \{
17-
* <p>
18-
* Represents a node in the computation graph.
19-
*/
20-
@Name("tensorflow::Operation")
21-
@NoOffset
22-
@Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class)
23-
public class NativeOperation extends Pointer {
24-
25-
static {
26-
Loader.load();
27-
}
28-
29-
/**
30-
* Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}.
31-
*/
32-
public NativeOperation(Pointer p) {
33-
super(p);
34-
}
35-
36-
/**
37-
* Native array allocator. Access with {@link Pointer#position(long)}.
38-
*/
39-
public NativeOperation(long size) {
40-
super((Pointer) null);
41-
allocateArray(size);
42-
}
43-
44-
private native void allocateArray(long size);
45-
46-
@Override
47-
public NativeOperation position(long position) {
48-
return (NativeOperation) super.position(position);
49-
}
50-
51-
@Override
52-
public NativeOperation getPointer(long i) {
53-
return new NativeOperation((Pointer) this).position(position + i);
54-
}
55-
56-
public NativeOperation() {
57-
super((Pointer) null);
58-
allocate();
59-
}
6011

12+
/** \addtogroup core
13+
* \{
14+
<p>
15+
* Represents a node in the computation graph. */
16+
@Name("tensorflow::Operation") @NoOffset @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class)
17+
public class NativeOperation extends Pointer {
18+
static { Loader.load(); }
19+
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
20+
public NativeOperation(Pointer p) { super(p); }
21+
/** Native array allocator. Access with {@link Pointer#position(long)}. */
22+
public NativeOperation(long size) { super((Pointer)null); allocateArray(size); }
23+
private native void allocateArray(long size);
24+
@Override public NativeOperation position(long position) {
25+
return (NativeOperation)super.position(position);
26+
}
27+
@Override public NativeOperation getPointer(long i) {
28+
return new NativeOperation((Pointer)this).position(position + i);
29+
}
30+
31+
public NativeOperation() { super((Pointer)null); allocate(); }
6132
private native void allocate();
62-
63-
public NativeOperation(Node n) {
64-
super((Pointer) null);
65-
allocate(n);
66-
}
67-
33+
public NativeOperation(Node n) { super((Pointer)null); allocate(n); }
6834
private native void allocate(Node n);
6935

36+
37+
38+
39+
40+
41+
42+
7043

7144
public native Node node();
7245

46+
7347

74-
public native @Cast("bool")
75-
@Name("operator ==")
76-
boolean equals(@Const @ByRef NativeOperation other);
48+
public native @Cast("bool") @Name("operator ==") boolean equals(@Const @ByRef NativeOperation other);
7749
}

tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/internal/c_api/NativeOutput.java

Lines changed: 31 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -2,101 +2,44 @@
22

33
package org.tensorflow.internal.c_api;
44

5-
import org.bytedeco.javacpp.BytePointer;
6-
import org.bytedeco.javacpp.Loader;
7-
import org.bytedeco.javacpp.Pointer;
8-
import org.bytedeco.javacpp.annotation.ByRef;
9-
import org.bytedeco.javacpp.annotation.ByVal;
10-
import org.bytedeco.javacpp.annotation.Cast;
11-
import org.bytedeco.javacpp.annotation.Const;
12-
import org.bytedeco.javacpp.annotation.Name;
13-
import org.bytedeco.javacpp.annotation.NoOffset;
14-
import org.bytedeco.javacpp.annotation.Properties;
15-
import org.bytedeco.javacpp.annotation.StdString;
5+
import java.nio.*;
6+
import org.bytedeco.javacpp.*;
7+
import org.bytedeco.javacpp.annotation.*;
168

9+
import static org.tensorflow.internal.c_api.global.tensorflow.*;
1710

18-
/**
19-
* Represents a tensor value produced by an Operation.
20-
*/
21-
@Name("tensorflow::Output")
22-
@NoOffset
23-
@Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class)
24-
public class NativeOutput extends Pointer {
25-
26-
static {
27-
Loader.load();
28-
}
29-
30-
/**
31-
* Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}.
32-
*/
33-
public NativeOutput(Pointer p) {
34-
super(p);
35-
}
36-
37-
/**
38-
* Native array allocator. Access with {@link Pointer#position(long)}.
39-
*/
40-
public NativeOutput(long size) {
41-
super((Pointer) null);
42-
allocateArray(size);
43-
}
44-
45-
private native void allocateArray(long size);
46-
47-
@Override
48-
public NativeOutput position(long position) {
49-
return (NativeOutput) super.position(position);
50-
}
51-
52-
@Override
53-
public NativeOutput getPointer(long i) {
54-
return new NativeOutput((Pointer) this).position(position + i);
55-
}
56-
57-
public NativeOutput() {
58-
super((Pointer) null);
59-
allocate();
60-
}
6111

12+
/** Represents a tensor value produced by an Operation. */
13+
@Name("tensorflow::Output") @NoOffset @Properties(inherit = org.tensorflow.internal.c_api.presets.tensorflow.class)
14+
public class NativeOutput extends Pointer {
15+
static { Loader.load(); }
16+
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
17+
public NativeOutput(Pointer p) { super(p); }
18+
/** Native array allocator. Access with {@link Pointer#position(long)}. */
19+
public NativeOutput(long size) { super((Pointer)null); allocateArray(size); }
20+
private native void allocateArray(long size);
21+
@Override public NativeOutput position(long position) {
22+
return (NativeOutput)super.position(position);
23+
}
24+
@Override public NativeOutput getPointer(long i) {
25+
return new NativeOutput((Pointer)this).position(position + i);
26+
}
27+
28+
public NativeOutput() { super((Pointer)null); allocate(); }
6229
private native void allocate();
63-
64-
public NativeOutput(Node n) {
65-
super((Pointer) null);
66-
allocate(n);
67-
}
68-
30+
public NativeOutput(Node n) { super((Pointer)null); allocate(n); }
6931
private native void allocate(Node n);
70-
71-
public NativeOutput(Node n, @Cast("tensorflow::int32") int index) {
72-
super((Pointer) null);
73-
allocate(n, index);
74-
}
75-
32+
public NativeOutput(Node n, @Cast("tensorflow::int32") int index) { super((Pointer)null); allocate(n, index); }
7633
private native void allocate(Node n, @Cast("tensorflow::int32") int index);
34+
public NativeOutput(@Const @ByRef NativeOperation op, @Cast("tensorflow::int32") int index) { super((Pointer)null); allocate(op, index); }
35+
private native void allocate(@Const @ByRef NativeOperation op, @Cast("tensorflow::int32") int index);
7736

78-
public NativeOutput(@Const @ByRef NativeOperation op, @Cast("tensorflow::int32") int index) {
79-
super((Pointer) null);
80-
allocate(op, index);
81-
}
82-
83-
private native void allocate(@Const @ByRef NativeOperation op,
84-
@Cast("tensorflow::int32") int index);
85-
86-
public native @ByVal
87-
NativeOperation op();
88-
37+
public native @ByVal NativeOperation op();
8938
public native Node node();
39+
public native @Cast("tensorflow::int32") int index();
40+
41+
public native @StdString BytePointer name();
42+
public native @Cast("bool") @Name("operator ==") boolean equals(@Const @ByRef NativeOutput other);
9043

91-
public native @Cast("tensorflow::int32")
92-
int index();
93-
94-
public native @StdString
95-
BytePointer name();
96-
97-
public native @Cast("bool")
98-
@Name("operator ==")
99-
boolean equals(@Const @ByRef NativeOutput other);
100-
101-
44+
10245
}

0 commit comments

Comments
 (0)