BatchSize¶
-
class BatchSize¶
Symbolic size of the batch dimension of a Value.
A batch size is one of: the scalar size
one(no batch dimension), a named symbol such as"batch_size", an anonymous symbol created for an intermediate result, or a sum of such terms with integer coefficients. Sizes are added and compared symbolically, so a graph can be type checked without knowing the actual number of events.Public Types
-
using Named = std::string¶
-
using Unnamed = std::shared_ptr<UnnamedBody>¶
-
using One = std::monostate¶
Public Functions
-
inline BatchSize(const std::string &name)¶
Named batch size such as
"batch_size".- Parameters:
name – symbol name
-
inline BatchSize()¶
Fresh anonymous batch size, distinct from every other.
-
std::string to_string() const¶
Human-readable representation such as
"batch_size + 1".
Public Static Attributes
Friends
-
class UnnamedBody¶
Public Functions
-
inline UnnamedBody()¶
-
inline bool operator==(const UnnamedBody &other) const¶
-
inline bool operator!=(const UnnamedBody &other) const¶
-
inline UnnamedBody()¶
-
using Named = std::string¶