Skip to content

Instantly share code, notes, and snippets.

View MarkTension's full-sized avatar
🎯
Focusing

MarkTension MarkTension

🎯
Focusing
View GitHub Profile
@MarkTension
MarkTension / memleak_debugger_pytorch.py
Created October 28, 2022 06:53
memory leak ContextDecorator
import gc
import torch
import gc
from contextlib import ContextDecorator
# pytorch method to find number of tensors in the graph
def get_n_tensors():
tensors= []
for obj in gc.get_objects():
try:
@MarkTension
MarkTension / CGResources.md
Last active July 29, 2020 08:37
Computer Graphics & project ideas: A pipeline for learning

Computer Graphics and project ideas

general idea

This is a list of learning resources to help getting started with graphics programming. I'm not sure yet where it will take me, but often learning the general outline of all areas that can be studied is already a big part of learning in general. The focus is on advancing 3D graphics programming though GPGPU programming: learnign how to write shaders, and GLSL. Probably I don't need to work with openGL yet, but learn the engines (e.g. Unity, and three,js) first by pursuing projects I want to do. A couple of projects are at the bottom of this document.

In the end this pursuit is there to have good graphics portfolio work, and to make cool 3D graphics videos that can interact with my music.

compute shaders