Tenncor
|
Session that makes GRPC client calls. More...
#include <session.hpp>
Public Member Functions | |
InteractiveSession (std::shared_ptr< grpc::ChannelInterface > channel, ClientConfig client_cfg=ClientConfig(), tag::TagRegistry ®istry=tag::get_reg()) | |
InteractiveSession (std::string host, ClientConfig client_cfg=ClientConfig()) | |
void | track (teq::TensptrsT roots) override |
Implementation of iSession. More... | |
void | update (teq::TensSetT ignored={}) override |
Implementation of iSession. More... | |
void | update_target (teq::TensSetT targeted, teq::TensSetT ignored={}) override |
Implementation of iSession. More... | |
void | optimize (const opt::OptCtx &rules) |
Apply input optimization rules using opt module, then re-track. More... | |
void | join (void) |
Wait until client completes its request calls. More... | |
void | join_then_stop (const std::chrono::time_point< std::chrono::system_clock > &deadline) |
Wait until specified deadline, then terminate all jobs in the client. More... | |
void | stop (void) |
Kill all request jobs. More... | |
std::string | get_session_id (void) const |
Return session id. More... | |
![]() | |
virtual | ~iSession (void)=default |
Public Attributes | |
std::unique_ptr< tenncor::GraphEmitter::Stub > | stub_ |
GRPC Client. More... | |
eteq::Session | sess_ |
Session underneath. More... | |
tag::TagRegistry & | registry_ |
Tag registry. More... | |
Static Public Attributes | |
static boost::uuids::random_generator | uuid_gen_ |
UUID random generator. More... | |
Private Attributes | |
std::string | sess_id_ |
std::unordered_map< teq::iTensor *, size_t > | node_ids_ |
std::unordered_set< EdgeInfo, EdgeInfoHash > | edges_ |
size_t | update_it_ = 0 |
GraphEmitterClient | client_ |
teq::GraphStat | stat_ |
std::unordered_map< teq::iTensor *, std::unordered_set< teq::iOperableFunc * > > | parents_ |
Session that makes GRPC client calls.
|
inline |
|
inline |
|
inline |
Return session id.
|
inline |
Wait until client completes its request calls.
|
inline |
Wait until specified deadline, then terminate all jobs in the client.
|
inline |
Apply input optimization rules using opt module, then re-track.
|
inline |
Kill all request jobs.
|
inlineoverridevirtual |
Implementation of iSession.
Implements eteq::iSession.
|
inlineoverridevirtual |
Implementation of iSession.
Implements eteq::iSession.
|
inlineoverridevirtual |
Implementation of iSession.
Implements eteq::iSession.
|
private |
|
private |
|
private |
|
private |
tag::TagRegistry& dbg::InteractiveSession::registry_ |
Tag registry.
eteq::Session dbg::InteractiveSession::sess_ |
Session underneath.
|
private |
|
private |
std::unique_ptr<tenncor::GraphEmitter::Stub> dbg::InteractiveSession::stub_ |
GRPC Client.
|
private |
|
static |
UUID random generator.