Skip to content

Instantly share code, notes, and snippets.

@pohanchi
pohanchi / sap.py
Last active May 8, 2025 23:25
Self-attention-pooling module for speaker classification
import torch
from torch import nn
class SelfAttentionPooling(nn.Module):
"""
Implementation of SelfAttentionPooling
Original Paper: Self-Attention Encoding and Pooling for Speaker Recognition
https://arxiv.org/pdf/2008.01077v1.pdf
"""
@brysonreece
brysonreece / tailwind.config.js
Created February 22, 2020 07:30
Tailwind Social Colors
// colors from materialui.co/socialcolors
module.exports = {
theme: {
colors: {
'facebook': '#3b5999',
'messenger': '#0084ff',
'twitter': '#55acee',
'linkedin': '#0077b5',
'skype': '#00aff0',
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active December 5, 2025 10:58
set -e, -u, -o, -x pipefail explanation