micrograd 0.1.0
Small C implementation of micrograd
Loading...
Searching...
No Matches
mg_graph_checkpoint Struct Reference

Snapshot of a graph's allocation state. More...

#include <value.h>

Data Fields

mg_valuevalues
 
size_t len
 

Detailed Description

Snapshot of a graph's allocation state.

Use a checkpoint with mg_graph_restore to roll a graph back to an earlier state.

Field Documentation

◆ len

size_t mg_graph_checkpoint::len

Number of values at the checkpoint.

◆ values

mg_value* mg_graph_checkpoint::values

Head value at the checkpoint.


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