Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OriginQ/QPanda-2
/ back
Function
back
Core/Variational/utils.cpp:15–19 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
13
}
14
15
void back(const var& root,
16
std::unordered_map<var, MatrixXd>& derivative){
17
expression exp(root);
18
exp.backpropagate(derivative);
19
}
20
21
void back(expression& exp,
22
std::unordered_map<var, MatrixXd>& derivative) {
Callers
3
compute_gradients
Method · 0.70
run
Method · 0.70
TEST
Function · 0.50
Calls
1
backpropagate
Method · 0.80
Tested by
1
TEST
Function · 0.40