1 부모
1e879f1c85
커밋
5f4b9a8f8f
1 파일이 변경됨
+1
-2
@@ -65,8 +65,7 @@ template <class Context>
|
||||
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 {}
|
||||
};
|
||||
|
||||
새 이슈에서 참조
사용자 차단