autodiff-dev / backend /contract /course_example.json
nhamid289's picture
Deploy autodiff ff35e9c
b9499ab verified
Raw History Blame Contribute Delete
1.1 kB
{
"description": "The function from the course slides: inputs are numbered first, then operations",
"calls": {
"handle_set_function": {
"args": {
"expression": "exp(x1) + x1*x2"
},
"result": {
"inputs": [
"x1",
"x2"
],
"constants": {},
"nodes": [
{
"id": "w1",
"kind": "input",
"name": "x1"
},
{
"id": "w2",
"kind": "input",
"name": "x2"
},
{
"id": "w3",
"kind": "op",
"op": "exp",
"args": [
"w1"
]
},
{
"id": "w4",
"kind": "op",
"op": "mul",
"args": [
"w1",
"w2"
]
},
{
"id": "w5",
"kind": "op",
"op": "add",
"args": [
"w3",
"w4"
]
}
],
"output": "w5"
}
}
}
}