Skip to content

Instantly share code, notes, and snippets.

Avatar

Tan Li litanlitudan

View GitHub Profile
@litanlitudan
litanlitudan / pub.gpg
Last active December 11, 2022 01:13
GPG Keys
View pub.gpg
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGOVG64BEADBFguT2Rm7x6I9RaGL6IKAZh96PcyeMrFVe8lXdITQDPXvlVjS
vUlT3qBDpYCSyOVLkoPceqocEf2Bfyq4kBJ0nXfpFLE0vCgG8ykEO5OtlFH649I+
rBwJrKbgn3AvYlK0BI9n/kg/MKdXHHuu/PhNLUzePQS521QoWKduSgd/e0pG7oXJ
RxoM50ohMd3k/2jnELJnmu33ORHc/t7aoEdzzMSg4eS7cQQIYZjtfrC88VzXtF7l
y1gMSruwULqzLRwJCf0DLlmGujY6r42LgyM9t5QU0SHdvRoUTauyRjhTCObIodQ8
72HviamF7+F8ZE17gZIQ5cixSb5ABU/7sDWXhz7nUGUmMvzMHrswtiIK6lD2VauK
kGGVCEhoVdI7F3Z5x1g9pL3fQe+Q2vgkAMyx5b9wwNS4wU7h3or3tHki4QDVGqoe
BwRUDBEXJrfL88NkXIiVKzCOWakN/3LWoETkQumL8iWY3e1xBRG5RtuVPdDNy9UU
@litanlitudan
litanlitudan / deploy.sh
Last active October 26, 2022 06:47
MLIR-Playground Deployment Script
View deploy.sh
wget https://github.com/MLIR-China/mlir-playground/releases/latest/download/mlir-playground-static.tar.gz
tar xzvf mlir-playground-static.tar.gz
cd mlir-playground-static
python3 -m http.server
@litanlitudan
litanlitudan / README.md
Last active December 23, 2021 06:46
Automatic git commit
View README.md

Overview

This gist shows the steps to automatically git commit changes under a folder of interest to your github.

Step 0

Create a repo on github for the folder of interest and intialize the folder as a git repo by git init

Step 1

Create a subfolder (say scripts) and download the aut-commit.sh to that folder.

cd /path/to/the/folder/of/interest
@litanlitudan
litanlitudan / mnist.py
Created March 3, 2021 04:04
XLA-HLO to MLIR-HLO for TF with training
View mnist.py
import tensorflow as tf
# Size of each input image, 28 x 28 pixels
IMAGE_SIZE = 28 * 28
# Number of distinct number labels, [0..9]
NUM_CLASSES = 10
# Number of examples in each training batch (step)
TRAIN_BATCH_SIZE = 100
# Number of training steps to run
TRAIN_STEPS = 1000