Skip to content

Instantly share code, notes, and snippets.

View fvarno's full-sized avatar
🏟️
Building something phenomenon ...

Farshid Varno fvarno

🏟️
Building something phenomenon ...
View GitHub Profile
@fvarno
fvarno / Matrix.md
Created June 15, 2023 20:14 — forked from nadavrot/Matrix.md
Efficient matrix multiplication

High-Performance Matrix Multiplication

This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).

Intro

Matrix multiplication is a mathematical operation that defines the product of

@fvarno
fvarno / data_loader.py
Created November 5, 2018 13:51 — forked from kevinzakka/data_loader.py
Train, Validation and Test Split for torchvision Datasets
"""
Create train, valid, test iterators for CIFAR-10 [1].
Easily extended to MNIST, CIFAR-100 and Imagenet.
[1]: https://discuss.pytorch.org/t/feedback-on-pytorch-for-kaggle-competitions/2252/4
"""
import torch
import numpy as np