Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit ee02db8

Browse files
committed
Minor API updates.
1 parent 78d2a13 commit ee02db8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rfcs/20191203-single-eager-graph-path.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ void TF_DeleteEagerContext(TF_EagerContext* c);
125125
int TF_EagerContextIsExecutingEagerly(TF_EagerContext* c);
126126
void TF_EagerContextEnterGraph(TF_EagerContext* c, TF_Graph* g);
127127
void TF_EagerContextExitGraph(TF_EagerContext* c, TF_Graph* g, TF_Status* s);
128+
// Cleans up captures and other graph metadata in the eager context.
129+
void TF_EagerContextDeleteGraph(TF_EagerContext* c, TF_Graph* g, TF_Status* s);
128130
129131
// A TF_TensorHandle is a union type of TFE_TensorHandle (eager tensor) and
130132
// TF_Output (graph tensor).
@@ -181,8 +183,8 @@ TF_TensorHandle* TF_OutputListOutput(TF_OutputList* o, int i);
181183
// A TF_AbstractOp is the metadata we need to execute an operation in either
182184
// eager or graph mode.
183185
typedef struct TF_AbstractOp TF_AbstractOp;
184-
TF_AbstractOp* TF_NewAbstractOp(TF_EagerContext* c, const char* const op_name,
185-
TF_Status* s);
186+
TF_AbstractOp* TF_NewAbstractOp(TF_EagerContext* c, const char* const op_type,
187+
const char* const op_name, TF_Status* s);
186188
void TF_DeleteAbstractOp(TF_AbstractOp* op);
187189
188190
// TODO: we need a way of specifying attrs

0 commit comments

Comments
 (0)