Skip to content

Instantly share code, notes, and snippets.

View yaoyaoding's full-sized avatar

Yaoyao Ding yaoyaoding

View GitHub Profile
import numpy as np
import argparse
import os
from typing import Tuple
import io
import tvm
import tvm.relay
import time
import cv2
import torch
@yaoyaoding
yaoyaoding / demo.py
Last active October 9, 2019 20:45
The code to reproduce error using the auto-tuned schedule, which is modified from the auto-tune tutorial.
import os
import numpy as np
import tvm
from tvm import autotvm
from tvm import relay
import tvm.relay.testing
from tvm.autotvm.tuner import XGBTuner, GATuner, RandomTuner, GridSearchTuner
from tvm.contrib.util import tempdir
import tvm.contrib.graph_runtime as runtime