Skip to content

Commit

Permalink
probable fix for the KW issue (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanvi-nervana authored and Shrestha Malik committed Dec 4, 2019
1 parent e858191 commit 41c3169
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions experimental/ngraph_device/ngraph_send_recv_ops.cc
Expand Up @@ -174,7 +174,7 @@ class NGraphRecv : public AsyncOpKernel {
private:
string key_prefix_;
tf::Rendezvous::ParsedKey parsed_key_;
bool hostmem_sendrecv_;
bool hostmem_sendrecv_ = false;
};

//-----------------------------------------------------------------------------
Expand Down Expand Up @@ -248,7 +248,7 @@ class NGraphSend : public OpKernel {
private:
string key_prefix_;
tf::Rendezvous::ParsedKey parsed_key_;
bool hostmem_sendrecv_;
bool hostmem_sendrecv_ = false;
};

REGISTER_KERNEL_BUILDER(Name("_Recv").Device(ngraph_bridge::DEVICE_NGRAPH_CPU),
Expand Down
2 changes: 1 addition & 1 deletion ngraph_bridge/ngraph_encapsulate_op.h
Expand Up @@ -50,7 +50,7 @@ class NGraphEncapsulateOp : public OpKernel {

static int s_instance_id;
NGraphEncapsulateImpl ng_encap_impl_;
bool m_use_parallel_executor;
bool m_use_parallel_executor = false;
std::mutex m_compute_lock_;
unique_ptr<NGraphExecutor> m_parallel_executor;
};
Expand Down

0 comments on commit 41c3169

Please sign in to comment.