docker pull nvcr.io/nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04
docker run -e NVIDIA_VISIBLE_DEVICES=0 --gpus 0 -it --shm-size=1g --ulimit memlock=-1 --rm -v $PWD:/workspace/work $docker_image
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 ([email protected]), Zhi Chen ([email protected]) 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. |
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