Skip to content

Commit

Permalink
[NFC] Clarify why Var does not hold a value
Browse files Browse the repository at this point in the history
  • Loading branch information
eguiraud committed Oct 2, 2023
1 parent a59c3a2 commit 17b8fd4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ class Const : public Op {
const graph_proto::Const& cproto) noexcept;
};

/// A scalar variable: a named placeholder for an input to `evaluate`.
/// A scalar variable: a value-less, named placeholder for a variable in the
/// expression. Note that a Var does not contain any value: it only acts as a
/// placeholder for one in a compute graph. Concrete values for each of the
/// variables used will then be passed to Graph::eval as part of the Inputs.
class Var : public Op {
std::string name;

Expand Down

0 comments on commit 17b8fd4

Please sign in to comment.