diff options
author | 2016-11-07 16:18:59 -0800 | |
---|---|---|
committer | 2016-11-08 16:12:46 -0800 | |
commit | fdd94f24e9ebfe58bd967a8c2c7b8985c03ff80b (patch) | |
tree | 35bcc4d50e128fdce07266b8f0238f5da0bed2be /tensorflow/c/c_api_test.cc | |
parent | fd05b5ebc56316eb6ac9fcb74234979fee2fc5f9 (diff) |
C API: Rename TF_Session to TF_DeprecatedSession.
This is one step towards having a stable C API by the time we get to TensorFlow
1.0. A follow-up step will involve renaming TF_SessionWithGraph to TF_Session.
We want to encourage all client languages to use TF_SessionRun,
TF_GraphImportGraphDef etc. (instead of TF_Run and TF_ExtendGraph), hence
the choice of names. Ideally, all client languages will use these
functions, but it is likely that Python will continue to use
TF_DeprecatedSession for a while.
Change: 138454433
Diffstat (limited to 'tensorflow/c/c_api_test.cc')
-rw-r--r-- | tensorflow/c/c_api_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/c/c_api_test.cc b/tensorflow/c/c_api_test.cc index 27ba6dddd2..dec891fdc6 100644 --- a/tensorflow/c/c_api_test.cc +++ b/tensorflow/c/c_api_test.cc @@ -157,7 +157,7 @@ TEST(CAPI, SessionOptions) { TEST(CAPI, SessionWithRunMetadata) { TF_Status* s = TF_NewStatus(); TF_SessionOptions* opt = TF_NewSessionOptions(); - TF_Session* session = TF_NewSession(opt, s); + TF_DeprecatedSession* session = TF_NewDeprecatedSession(opt, s); TF_DeleteSessionOptions(opt); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); @@ -171,7 +171,7 @@ TEST(CAPI, SessionWithRunMetadata) { TF_DeleteBuffer(run_metadata); TF_DeleteBuffer(run_options); - TF_DeleteSession(session, s); + TF_DeleteDeprecatedSession(session, s); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); TF_DeleteStatus(s); |