CPU tensors with PyTorch diagrams
Start with how the application begins, then follow data between its folders. Open an operation to see its decisions, calls, failures and cleanup. Its explanation supplies the exact contract and linked dependencies.
This view includes 2 application source files. Package and interface boundaries show checked contracts; their runtime implementations are not expanded. The views describe the checked program, not desired requirements or a recorded execution.
Where execution begins
Startup
It prints calculate. If this work raises TensorError as error, it prints error.message. source
Data flow
Mermaid source
flowchart TD
n0["Startup"]
n1["tensors"]
n0 -->|"calculate → float"| n1
Package boundaries
tensors package calls
Mermaid source
flowchart LR
n0["@greenpandastudios/aug-pytorch"]
n1["tensors"]
n1 -->|"add(left, right) / sum(tensor) + 1 more → float / own Tensor"| n0
Follow the data
Each row opens the complete operations and call sites behind one pair of logical units. A grouped arrow records calls between those units; connected arrows need not belong to the same execution path.
| From | To | Operations | Read |
|---|---|---|---|
| Startup | tensors | 1 | Inputs, results and call sites |
| tensors | @greenpandastudios/aug-pytorch | 4 | Inputs, results and call sites |
Data crossing these boundaries (5 contracts)
Startup → tensors
1 operation, 1 site
No caller-supplied inputs. Result: float.
| Caller or entry | Evidence |
|---|---|
| Startup | Call site · Caller explanation |
tensors → @greenpandastudios/aug-pytorch
4 operations, 9 sites
Inputs: left: Tensor, right: Tensor. Result: own Tensor.
| Caller or entry | Evidence |
|---|---|
| calculate | Call site · Caller explanation |
| test calculate | Call site · Caller explanation |
Inputs: tensor: Tensor. Result: float.
| Caller or entry | Evidence |
|---|---|
| calculate | Call site · Caller explanation |
| test calculate | Call site · Caller explanation |
Inputs: values: List<float>. Result: own Tensor.
| Caller or entry | Evidence |
|---|---|
| calculate | Call site · Caller explanation |
| calculate | Call site · Caller explanation |
| test calculate | Call site · Caller explanation |
| test calculate | Call site · Caller explanation |
Inputs: tensor: Tensor. Result: List<float>.
| Caller or entry | Evidence |
|---|---|
| test calculate | Call site · Caller explanation |
Open a module
| Module | Read |
|---|---|
| main.aug | Flow and sequences · Explanation |
| tensors.aug | Flow and sequences · Explanation |
These are static call boundaries, not a request trace. Interface implementations and foreign internals stop at their checked contracts. Dotted arrows defer a callback or browser action. Imports alone do not imply a call.