Skip to content

tenzr::txpr::TxprVar

A Txpr variable reference pairing a VarId with its shape and dtype.

#include <txpr.h>

Public Functions

Name
constexpr bool IsValid() const
Returns true when the underlying id is valid.
bool operator==(const TxprVar & other) const =default

Public Attributes

Name
VarId id
Shape shape
DType dtype

Public Functions Documentation

function IsValid

inline constexpr bool IsValid() const

Returns true when the underlying id is valid.

function operator==

bool operator==(
    const TxprVar & other
) const =default

Public Attributes Documentation

variable id

VarId id {VarId::Invalid()};

variable shape

Shape shape {};

variable dtype

DType dtype {DType::kFloat32};