Anyway to set the attr of operation after added to the gragh in C API? #60284
Labels
comp:apis
Highlevel API related issues
stat:awaiting tensorflower
Status - Awaiting response from tensorflower
TF 2.11
Issues related to TF 2.11
type:support
Support issues
Click to expand!
Issue Type
Support
Have you reproduced the bug with TF nightly?
No
Source
binary
Tensorflow Version
tf2.11
Custom Code
No
OS Platform and Distribution
Windows and Linux
Current Behaviour?
Hello, I'm a developer of Tensorflow.NET, which is a tensorflow binding for dotnet. When I implemented some feature, I could not find a C API to add attributes to an operation that has already been created and added to the graph. However, there is indeed such C API for python. It's located here.
Among exported C APIs of
libtensorflow
, only the following API was found:However,
TF_OperationDescription
is released after adding the operation to graph by callingTF_FinishOperation
. Therefore I can't use the API to add attributes.Is there any other way for us to add attributes for operations which have been added to graph?
Standalone code to reproduce the issue
Relevant log output
No response
The text was updated successfully, but these errors were encountered: