Conversation
|
|
||
| Hence for simplicity's sake, there is no difference between an operator and a function in Gorgonia. They are all treated as functions, but named `Op`. The `Op`s in Gorgonia may be found in files starting with `op_`. | ||
|
|
||
| The definition of the `Op` interface may be found in `op.go`. |
There was a problem hiding this comment.
| The definition of the `Op` interface may be found in `op.go`. | |
| The definition of the [`Op`](https://pkg.go.dev/gorgonia.org/gorgonia#Op) interface may be found in `op.go`. |
|
|
||
| Hence when we perform a symbolic differentiation, we're adding new `*Node`s to the graph, each representing a partial derivative of  with regards to  or . | ||
|
|
||
| An `Op` that supports symbolic differentiation must implement `SDOp`. |
There was a problem hiding this comment.
| An `Op` that supports symbolic differentiation must implement `SDOp`. | |
| An `Op` that supports symbolic differentiation must implement [`SDOp`](https://pkg.go.dev/gorgonia.org/gorgonia#SDOp). |
|
|
||
| To aid in automatic differentiation, a `dualValue` type is also used. A `*dualValue` is exactly what it suggests: a value that contains two values - usually the value and a gradient. | ||
|
|
||
| An `Op` that supports automatic differentiation must implement `ADOp`. |
There was a problem hiding this comment.
| An `Op` that supports automatic differentiation must implement `ADOp`. | |
| An `Op` that supports automatic differentiation must implement [`ADOp`](https://pkg.go.dev/gorgonia.org/gorgonia#ADOp). |
| TODO | ||
|
|
||
| ### `*goMachine` ### | ||
| TODO |
There was a problem hiding this comment.
| TODO | |
| The GoMachine is documented on Gorgonia's website [gorgonia.org/reference/vm/gomachine/](https://gorgonia.org/reference/vm/gomachine/) |
|
This is a general comment about the name (and naming is hard). As I don't have any other relevant name to offer, I propose to move this document to a |
|
README.md in the docs folder? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #471 +/- ##
=======================================
Coverage 55.41% 55.41%
=======================================
Files 71 71
Lines 11597 11597
=======================================
Hits 6426 6426
Misses 4324 4324
Partials 847 847
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
what about DESIGN.md ? |
No description provided.