Comments (9)
Yes, I have managed to make it work with arrays , but it's not really appropriate for my application (this is just a minimal reproducible example for the error).
Ah, I see. Then we will have to wait until that bug report is resolved :(.
It's ok , thanks for your helpThe kernel restarts running the last cell (In[5]).
Do you know which kernel you are running? xeus-cling, xeus-cpp?
xeus-cling, but I don't think this is the problem because I also get errors when running it in vscode with clad "Built from source".Can you submit a bug report for the crash if it happens in xeus-cpp or via the static compiler?
Yes, I will ...
from clad.
This worked for me:
![image](https://private-user-images.githubusercontent.com/6516307/332667131-f312da26-14f1-4597-adb9-bedf4c6ee33f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc1OTc5NjgsIm5iZiI6MTcxNzU5NzY2OCwicGF0aCI6Ii82NTE2MzA3LzMzMjY2NzEzMS1mMzEyZGEyNi0xNGYxLTQ1OTctYWRiOS1iZWRmNGM2ZWUzM2YucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYwNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MDVUMTQyNzQ4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZWZjMGY0YmEzYzJmN2FlYmM4MjMwZDViNjA3MDg4OTFhMjk2MDU4M2NiM2M5MWZmZWFjN2IxYmQ4NzI0NjIxMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.8gj2o6hu2EPU6pIocmGmmnZnoNdyOFS0OXbdcnrUNjo)
Perhaps the problem is the jupyter kernel somehow?
Can you take a look at our binder service here: https://mybinder.org/v2/gh/vgvassilev/clad/master?labpath=%2Fdemos%2FJupyter%2FIntro.ipynb
from clad.
Thank you very much!
The problem seams to be with the use of vectors.I have noticed that when there is a vector in any form in the function, it crashes, even when I am just accessing an element of the vector. The same does not happen with arrays...
from clad.
Also the kernel restart on it's own:
from clad.
Perhaps you are hitting #750. Can you use a fixed-size array in your example until the issue is fixed?
Also, in what context the kernel is automatically restarted?
from clad.
Yes, I have managed to make it work with arrays , but it's not really appropriate for my application (this is just a minimal reproducible example for the error).
The kernel restarts running the last cell (In[5]).
from clad.
Yes, I have managed to make it work with arrays , but it's not really appropriate for my application (this is just a minimal reproducible example for the error).
Ah, I see. Then we will have to wait until that bug report is resolved :(.
The kernel restarts running the last cell (In[5]).
Do you know which kernel you are running? xeus-cling, xeus-cpp?
from clad.
Yes, I have managed to make it work with arrays , but it's not really appropriate for my application (this is just a minimal reproducible example for the error).
Ah, I see. Then we will have to wait until that bug report is resolved :(.
It's ok , thanks for your helpThe kernel restarts running the last cell (In[5]).
Do you know which kernel you are running? xeus-cling, xeus-cpp?
xeus-cling, but I don't think this is the problem because I also get errors when running it in vscode with clad "Built from source".
from clad.
Yes, I have managed to make it work with arrays , but it's not really appropriate for my application (this is just a minimal reproducible example for the error).
Ah, I see. Then we will have to wait until that bug report is resolved :(.
It's ok , thanks for your helpThe kernel restarts running the last cell (In[5]).
Do you know which kernel you are running? xeus-cling, xeus-cpp?
xeus-cling, but I don't think this is the problem because I also get errors when running it in vscode with clad "Built from source".
Can you submit a bug report for the crash if it happens in xeus-cpp or via the static compiler?
from clad.
Related Issues (20)
- Error in gradients for `if conditions` with declarations
- Move backward incompatible changes for v2.0 HOT 1
- Remove the assert on AppendDelayed
- Custom derivatives are not detected and used correctly when namespaces are present.
- Add custom derivatives for all math and other std:: builtin functions
- Add a target for verifying only `CHECK-EXEC` in tests
- Missing derivative with globals / variables of static storage duration HOT 5
- Non-compilable code output for division operation in reverse mode
- Incorrect gradient computation for non-zeroed derivatives HOT 4
- Regression in support of functions with unknown definition HOT 4
- Incorrect gradient for if-conditions with side-effects
- Non-differentiable attribute not being applied to nested classes
- Add support for differentiating the null (empty) statement `;`
- Incorrect type of zero returned in VisitCallExpr HOT 1
- Add support for the logical negation operator in conditions (forward mode)
- Add support for comparison operators with differentiable substatements in for loop conditions (forward mode)
- Incorrect derivative for while-loops with declarations and assignments in forward mode
- Incorrect derivative for if-statements with assignments in forward mode HOT 5
- Trying to differentiate an operator in reverse mode fails. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clad.