Skip to content

Instantly share code, notes, and snippets.

View cbalint13's full-sized avatar

Balint Cristian cbalint13

  • Earth, MilkyWay, Laniakea
View GitHub Profile
@cbalint13
cbalint13 / yolov3-tiny.tune.log
Last active January 24, 2020 15:58
YoloV3 Tiny quantization tuned parameters
{"i": ["llvm", "topi_x86_conv2d_NCHWc", [["TENSOR", [1, 256, 26, 26], "int8"], ["TENSOR", [255, 256, 1, 1], "int8"], [1, 1], [0, 0], [1, 1], "NCHW", "int32"], {}, ["conv2d", [1, 256, 26, 26, "int8"], [255, 256, 1, 1, "int8"], [1, 1], [0, 0], [1, 1], "NCHW", "int32"], {"i": 5, "t": "direct", "c": null, "e": [["tile_ic", "sp", [8, 32]], ["tile_oc", "sp", [255, 1]], ["tile_ow", "sp", [26, 1]], ["tile_oh", "ot", 1]]}], "r": [[0.002006969857142857], 0, 1.7788748741149902, 1564778173.0481853], "v": 0.1}
{"i": ["llvm", "topi_x86_conv2d_NCHWc", [["TENSOR", [1, 384, 26, 26], "int8"], ["TENSOR", [256, 384, 3, 3], "int8"], [1, 1], [1, 1], [1, 1], "NCHW", "int32"], {}, ["conv2d", [1, 384, 26, 26, "int8"], [256, 384, 3, 3, "int8"], [1, 1], [1, 1], [1, 1], "NCHW", "int32"], {"i": 525, "t": "direct", "c": null, "e": [["tile_ic", "sp", [3, 128]], ["tile_oc", "sp", [8, 32]], ["tile_ow", "sp", [1, 26]], ["unroll_kw", "ot", true]]}], "r": [[0.01963637225], 0, 5.333110809326172, 1564779398.703997], "v": 0.1}
{"i": ["llvm", "topi
@cbalint13
cbalint13 / yolo-quantization-demo.py
Last active January 10, 2024 09:29
TVM quantized YoloV3 demo
#!/usr/bin/python3
import nnvm
import nnvm.frontend.darknet
import tvm.relay.testing.yolo_detection
import tvm.relay.testing.darknet
import tvm.relay.transform as _transform
import matplotlib.pyplot as plt
import numpy as np
import tvm
@cbalint13
cbalint13 / winograd_tile_size.py
Last active August 6, 2019 05:47
Upgrade TOPHUB winograd entries.
#!/usr/bin/python3
import sys
import json
old_file = 'arm_cpu_v0.04.log'
new_file = 'arm_cpu_v0.05.log'
fn = open(new_file, 'w')
with open(old_file) as fp:
@cbalint13
cbalint13 / old-vs-new-winograd-2_4.log
Created July 24, 2019 20:23
TVM_Winograd_OLD_vs_NEW_2_4_6
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#