-
Notifications
You must be signed in to change notification settings - Fork 744
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
nGraph Preset initial commit #642
Conversation
Thanks! The issue might have something to do with recent changes in commit bytedeco/javacpp@f214f5c? But there isn't any buffers used in the class... I guess I'll have to look at this. |
After adding |
BTW, add an entry to |
Added BackendManager, which raises these new errors:
|
I'm not able to build nGraph with
Could you first get the |
Followed the instructions for CentOS, on Fedora 27 (in Docker) and I get a successful build (up to the errors I reported above). Without installing the required packages in Fedora, I got errors before even reaching So I'll |
Works for me now on Fedora 27 without package |
Hum, it needs ncurses, ok, that's probably not going to work on Mac anytime soon, but that's alright. Let's see what we can do on Linux first. |
A few more things to fix with the build:
|
… output parameters with `@Adapter` (pull bytedeco/javacpp-presets#642)
In other news, I've fixed compilation failing with |
Awesome, thanks for the fix. |
Actually, it looks like it parses |
We just need to give them names like: .put(new Info("ngraph::element::from<char>").javaNames("fromChar"));
... See https://github.com/bytedeco/javacpp/wiki/Mapping-Recipes#specifying-names-to-use-in-java and https://github.com/bytedeco/javacpp/wiki/Mapping-Recipes#creating-instances-of-c-templates BTW, since it appears to install everything properly in the install path, we probably don't need to copy everything manually. |
Sure thing, fixed in commit bytedeco/javacpp@2cf75e5! |
The last build failed, not on parsing this time, but on the generated Java. |
Yes, we need more Info. |
The current error shouldn't be hard to resolve, but as usual, let me know if you need help to make progress. |
No problem, I'll take care of that. Another issue, brought by further changes I haven't checked in yet: Where I am declaring my own FunctionPointer for Operator. This on the generated C++ for this function: Any ideas? |
We can't convert an std::function into a function pointer or a function
object because the target may not be either a function pointer or a
function object. Only creating an std::function from a function pointer or
a function object makes sense, not the other way around.
|
hmm, ok, looking for an alternative to How can I load a file into a Pointer containing an istream so I can call this? |
Enhancing JavaCPP to generate custom call() methods for instances of
std::function might become necessary at some point, but I haven't
encountered that need yet. It's always possible to define the interface
manually anyway.
The same for C++ streams, we'd have to map that API first, but it's very
inefficient so libraries typically offer alternatives such as reading from
a memory buffer or something anyway.
|
This is what I had for Operator:
so I did define it manually, but got the error when trying to use it. |
No, I mean defining mappings for the @Name("std::function<something>") class SomeFunction {
@Name("operator()") public native void call(...);
...
} And to access generated types with it, either as part of a helper class or with some |
This is ready to merge. |
Another preset incoming!
So I've managed to get it down to just one error on the jningraph.cpp file:
Any idea what's going on here? This is in the class NgraphResultVector. There are several other NgraphSOMEVector, defined similarly, which don't seem to have the same issue.