Skip to content

Instantly share code, notes, and snippets.

View SrivastavaKshitij's full-sized avatar
💭
If you wait for luck to turn up, life becomes boring - Mikhail Tal

Kshitij Srivastava SrivastavaKshitij

💭
If you wait for luck to turn up, life becomes boring - Mikhail Tal
View GitHub Profile
@SrivastavaKshitij
SrivastavaKshitij / torch_tvm_install_instructions.md
Last active September 18, 2019 02:59
Installing torch tvm inside a container

Steps to install torch tvm inside a container

Pull nvidia cuda ngc container

docker pull nvcr.io/nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04

Start docker container

docker run -e NVIDIA_VISIBLE_DEVICES=0 --gpus 0 -it --shm-size=1g --ulimit memlock=-1  --rm  -v $PWD:/workspace/work $docker_image   
@SrivastavaKshitij
SrivastavaKshitij / pdb.txt
Created September 24, 2020 18:15
PDB instructions
There are two ways of invoking pdb
python -m pdb <application>; Then set the breakpoint b <lineno> ; then run c
write import pdb; pdb.set_trace() where you want the debugger to stop and just run python <applicatio> ; pdb will stop at that line
common commands are
a. w (where) to get stack trace
b. c (continue) - it will run the app until the next breakpoint
c. n (next) - will execute the current line and move to the next
d. s (step) - will step into the current line if its a function
#!/usr/bin/env python
# coding: utf-8
# # [TVMConf 2020] BYOC Tutorial Demo
#
# Cody Yu (hyuz@amazon.com), Zhi Chen (chzhi@amazon.com) from AWS AI.
#
#
#
# This demo has two parts. In the first part, we use a simple Relay graph to walkthrough the BYOC workflow. In the second part, we build a SSD model with TensorRT BYOC integration to showcase a real world application.
@SrivastavaKshitij
SrivastavaKshitij / commit.md
Created September 15, 2022 14:47
Squash multiple commits into one

let's suppose there are 4 commits on top of the latest master that we want to squash

commit 1
commit 2
commit 3
commit 4
origin/master, origin/HEAD, master
  1. rebase on master with SHA