diff --git a/runtime/onert/core/include/backend/train/ExtraTensorRequest.h b/runtime/onert/core/include/backend/train/ExtraTensorRequest.h index 73aa0efe857..a2b4f60f110 100644 --- a/runtime/onert/core/include/backend/train/ExtraTensorRequest.h +++ b/runtime/onert/core/include/backend/train/ExtraTensorRequest.h @@ -65,28 +65,18 @@ class ExtraTensorRequest ExtraTensorLifeTime lifetime; backend::train::ExtraTensor **address; - /* // w/o this copy constructor, it fails in android build // with this err msg : // note: in implicit copy assignment operator for 'onert::ir::OperandInfo' first required here ExtraTensorRequest operator=(const ExtraTensorRequest &o) { - ExtraTensorRequest r = { - .info = o.info, - .layout = o.layout, - .lifetime = o.lifetime, - .address = o.address, - }; - return r; + return ExtraTensorRequest(o.info, o.lifetime, o.address); } - ExtraTensorRequest(const ExtraTensorRequest& o) - { - info = o.info; - layout = o.layout; - lifetime = o.lifetime; - address = o.address; - }*/ +public: + ir::OperandInfo info; + ExtraTensorLifeTime lifetime; + backend::train::ExtraTensor **address; }; using ExtraTensorRequests = std::vector;