Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verification invalid eager env_ or env_->rendezvous_mgr. #20095

Merged
merged 12 commits into from
Jul 3, 2018
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ Status GetNumRetvals(tensorflow::EagerContext* context, const string& op_name,

Status EagerServiceImpl::CreateContext(const CreateContextRequest* request,
CreateContextResponse* response) {
//make sure env_ , env_->rendezvous_mgr available
if (env_ == nullptr || env_->rendezvous_mgr == nullptr) {
return tensorflow::errors::Internal("invalid eager env_ or env_->rendezvous_mgr.");
}
std::vector<tensorflow::Device*> devices;

TF_RETURN_IF_ERROR(tensorflow::DeviceFactory::AddDevices(
Expand Down