Tensorflow Generate "ops_to_register.h" Without Graph #67960
Labels
comp:ops
OPs related issues
subtype:windows
Windows Build/Installation Issues
TF 2.16
type:build/install
Build and install issues
Issue type
Build/Install
Have you reproduced the bug with TensorFlow Nightly?
No
Source
source
TensorFlow version
tf.2.16.1
Custom code
No
OS platform and distribution
Windows 11 x64
Mobile device
No response
Python version
3.13
Bazel version
6.5.0
GCC/compiler version
MSVC 19.39.33520 for x64
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
I'm trying to build tensorflow as a static library. When I create the root scope it tells me that I didn't register any operators or kernels. Specifically the "NoOp" is required.
I've read that with the tool "tensorflow/python/tools/print_selective_registration_header" I can generate the missing header file "ops_to_register.h" which registers all operators and kernels when I build the C++API again with the flag --cxxopt=”-DSELECTIVE_REGISTRATION”.
But I need a graph definition in order to produce the header file. I don't have a graph since I want to build my model in C++ instead. What can I do to register all operators and kernels. (I don't care about file size!)
Standalone code to reproduce the issue
Relevant log output
No response
The text was updated successfully, but these errors were encountered: