Skip to content

Instantly share code, notes, and snippets.

[style]
# Align closing bracket with visual indentation.
align_closing_bracket_with_visual_indent=True
# Allow dictionary keys to exist on multiple lines. For example:
#
# x = {
# ('this is the first element of a tuple',
# 'this is the second element of a tuple'):
# value,
import tvm
from tvm import relay
from tvm.relay.dataflow_pattern import *
#class ExtractArgs(tvm.relay.ExprMutator):
# # Mutate the graph to replace the matched graph input with new vars.
# def __init__(self, mapped_vars):
# super(ExtractArgs, self).__init__()
# self.mapped_vars = set(mapped_vars)
# self.vars = []
@comaniac
comaniac / lorien_vscode_settings.json
Created February 22, 2020 00:40
Rename and put this file to <path-to-lorien>/.vscode/settings.json
{
"python.pythonPath": "/usr/bin/python3",
"python.linting.mypyEnabled": true,
"python.linting.pylintEnabled": true,
"python.linting.pylintCategorySeverity.convention": "Warning",
"python.linting.pylintCategorySeverity.refactor": "Warning",
"python.linting.pylintCategorySeverity.warning": "Warning",
"python.linting.pylintArgs": [
"--rcfile",
"${workspaceRoot}/tests/lint/pylintrc"
@comaniac
comaniac / tvm_settings.json
Last active November 20, 2019 19:06
VSCode Settings for TVM
{
"python.pythonPath": "/usr/local/bin/python3",
"python.testing.nosetestArgs": [
"tests"
],
"python.testing.pytestEnabled": false,
"python.testing.unittestEnabled": false,
"python.testing.nosetestsEnabled": false,
"python.testing.promptToConfigure": false,
"python.linting.pylintEnabled": true,