Hi Daecheol,

As far as I am aware this is not possible.
That would require something like VectorParam.VectorParam.Int which is not 
currently supported

I would recommend you to change your python interface to accommodate for this 
missing feature

Kind Regards

Giacomo

From: Daecheol You via gem5-users <gem5-users@gem5.org>
Sent: 17 December 2020 11:10
To: gem5 users mailing list <gem5-users@gem5.org>
Cc: Daecheol You <keepyourcr...@gmail.com>
Subject: [gem5-users] Passing 2-dimension list from Python to C++ object

Hi all,

For passing parameter to C++ object from Python, gem5 provides Param object. 
Through Param, int, float, string parameters can be passed to C++ object 
(Param.Int(), Param.Float(), Param.String(), etc)

Now, I want to pass 2-dimension list from Python ([ [] ]), and get it as a 
vector<vector<unsigned>> object at C++ object. I found that there is 
VectorParam for list type, but how can I define 2-dimension list, which needs 
to be passed as vector<vector<unsigned>>, with VectorParam?


Thanks,
Daecheol.
IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to