Skip to content

Instantly share code, notes, and snippets.

View youkaichao's full-sized avatar
:octocat:
curious

youkaichao youkaichao

:octocat:
curious
View GitHub Profile
@youkaichao
youkaichao / dynamic_conv_bn.py
Created August 25, 2023 16:40
Demonstrate very dynamic usage case of conv-bn pairs.
import torch
from torch import nn
import copy
from torch.fx.experimental.efficient_conv_bn_eval import turn_on_efficient_conv_bn_eval
class BackboneModel(nn.Module):
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
@youkaichao
youkaichao / syntax.s
Created April 23, 2018 03:01 — forked from mishurov/syntax.s
AT&T assembly syntax and IA-32 instructions
# --------
# Hardware
# --------
# Opcode - operational code
# Assebly mnemonic - abbreviation for an operation
# Instruction Code Format (IA-32)
# - Optional instruction prefix
# - Operational code