From 16a84328c6947f224534cbd5e3218714adfb9e9b Mon Sep 17 00:00:00 2001 From: Yang Yu Date: Wed, 27 Dec 2017 15:47:18 +0800 Subject: [PATCH] Fix compile --- paddle/pybind/tensor_py.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/pybind/tensor_py.h b/paddle/pybind/tensor_py.h index 64e981e4e..4d5e73e2c 100644 --- a/paddle/pybind/tensor_py.h +++ b/paddle/pybind/tensor_py.h @@ -64,7 +64,7 @@ struct CastToPyBufferImpl { tensor.dims(), platform::CPUPlace())); platform::DeviceContextPool &pool = - platform::DeviceContextPool::Instance; + platform::DeviceContextPool::Instance(); auto dev_ctx = static_cast( pool.Get(tensor.place())); -- GitLab