Contents

struct

SushiAI::Graph::InsertedCast

One conversion the pass added.

Declared in
include/SushiAI/graph/cast_insertion.hpp

Public attributes

NodeId node = NO_NODE

The node whose dtype boundary this cast resolves.

OpID op {}

That node's operation, in the graph as it arrived.

ValueId source = NO_VALUE

The value read.

ValueId destination = NO_VALUE

The value written.

DType from = DType::FLOAT32

The source's element type.

DType to = DType::FLOAT32

The destination's element type.

bool feeds_operand = true

Whether 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.