Skip to content

Instantly share code, notes, and snippets.

View Anindyadeep's full-sized avatar
🎯
Focusing On making myself a T-shaped guy ...

Anindyadeep Anindyadeep

🎯
Focusing On making myself a T-shaped guy ...
View GitHub Profile
@Anindyadeep
Anindyadeep / autograd_forward_ops.py
Last active July 22, 2024 04:26
Autograd basic forward operations
class Value:
def __init__(self, data: int, label: str, _children = (), _op: str = ""):
self.data = data
self.label = label
self._children = set(_children)
self._op = _op
def __repr__(self) -> str:
return f"Value({self.label}, data={self.data})"