repo
stringlengths
1
99
file
stringlengths
13
215
code
stringlengths
12
59.2M
file_length
int64
12
59.2M
avg_line_length
float64
3.82
1.48M
max_line_length
int64
12
2.51M
extension_type
stringclasses
1 value
RBNN
RBNN-master/imagenet/models_cifar/resnet2.py
'''ResNet in PyTorch. For Pre-activation ResNet, see 'preact_resnet.py'. Reference: [1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun Deep Residual Learning for Image Recognition. arXiv:1512.03385 ''' import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.init as init from modules ...
4,704
33.343066
107
py
RBNN
RBNN-master/imagenet/models_cifar/resnet.py
''' Properly implemented ResNet-s for CIFAR10 as described in paper [1]. The implementation and structure of this file is hugely influenced by [2] which is implemented for ImageNet and doesn't have option A for identity. Moreover, most of the implementations on the web is copy-paste from torchvision's resnet and has w...
6,508
31.708543
120
py
RBNN
RBNN-master/imagenet/models_cifar/vgg.py
'''VGG for CIFAR10. FC layers are removed. (c) YANG, Wei ''' import torch.nn as nn import torch.utils.model_zoo as model_zoo import math from modules import * __all__ = ['vgg_small_1w1a'] model_urls = { 'vgg11': 'https://download.pytorch.org/models/vgg11-bbd30ac9.pth', 'vgg13': 'https://download.pytorch.org...
7,083
30.766816
113
py
RBNN
RBNN-master/imagenet/models_cifar/resnet_bireal.py
''' Properly implemented ResNet-s for CIFAR10 as described in paper [1]. The implementation and structure of this file is hugely influenced by [2] which is implemented for ImageNet and doesn't have option A for identity. Moreover, most of the implementations on the web is copy-paste from torchvision's resnet and has w...
6,557
31.626866
120
py
RBNN
RBNN-master/imagenet/utils/common.py
import os import torch import logging.config import shutil import torch.nn as nn import numpy import datetime def setup_logging(log_file='log.txt',filemode='w'): """Setup logging configuration """ logging.basicConfig(level=logging.DEBUG, format="%(asctime)s - %(levelname)s - %(messa...
2,252
27.884615
93
py
RBNN
RBNN-master/imagenet/utils/options.py
import argparse import os """ args """ parser = argparse.ArgumentParser(description='RotationNet') # Logging parser.add_argument( '--results_dir', metavar='RESULTS_DIR', default='./results', help='results dir') parser.add_argument( '--save', metavar='SAVE', default='', help='saved fol...
3,679
18.067358
60
py
RBNN
RBNN-master/cifar/main.py
import argparse import os import time import logging import random import torch import torch.nn as nn import torch.backends.cudnn as cudnn import models_cifar import models_imagenet import numpy as np from torch.autograd import Variable from utils.options import args from utils.common import * from modules import * fro...
12,926
38.411585
161
py
RBNN
RBNN-master/cifar/modules/binarized_modules.py
import torch import torch.nn as nn import math import numpy as np import torch.nn.functional as F from torch.autograd import Function, Variable from scipy.stats import ortho_group from utils.options import args class BinarizeConv2d(nn.Conv2d): def __init__(self, *kargs, **kwargs): super(BinarizeConv2d, se...
3,835
34.518519
101
py
RBNN
RBNN-master/cifar/dataset/dataset.py
from datetime import datetime import os import torch from torch import nn import torch.nn.functional as F from torchvision import transforms, datasets from torch.utils.data import DataLoader def load_data(type='both',dataset='cifar10',data_path='/data',batch_size = 256,batch_size_test=256,num_workers=0): # load da...
3,858
37.59
134
py
RBNN
RBNN-master/cifar/dataset/imagenet.py
import time import torch.utils.data import nvidia.dali.ops as ops import nvidia.dali.types as types import torchvision.datasets as datasets from nvidia.dali.pipeline import Pipeline import torchvision.transforms as transforms from nvidia.dali.plugin.pytorch import DALIClassificationIterator, DALIGenericIterator class...
6,546
51.376
131
py
RBNN
RBNN-master/cifar/models_imagenet/resnet.py
import torch.nn as nn import math import torch.utils.model_zoo as model_zoo import torch.nn.init as init from modules import * BN = None __all__ = ['resnet18_1w1a', 'resnet34_1w1a'] model_urls = { 'resnet18': 'https://download.pytorch.org/models/resnet18-5c106cde.pth', 'resnet34': 'https://download.pytorch....
5,965
31.248649
97
py
RBNN
RBNN-master/cifar/models_cifar/resnet2.py
'''ResNet in PyTorch. For Pre-activation ResNet, see 'preact_resnet.py'. Reference: [1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun Deep Residual Learning for Image Recognition. arXiv:1512.03385 ''' import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.init as init from modules ...
4,704
33.343066
107
py
RBNN
RBNN-master/cifar/models_cifar/resnet.py
''' Properly implemented ResNet-s for CIFAR10 as described in paper [1]. The implementation and structure of this file is hugely influenced by [2] which is implemented for ImageNet and doesn't have option A for identity. Moreover, most of the implementations on the web is copy-paste from torchvision's resnet and has w...
6,508
31.708543
120
py
RBNN
RBNN-master/cifar/models_cifar/vgg.py
'''VGG for CIFAR10. FC layers are removed. (c) YANG, Wei ''' import torch.nn as nn import torch.utils.model_zoo as model_zoo import math from modules import * __all__ = ['vgg_small_1w1a'] model_urls = { 'vgg11': 'https://download.pytorch.org/models/vgg11-bbd30ac9.pth', 'vgg13': 'https://download.pytorch.org...
7,083
30.766816
113
py
RBNN
RBNN-master/cifar/models_cifar/resnet_bireal.py
''' Properly implemented ResNet-s for CIFAR10 as described in paper [1]. The implementation and structure of this file is hugely influenced by [2] which is implemented for ImageNet and doesn't have option A for identity. Moreover, most of the implementations on the web is copy-paste from torchvision's resnet and has w...
6,557
31.626866
120
py
RBNN
RBNN-master/cifar/utils/common.py
import os import torch import logging.config import shutil import torch.nn as nn import numpy import datetime def setup_logging(log_file='log.txt',filemode='w'): """Setup logging configuration """ logging.basicConfig(level=logging.DEBUG, format="%(asctime)s - %(levelname)s - %(messa...
2,252
27.884615
93
py
RBNN
RBNN-master/cifar/utils/options.py
import argparse import os """ args """ parser = argparse.ArgumentParser(description='RotationNet') # Logging parser.add_argument( '--results_dir', metavar='RESULTS_DIR', default='./results', help='results dir') parser.add_argument( '--save', metavar='SAVE', default='', help='saved fol...
3,554
18.010695
60
py
DeepLabV3FineTuning
DeepLabV3FineTuning-master/sources/dataloader.py
# from __future__ import print_function # from __future__ import division import torch import numpy as np from torchvision import transforms import os import glob from PIL import Image class DataLoaderSegmentation(torch.utils.data.dataset.Dataset): def __init__(self, folder_path, mode): super(DataLoaderSeg...
2,806
38.535211
97
py
DeepLabV3FineTuning
DeepLabV3FineTuning-master/sources/main_training.py
import torch import torch.nn as nn import torch.optim as optim import torchvision import os import argparse import pathlib # Local import from dataloader import DataLoaderSegmentation from custom_model import initialize_model from train import train_model print("PyTorch Version: ",torch.__version__) print("Torchvisio...
4,292
39.5
205
py
DeepLabV3FineTuning
DeepLabV3FineTuning-master/sources/custom_model.py
import torchvision from torchvision import models import torch class DeepLabV3Wrapper(torch.nn.Module): def __init__(self, model): super(DeepLabV3Wrapper, self).__init__() self.model = model def forward(self, input): output = self.model(input)['out'] return output def initiali...
960
33.321429
124
py
DeepLabV3FineTuning
DeepLabV3FineTuning-master/sources/main_inference.py
import torch import numpy as np from torchvision import transforms import cv2 from PIL import Image import custom_model # Number of classes in the dataset num_classes = 5 device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") model, input_size = custom_model.initialize_model(num_classes, keep_featu...
1,775
27.190476
114
py
DeepLabV3FineTuning
DeepLabV3FineTuning-master/sources/main_export.py
import torch import custom_model # Number of classes in the dataset num_classes = 2 device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") model_deeplabv3, input_size = custom_model.initialize_model(num_classes, keep_feature_extract=True, use_pretrained=False) state_dict = torch.load("training_out...
824
34.869565
121
py
DeepLabV3FineTuning
DeepLabV3FineTuning-master/sources/train.py
import os import torch import numpy as np import time import copy import cv2 def debug_export_before_forward(inputs, labels, idx): # im = inputs[0]*255; im = inputs[0]; im = im.to('cpu').numpy() im[0, :, :] = im[0, :, :] * 0.229 + 0.485 im[1, :, :] = im[1, :, :] * 0.224 + 0.456 im[2, :, :] = im...
4,494
33.05303
112
py
tvm
tvm-main/conftest.py
# 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 u...
4,701
42.137615
137
py
tvm
tvm-main/apps/bundle_deploy/build_model.py
# 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 u...
6,491
37.642857
101
py
tvm
tvm-main/apps/ios_rpc/tests/ios_rpc_mobilenet.py
# 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 u...
6,368
33.241935
97
py
tvm
tvm-main/apps/cpp_rtvm/scripts/download_models.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # 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 Licen...
1,339
35.216216
99
py
tvm
tvm-main/apps/android_camera/models/prepare_model.py
# 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 u...
5,118
35.564286
100
py
tvm
tvm-main/apps/pt_tvmdsoop/tests/test_torch_graph_module.py
#!/usr/bin/env python # 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 # "L...
4,793
35.876923
100
py
tvm
tvm-main/apps/pt_tvmdsoop/tests/test_optimize_torch.py
# pylint: disable=missing-class-docstring #!/usr/bin/env python # 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...
5,138
30.722222
98
py
tvm
tvm-main/apps/pt_tvmdsoop/tests/test_as_torch.py
#!/usr/bin/env python # 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 # "L...
8,027
29.758621
95
py
tvm
tvm-main/apps/pt_tvmdsoop/tests/test_torch_compile_cpu.py
#!/usr/bin/env python # 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 # "L...
1,877
26.217391
62
py
tvm
tvm-main/apps/pt_tvmdsoop/tests/test_torch_vm_module.py
#!/usr/bin/env python # 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 # "L...
4,647
36.788618
90
py
tvm
tvm-main/apps/pt_tvmdsoop/tests/test_boolean_tensor.py
#!/usr/bin/env python # 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 # "L...
3,590
26.623077
84
py
tvm
tvm-main/apps/pt_tvmdsoop/tests/test_torch_script.py
#!/usr/bin/env python # 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 # "L...
3,270
26.957265
95
py
tvm
tvm-main/apps/pt_tvmdsoop/tests/test_trace_tvm_module.py
#!/usr/bin/env python # 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 # "L...
1,892
31.084746
66
py
tvm
tvm-main/apps/pt_tvmdsoop/tests/test_torch_compile_gpu.py
#!/usr/bin/env python # 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 # "L...
1,857
28.03125
62
py
tvm
tvm-main/apps/benchmark/util.py
# 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 u...
3,448
32.813725
108
py
tvm
tvm-main/apps/benchmark/adreno/adreno_gpu_bench_texture.py
# 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 u...
10,884
33.776358
108
py
tvm
tvm-main/apps/benchmark/adreno/adreno_gpu_bench_clml.py
# 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 u...
11,026
33.785489
108
py
tvm
tvm-main/gallery/tutorial/tvmc_command_line_driver.py
# 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 u...
22,558
41.887833
138
py
tvm
tvm-main/gallery/tutorial/autotvm_matmul_x86.py
# 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 u...
16,251
41.881266
94
py
tvm
tvm-main/gallery/tutorial/tvmc_python.py
# 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 u...
9,741
32.136054
139
py
tvm
tvm-main/gallery/how_to/work_with_microtvm/micro_pytorch.py
# 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 u...
7,190
33.572115
114
py
tvm
tvm-main/gallery/how_to/work_with_microtvm/micro_train.py
# 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 u...
31,816
48.40528
182
py
tvm
tvm-main/gallery/how_to/work_with_pytorch/using_as_torch.py
# 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 u...
5,600
33.574074
109
py
tvm
tvm-main/gallery/how_to/work_with_pytorch/using_optimized_torch.py
# 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 u...
5,431
34.272727
101
py
tvm
tvm-main/gallery/how_to/tune_with_autotvm/tune_relay_mobile_gpu.py
# 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 u...
17,315
38.534247
100
py
tvm
tvm-main/gallery/how_to/tune_with_autotvm/tune_conv2d_cuda.py
# 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 u...
10,170
39.043307
162
py
tvm
tvm-main/gallery/how_to/tune_with_autotvm/tune_relay_arm.py
# 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 u...
17,042
38.269585
143
py
tvm
tvm-main/gallery/how_to/tune_with_autotvm/tune_relay_cuda.py
# 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 u...
16,284
38.719512
135
py
tvm
tvm-main/gallery/how_to/tune_with_autotvm/tune_relay_x86.py
# 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 u...
13,571
41.149068
272
py
tvm
tvm-main/gallery/how_to/compile_models/from_onnx.py
# 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 u...
5,709
40.985294
95
py
tvm
tvm-main/gallery/how_to/compile_models/from_pytorch.py
# 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 u...
5,523
31.116279
97
py
tvm
tvm-main/gallery/how_to/compile_models/from_tflite.py
# 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 u...
6,309
31.525773
144
py
tvm
tvm-main/gallery/how_to/compile_models/from_mxnet.py
# 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 u...
5,334
35.047297
110
py
tvm
tvm-main/gallery/how_to/compile_models/from_keras.py
# 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 u...
5,079
34.774648
92
py
tvm
tvm-main/gallery/how_to/compile_models/from_coreml.py
# 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 u...
4,043
34.165217
85
py
tvm
tvm-main/gallery/how_to/compile_models/from_paddle.py
# 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 u...
4,003
32.647059
102
py
tvm
tvm-main/gallery/how_to/compile_models/from_oneflow.py
# 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 u...
5,796
30.677596
99
py
tvm
tvm-main/gallery/how_to/tune_with_autoscheduler/tune_network_x86.py
# 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 u...
15,076
42.575145
101
py
tvm
tvm-main/gallery/how_to/tune_with_autoscheduler/tune_network_cuda.py
# 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 u...
14,090
44.163462
101
py
tvm
tvm-main/gallery/how_to/tune_with_autoscheduler/tune_network_arm.py
# 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 u...
18,708
41.424036
101
py
tvm
tvm-main/gallery/how_to/tune_with_autoscheduler/tune_network_mali.py
# 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 u...
16,209
43.903047
110
py
tvm
tvm-main/gallery/how_to/work_with_relay/build_gcn.py
# 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 u...
11,740
33.031884
156
py
tvm
tvm-main/gallery/how_to/extend_tvm/bring_your_own_datatypes.py
# 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 u...
17,598
41.92439
286
py
tvm
tvm-main/gallery/how_to/extend_tvm/use_pass_infra.py
# 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 u...
11,740
41.694545
102
py
tvm
tvm-main/gallery/how_to/deploy_models/deploy_model_on_adreno_tvmc.py
# 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 u...
6,849
33.422111
127
py
tvm
tvm-main/gallery/how_to/deploy_models/deploy_model_on_android.py
# 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 u...
11,684
31.368421
173
py
tvm
tvm-main/gallery/how_to/deploy_models/deploy_prequantized.py
# 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 u...
9,941
39.91358
93
py
tvm
tvm-main/gallery/how_to/deploy_models/deploy_model_on_adreno.py
# 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 u...
17,091
35.059072
158
py
tvm
tvm-main/gallery/how_to/deploy_models/deploy_model_on_nano.py
# 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 u...
8,552
33.768293
99
py
tvm
tvm-main/gallery/how_to/deploy_models/deploy_object_detection_pytorch.py
# 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 u...
4,953
31.168831
95
py
tvm
tvm-main/gallery/how_to/deploy_models/deploy_sparse.py
# 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 u...
19,380
52.244505
319
py
tvm
tvm-main/gallery/how_to/deploy_models/deploy_model_on_rasp.py
# 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 u...
8,144
34.25974
116
py
tvm
tvm-main/gallery/how_to/deploy_models/deploy_quantized.py
# 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 u...
6,145
35.802395
88
py
tvm
tvm-main/python/gen_requirements.py
#!/usr/bin/env python3 # 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 # "L...
22,224
32.221226
244
py
tvm
tvm-main/python/tvm/testing/utils.py
# 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 u...
70,687
32.109133
99
py
tvm
tvm-main/python/tvm/relay/testing/densenet.py
# 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 u...
5,127
34.123288
101
py
tvm
tvm-main/python/tvm/relay/testing/dcgan.py
# 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 u...
5,048
28.354651
99
py
tvm
tvm-main/python/tvm/relay/testing/inception_v3.py
# 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 u...
12,575
28.521127
98
py
tvm
tvm-main/python/tvm/relay/frontend/mxnet.py
# 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 u...
112,322
36.959784
100
py
tvm
tvm-main/python/tvm/relay/frontend/mxnet_qnn_op_utils.py
# 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 u...
16,337
35.632287
110
py
tvm
tvm-main/python/tvm/relay/frontend/keras.py
# 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 u...
59,855
36.883544
100
py
tvm
tvm-main/python/tvm/relay/frontend/pytorch.py
# 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 u...
194,224
37.529062
120
py
tvm
tvm-main/python/tvm/relay/frontend/onnx.py
# 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 u...
268,754
36.311537
120
py
tvm
tvm-main/python/tvm/relay/frontend/coreml.py
# 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 u...
22,188
35.555189
98
py
tvm
tvm-main/python/tvm/relay/frontend/common.py
# 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 u...
40,194
32.000821
99
py
tvm
tvm-main/python/tvm/relay/frontend/qnn_torch.py
# 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 u...
42,792
34.366116
99
py
tvm
tvm-main/python/tvm/relay/frontend/__init__.py
# 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 u...
1,400
36.864865
66
py
tvm
tvm-main/python/tvm/relay/frontend/caffe.py
# 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 u...
37,920
36.845309
100
py
tvm
tvm-main/python/tvm/relay/frontend/caffe2.py
# 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 u...
19,850
31.81157
108
py
tvm
tvm-main/python/tvm/relay/frontend/pytorch_utils.py
# 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 u...
15,098
34.864608
99
py
tvm
tvm-main/python/tvm/relay/op/transform.py
# 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 u...
62,500
30.141505
100
py
tvm
tvm-main/python/tvm/relay/op/image/image.py
# 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 u...
16,683
30.839695
97
py
tvm
tvm-main/python/tvm/relay/op/contrib/libtorch.py
# 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 u...
1,427
37.594595
84
py
tvm
tvm-main/python/tvm/relay/op/contrib/__init__.py
# 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 u...
1,113
36.133333
63
py
tvm
tvm-main/python/tvm/driver/tvmc/frontends.py
# 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 u...
14,237
28.724426
99
py
tvm
tvm-main/python/tvm/meta_schedule/testing/relay_workload.py
# 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 u...
10,611
32.371069
94
py
tvm
tvm-main/python/tvm/meta_schedule/testing/torchbench/utils.py
# 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 u...
5,837
33.75
96
py