Comments (2)
Hi Jonas,
Thank you for reporting the issue.
Maybe it should also be considered acceptable if the initializer list is empty?
You are right, it should definitely be acceptable.
Or is there a reason why it should not work?
The only reason why it doesn't work currently is that the reverse-mode does not support constructors properly. The first case (Identity di;
) works because in that case the constructor is trivial.
from clad.
That issue depends on #724
from clad.
Related Issues (20)
- 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 `;`
- Two functions HOT 9
- 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 2
- Regression in `clad` master in dealing with templated functions HOT 2
- Regression in Clad when dealing with loops HOT 6
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.