struct
SushiAI::Graph::InsertedCast
One conversion the pass added.
- Declared in
include/SushiAI/graph/cast_insertion.hpp
Public attributes
NodeId node = NO_NODEThe node whose dtype boundary this cast resolves.
OpID op {}That node's operation, in the graph as it arrived.
ValueId source = NO_VALUEThe value read.
ValueId destination = NO_VALUEThe value written.
DType from = DType::FLOAT32The source's element type.
DType to = DType::FLOAT32The destination's element type.
bool feeds_operand = trueWhether this cast feeds an operand or widens a result.
The two directions fail differently and are worth telling apart in a report: an operand cast that is missing throws, a result cast that is missing writes a low-precision answer into a high-precision buffer and trains on it.

