diff --git a/projects/hip/tests/hipify-clang/unit_tests/libraries/CAFFE2/caffe2_02.cu b/projects/hip/tests/hipify-clang/unit_tests/libraries/CAFFE2/caffe2_02.cu index bcbe440a15..7f29cfe25c 100644 --- a/projects/hip/tests/hipify-clang/unit_tests/libraries/CAFFE2/caffe2_02.cu +++ b/projects/hip/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 {} };