Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kashif Rasul committed Aug 2, 2019
1 parent a6c6096 commit 9d86d97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tensorflow/core/common_runtime/direct_session_test.cc
Expand Up @@ -2088,7 +2088,7 @@ bool IsCUDATensor(const Tensor& t) {
cudaPointerGetAttributes(&attributes, t.tensor_data().data());
if (err == cudaErrorInvalidValue) return false;
CHECK_EQ(cudaSuccess, err) << cudaGetErrorString(err);
return (attributes.memoryType == cudaMemoryTypeDevice);
return (attributes.type == cudaMemoryTypeDevice);
#else
return false;
#endif
Expand Down
Expand Up @@ -460,7 +460,7 @@ bool IsCUDATensor(const Tensor& t) {
cudaPointerGetAttributes(&attributes, t.tensor_data().data());
if (err == cudaErrorInvalidValue) return false;
CHECK_EQ(cudaSuccess, err) << cudaGetErrorString(err);
return (attributes.memoryType == cudaMemoryTypeDevice);
return (attributes.type == cudaMemoryTypeDevice);
#else
CHECK(false)
<< "IsCUDATensor should not be called when CUDA is not available";
Expand Down

0 comments on commit 9d86d97

Please sign in to comment.