soniajoseph / ViT-Prisma

ViT Prisma is a mechanistic interpretability library for Vision Transformers (ViTs).
Other
165 stars 18 forks source link

Optimization of JS visualization code #61

Closed PraneetNeuro closed 8 months ago

PraneetNeuro commented 8 months ago

Since imageData is a typed array, it supports the set method that reduces the number of write ops as we write to a contiguous block of memory.

soniajoseph commented 8 months ago

excellent, thank you!