From 9c000f4b57439ee8979465a2cb2772cc61192102 Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Mon, 25 Feb 2019 17:12:32 +0300 Subject: [PATCH] [HIPIFY][tests] caffe2 test fix --- .../hipify-clang/unit_tests/libraries/CAFFE2/caffe2_02.cu | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hipamd/tests/hipify-clang/unit_tests/libraries/CAFFE2/caffe2_02.cu b/hipamd/tests/hipify-clang/unit_tests/libraries/CAFFE2/caffe2_02.cu index bcbe440a15..7f29cfe25c 100644 --- a/hipamd/tests/hipify-clang/unit_tests/libraries/CAFFE2/caffe2_02.cu +++ b/hipamd/tests/hipify-clang/unit_tests/libraries/CAFFE2/caffe2_02.cu @@ -65,8 +65,7 @@ template class Operator : public OperatorBase { public: explicit Operator(const OperatorDef& operator_def, Workspace* ws) - : OperatorBase(operator_def, ws), context_(operator_def.device_option()) { - context_.SwitchToDevice(); + : OperatorBase(operator_def, ws) { } ~Operator() noexcept override {} };