-
Notifications
You must be signed in to change notification settings - Fork 334
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
Does or will nnabla support dynamically loading custom function? #10
Comments
Thanks for your question. As a short answer, dynamic loading of a custom function definition is not currently supported. I'll describe it more details below. There may be two different definitions of custom functions.
For 1, NNabla only provides a way to add a new function definition statically. We're still investigating how we achieve a dynamic function definition. For 2. a special implementation of a base function (e.g. Convolution --> ConvolutionCuda) is dynamically registered as we do in a CUDA extension of NNabla, and a user can call it by setting an appropriate context descriptor. There is actually an alternative way to define a custom function (1). We provide a way to write a custom function in Python side, which is not documented so far (i.e. not officially supported so far). You can find it in a unit test. The test demonstrates how we implement an operator which adds two tensors using Numpy array. Although it is off-topic on this thread, I will give you a bit of answer on differences between NNabla and others (Please post a question like this to a user group hosted in Google Groups). |
Much thanks for your answer! |
Feature/20171215 imagenet example
Implement epsilon insensitive loss of cuda version.
* change layer to calculate shap #3 * visualize shap images #3 * add comment #3 * delete comment out #3 * use variable for num_epochs * change the word Grad-CAM to SHAP #3 * use variable for ratio_num #3 * delete garbage collection #3 * change data_iterator to dataset #3 * rename folder and delete unnecessary files #3 * delete unnecessary files and images #3 * delete unnecessary argument #3 * split into precise functions #3 * add copyright #3 * delete unnecessary DS_Store #3 * fix lint error #3 * change readme #3 * change readme for explainable AI #3 * change image #3 * fix readme for shap #3 * change readme for nnabla-example #3 * fix comment #3 * fix readme for shap #3 * delete DSstore #3 * fix license #3 * delete unnecessary spaces and cells #3 * change the repository where ipynb file is in #3 * change the repository to reference from ghelia to sony #3 * clear the output of the first cell #3 * change readme #3 * deal gloabl variable as an argument #3 * deal error message as an exception handling #3 * delete unnecessary error message #3 * (#3) delete readme and ipynb * (#3) fix readme line break * add 50 images and ipynb file #3 * fix comment #3 * fix layer index #3 Co-authored-by: ohmorimori <[email protected]>
* change layer to calculate shap #3 * visualize shap images #3 * add comment #3 * delete comment out #3 * use variable for num_epochs * change the word Grad-CAM to SHAP #3 * use variable for ratio_num #3 * delete garbage collection #3 * change data_iterator to dataset #3 * rename folder and delete unnecessary files #3 * delete unnecessary files and images #3 * delete unnecessary argument #3 * split into precise functions #3 * add copyright #3 * delete unnecessary DS_Store #3 * fix lint error #3 * change readme #3 * change readme for explainable AI #3 * change image #3 * fix readme for shap #3 * change readme for nnabla-example #3 * fix comment #3 * fix readme for shap #3 * delete DSstore #3 * fix license #3 * delete unnecessary spaces and cells #3 * change the repository where ipynb file is in #3 * change the repository to reference from ghelia to sony #3 * clear the output of the first cell #3 * change readme #3 * deal gloabl variable as an argument #3 * deal error message as an exception handling #3 * delete unnecessary error message #3 * (#3) delete readme and ipynb * (#3) fix readme line break * add 50 images and ipynb file #3 * fix comment #3 * fix layer index #3 Co-authored-by: ohmorimori <[email protected]>
Hey, I am interested in this NN tool. And I wonder if it will support custom function? Besides, I wonder is there any difference between nnabla with other NN tool, such as mxnet or tensorflow?
Much thanks.
The text was updated successfully, but these errors were encountered: