You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Google's C++ style guide](https://google.github.io/styleguide/cppguide.html) should also be used for C++ code.
39
39
40
+
### Code generation
41
+
42
+
Code generation for `Ops` and related classes is done during `tensorflow-core-api`'s `install`, using the annotation processor in
43
+
`tensorflow-core-generator`. If you change or add any operator classes (annotated with `org.tensorflow.op.annotation.Operator`),
44
+
endpoint methods (annotated with `org.tensorflow.op.annotation.Endpoint`), or change the annotation processor, be sure to re-run a
45
+
full `mvn install` in `tensorflow-core-api`.
46
+
40
47
### Working with Bazel generation
41
48
42
-
`tensorflow-core-api` uses C++ code generation that is built with Bazel. To get it to build, you will likely need to clone the
43
-
`tensorflow` project, run its configuration script (`./configure`), and copy the resulting `.tf_configure.bazelrc` to `tensorflow-core-api`.
49
+
`tensorflow-core-api` uses Bazel-built C++ code generation to generate most of the `@Operator` classes. To get it to build, you will likely need to
50
+
clone the [tensorflow](https://github.com/tensorflow/tensorflow) project, run its configuration script (`./configure`), and copy the resulting
51
+
`.tf_configure.bazelrc` to `tensorflow-core-api`.
44
52
45
53
To run the code generation, use the `//:java_op_generator` target. The resulting binary has good help text (viewable in
0 commit comments