-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the question about the Learning-based algorithm #89
Comments
Hi, That said, there is in theory nothing saying that calling a machine learning library directly from a python ccp algorithm implementation won't work. Where in the underlying code (presumably somewhere down the call stack of the |
Hi, If the AIMD demo works for you without the
Would you be able to share your repo with us so we can try to reproduce? Thanks! |
Thanks for your help! |
Thanks for the link to the repo. I just checked out the code and was able to reproduce your problem: with the actor line it does segfault, and with the actor line but without portus it works ok. I'm not quite sure why it's segfaulting yet, but I have at least narrowed down the problem a bit. It seems to be an issue with calling that tensorflow code once portus has started. Moving the self.actor line into Just for a bit of context, portus itself is actually written in rust. The portus python package basically runs the rust code and then calls into the python interpreter. It's using an early-stage package to interface between python and rust and sometimes there are some strange memory issues to debug. There's no fundamental reason why this should not work, it's just that the tf library is a complicated case and not something we've tested yet. I believe with some testing this should be solvable. |
Hello ,i am m trying to integrate our learning-based algorithms into the ccp,but i meet some problem.
it is the AIMD demo , and the only different part from the origin demo in line 20(self.actor = model.Network([5,8], 6, 1e-4))
i can run the origin demo ,but i can not run the demo that adds the line 20.
and it is my model.py,everytime when it run to the line ( self.pi = self.CreateNetwork(inputs=self.inputs) ),it report Segmentation fault.(i`m sure that this part can run successfully apart from ccp )
so,i wonder whether ccp does not support learning-based algorithms.
What should I do if I want to integrate the algorithm?
I would be very grateful for your suggestions
The text was updated successfully, but these errors were encountered: