Skip to content

Commit

Permalink
Format Var as code. (#162)
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Bourjau <[email protected]>
  • Loading branch information
kklein and cbourjau authored Jul 8, 2024
1 parent cb2c428 commit 07a0e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/manual/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Like its name suggests, is represents a variable (a placeholder, lazy value, ...

A ``Var`` object does not have a concrete value, but it does have an explicit type. For instance, it may have type Tensor, which is parametrised by the element type (like ``numpy.float32``) and shape (a tuple like ``('N', 2)`` - meaning *N x 2*).

For example, given ``a: Var`` and ``b: Var``, ``c: Var = add(a, b)`` is the Var representing the sum of ``a`` and ``b``.
Considering two ``Var`` objects ``a`` and ``b`` one may represent their sum as ``c: Var = add(a, b)``.
The type and shape information of ``c`` is automatically derived from the inputs following the ONNX type inference implementation.
The ``add`` function is an *operator constructor*, which internally constructs an ``Add`` node and returns a variable representing its output.

Expand Down

0 comments on commit 07a0e2f

Please sign in to comment.