Skip to content

Instantly share code, notes, and snippets.

View KyleOng's full-sized avatar
🎯
Focusing

Kyle KyleOng

🎯
Focusing
  • Malaysia
View GitHub Profile
@KyleOng
KyleOng / sparse_dataloader.py
Created April 8, 2021 06:59
Pytorch dataloader for sparse tensor
from typing import Union
import numpy as np
import torch
from torch.utils.data import Dataset, DataLoader
from scipy.sparse import (random,
coo_matrix,
csr_matrix,
vstack)
from tqdm import tqdm
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active June 29, 2024 23:01
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@parmentf
parmentf / GitCommitEmoji.md
Last active June 28, 2024 10:47
Git Commit message Emoji