tensorflow/c/experimental/ops/README.md
The C++ files in this directory (*_ops.h and *_ops.cc) are autogenerated from the registered Op and API definitions.
To regenerate them, run the script in this directory, update_cpp_ops.sh, with
no arguments. This script will overwrite the existing ops in-place at
tensorflow/c/experimental/ops/*_ops.{cc,h}.
Run this update_cpp_ops.sh script when Op definitions change in the registry.
To generate additional operators, extend the lists in this script. Note that
category names correspond to generated source file names, and should be
consistent with the original source files registering each operator. For example
since REGISTER_OP("MatMul") appears in core/math_ops.cc, the "MatMul"
operator in the script should be in the "math" category, and it will be
generated in the output file c/experimental/ops/math_ops.cc.
Running this script should be a no-op, generating identical code other than formatting (i.e., line wrapping).