SINGA-120 - Implemented GRU and BPTT: Fixed bugs regarding the Map function
Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/c440e4a4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/c440e4a4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/c440e4a4 Branch: refs/heads/master Commit: c440e4a491a970ae6af8eaf5e371ee6b2509af15 Parents: 777dfb6 Author: Ju Fan <[email protected]> Authored: Fri Jan 1 10:51:17 2016 +0800 Committer: Wei Wang <[email protected]> Committed: Wed Jan 6 01:53:05 2016 +0800 ---------------------------------------------------------------------- include/singa/utils/math_blob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/c440e4a4/include/singa/utils/math_blob.h ---------------------------------------------------------------------- diff --git a/include/singa/utils/math_blob.h b/include/singa/utils/math_blob.h index 34e67ad..125509a 100644 --- a/include/singa/utils/math_blob.h +++ b/include/singa/utils/math_blob.h @@ -280,7 +280,7 @@ template<typename Op, typename Dtype> void Map(const Blob<Dtype> & A, const Blob<Dtype> & B, Blob<Dtype> * C) { CHECK_EQ(A.count(), B.count()) << "Blobs must have the same size"; CHECK_EQ(A.count(), C->count()) << "Blobs must have the same size"; - cpu_e_f<Op>(A.count(), A.cpu_data(), B.cpu_data(), C->mutable_cpu_data()); + //cpu_e_f<Op>(A.count(), A.cpu_data(), B.cpu_data(), C->mutable_cpu_data()); auto context = Singleton<Context>::Instance(); int device = context->device_id(std::this_thread::get_id()); if (device == -1) {
