Skip to content

Instantly share code, notes, and snippets.

View tahashieenavaz's full-sized avatar
🥦
still learning

Taha Shieenavaz tahashieenavaz

🥦
still learning
View GitHub Profile
@nucliweb
nucliweb / Install-OpenCV-Mac-M1.md
Last active September 25, 2025 11:12
OpenCV C++ Mac M1 Installation Steps
@lintangsutawika
lintangsutawika / crelu.py
Last active December 4, 2025 13:55
Simple PyTorch implementation of Concatenated ReLU
import torch
import torch.nn.functional as F
# Inspired from Understanding and Improving Convolutional Neural Networks via Concatenated Rectified Linear Units
# https://arxiv.org/pdf/1603.05201.pdf
class CReLU(nn.Module):
def __init__(self, inplace=False):
super(CReLU, self).__init__()
export function magicMethods (clazz) {
// A toggle switch for the __isset method
// Needed to control "prop in instance" inside of getters
let issetEnabled = true
const classHandler = Object.create(null)
// Trap for class instantiation
classHandler.construct = (target, args, receiver) => {
// Wrapped class instance