pulsatrix
Loading...
Searching...
No Matches
pulsatrix::CircuitNode Struct Reference

One node of a CircuitGraph: a computation-graph node plus its importance score. More...

#include <circuit_graph.hpp>

Public Attributes

NodeId id
 The node's id in the ComputationGraph this circuit was built from.
 
OpType op_type
 The node's op-type tag, copied at build time.
 
std::optional< std::string > label
 The node's optional human-readable label (e.g. a layer name).
 
float ablation_effect
 Ablation importance: the L2 distance between the network's real output and the output it produces when this node's activation is replaced by zeros.
 

Detailed Description

One node of a CircuitGraph: a computation-graph node plus its importance score.

Member Data Documentation

◆ ablation_effect

float pulsatrix::CircuitNode::ablation_effect

Ablation importance: the L2 distance between the network's real output and the output it produces when this node's activation is replaced by zeros.

Note
Larger means "zeroing this node changes what the network outputs more", i.e. this node matters more. Always >= 0. The output node's score is 0.0f by convention, not by computation – see ExplainerContext::build_circuit_graph().

◆ id

NodeId pulsatrix::CircuitNode::id

The node's id in the ComputationGraph this circuit was built from.

◆ label

std::optional<std::string> pulsatrix::CircuitNode::label

The node's optional human-readable label (e.g. a layer name).

◆ op_type

OpType pulsatrix::CircuitNode::op_type

The node's op-type tag, copied at build time.


The documentation for this struct was generated from the following file: