Skip to content

Instantly share code, notes, and snippets.

View zhangqiaorjc's full-sized avatar

Qiao Zhang zhangqiaorjc

View GitHub Profile
from __future__ import annotations
from contextlib import contextmanager
from typing import NamedTuple, Callable, Optional, Any
import numpy as np
Array = Any
class Node(NamedTuple):
vjp: Optional[Callable]
parents: List[Node]