diff options
author | Frank Chen <frankchn@google.com> | 2018-03-12 10:31:40 -0700 |
---|---|---|
committer | Frank Chen <frankchn@google.com> | 2018-03-12 10:31:40 -0700 |
commit | 2bfe6e1674522d1bc2164a1c655846dcefe61d97 (patch) | |
tree | 257e95c8667ef946843231e71536686e111d2f06 /tensorflow/core/public | |
parent | ae3badb08c7a081c9683a2c85f33ccc969e5c1f6 (diff) | |
parent | 739d5ce952b5e907489eacfd08f3631962ef7b2d (diff) |
Branch 188738133
Diffstat (limited to 'tensorflow/core/public')
-rw-r--r-- | tensorflow/core/public/session.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tensorflow/core/public/session.h b/tensorflow/core/public/session.h index 75ad50f6f2..d58c877cfd 100644 --- a/tensorflow/core/public/session.h +++ b/tensorflow/core/public/session.h @@ -195,6 +195,41 @@ class Session { return errors::Unimplemented( "LocalDeviceManager is not supported for this session."); } + + /// \brief A handle to a subgraph, created with `Session::MakeCallable()`. + typedef int64 CallableHandle; + + /// \brief Creates a `handle` for invoking the subgraph defined by + /// `callable_options`. + /// NOTE: This API is still experimental and may change. + virtual Status MakeCallable(const CallableOptions& callable_options, + CallableHandle* out_handle) { + return errors::Unimplemented( + "MakeCallable is not supported for this session."); + } + + /// \brief Invokes the subgraph named by `handle` with the given options and + /// input tensors. + /// + /// The order of tensors in `feed_tensors` must and `fetch_tensors` will + /// match the order of names in `CallableOptions::feed()` and + /// `CallableOptions::fetch()` when this subgraph was created. + /// NOTE: This API is still experimental and may change. + virtual Status RunCallable(CallableHandle handle, + const std::vector<Tensor>& feed_tensors, + std::vector<Tensor>* fetch_tensors, + RunMetadata* run_metadata) { + return errors::Unimplemented( + "RunCallable is not supported for this session."); + } + + /// \brief Releases resources associated with the given `handle` in this + /// session. + /// NOTE: This API is still experimental and may change. + virtual Status ReleaseCallable(CallableHandle handle) { + return errors::Unimplemented( + "ReleaseCallable is not supported for this session."); + } }; /// \brief Create a new session with the given options. |