Skip to content

Commit ae093b0

Browse files
committed
remove nnpack integration from the codebase
1 parent cbfc1f0 commit ae093b0

File tree

29 files changed

+0
-1577
lines changed

29 files changed

+0
-1577
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ tvm_option(USE_MIOPEN "Build with ROCM:MIOpen" OFF)
110110
tvm_option(USE_ROCBLAS "Build with ROCM:RoCBLAS" OFF)
111111
tvm_option(USE_HIPBLAS "Build with ROCM:HIPBLAS" OFF)
112112
tvm_option(USE_SORT "Build with sort support" ON)
113-
tvm_option(USE_NNPACK "Build with nnpack support" OFF)
114113
tvm_option(USE_LIBTORCH "Build with libtorch support" OFF)
115114
tvm_option(USE_RANDOM "Build with random support" ON)
116115
tvm_option(USE_MICRO_STANDALONE_RUNTIME "Build with micro.standalone_runtime support" OFF)
@@ -591,7 +590,6 @@ include(cmake/modules/contrib/Posit.cmake)
591590
include(cmake/modules/contrib/MicroStandaloneRuntime.cmake)
592591
include(cmake/modules/contrib/MSCCLPP.cmake)
593592
include(cmake/modules/contrib/Sort.cmake)
594-
include(cmake/modules/contrib/NNPack.cmake)
595593
include(cmake/modules/contrib/LibTorch.cmake)
596594
include(cmake/modules/contrib/HybridDump.cmake)
597595
include(cmake/modules/contrib/TFLite.cmake)

cmake/modules/LibInfo.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ function(add_lib_info src_file)
103103
TVM_INFO_USE_MKL="${USE_MKL}"
104104
TVM_INFO_USE_MRVL="${USE_MRVL}"
105105
TVM_INFO_USE_MSVC_MT="${USE_MSVC_MT}"
106-
TVM_INFO_USE_NNPACK="${USE_NNPACK}"
107106
TVM_INFO_USE_OPENCL="${USE_OPENCL}"
108107
TVM_INFO_USE_OPENCL_ENABLE_HOST_PTR="${USE_OPENCL_ENABLE_HOST_PTR}"
109108
TVM_INFO_USE_OPENCL_GTEST="${USE_OPENCL_GTEST}"

cmake/modules/contrib/NNPack.cmake

Lines changed: 0 additions & 38 deletions
This file was deleted.

docker/install/ubuntu_install_nnpack.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

docs/reference/api/python/contrib.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,6 @@ tvm.contrib.ndk
6868
.. automodule:: tvm.contrib.ndk
6969
:members:
7070

71-
72-
tvm.contrib.nnpack
73-
~~~~~~~~~~~~~~~~~~
74-
.. automodule:: tvm.contrib.nnpack
75-
:members:
76-
77-
7871
tvm.contrib.nvcc
7972
~~~~~~~~~~~~~~~~
8073
.. automodule:: tvm.contrib.nvcc

include/tvm/relay/attrs/nn.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -282,25 +282,6 @@ struct Conv2DWinogradAttrs : public tvm::AttrsNode<Conv2DWinogradAttrs> {
282282
}
283283
};
284284

285-
/*! \brief Attributes used in winograd weight transformation operators */
286-
struct Conv2DWinogradNNPACKWeightTransformAttrs
287-
: public tvm::AttrsNode<Conv2DWinogradNNPACKWeightTransformAttrs> {
288-
int convolution_algorithm;
289-
DataType out_dtype;
290-
291-
TVM_DECLARE_ATTRS(Conv2DWinogradNNPACKWeightTransformAttrs,
292-
"relay.attrs.Conv2DWinogradNNPACKWeightTransformAttrs") {
293-
TVM_ATTR_FIELD(convolution_algorithm)
294-
.describe(
295-
"The convolution algorithm for Winograd NNPACK. "
296-
"E.g. tvm.contrib.nnpack.ConvolutionAlgorithm.WT_8x8 for WT_8x8, "
297-
"tvm.contrib.nnpack.ConvolutionAlgorithm.WT_8x8_FP16 for WT_8x8_FP16");
298-
TVM_ATTR_FIELD(out_dtype)
299-
.set_default(NullValue<DataType>())
300-
.describe("Output data type, set to explicit type under mixed precision setting");
301-
}
302-
};
303-
304285
/*! \brief Attributes used in convolution operators */
305286
struct Conv3DAttrs : public tvm::AttrsNode<Conv3DAttrs> {
306287
Array<IndexExpr> strides;

python/tvm/contrib/nnpack.py

Lines changed: 0 additions & 235 deletions
This file was deleted.

python/tvm/relay/op/nn/_nn.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -820,22 +820,6 @@ def compute_contrib_conv2d_winograd_weight_transform(attrs, inputs, out_dtype):
820820
)
821821

822822

823-
@reg.register_compute("nn.contrib_conv2d_winograd_nnpack_weight_transform")
824-
def compute_contrib_conv2d_winograd_nnpack_weight_transform(attrs, inputs, out_dtype):
825-
"""Compute definition of contrib_conv2d_winograd_nnpack_weight_transform"""
826-
convolution_algorithm = attrs.get_int("convolution_algorithm")
827-
out = topi.nn.conv2d_winograd_nnpack_weight_transform(
828-
inputs[0], convolution_algorithm, out_dtype
829-
)
830-
return [out]
831-
832-
833-
reg.register_schedule(
834-
"nn.contrib_conv2d_winograd_nnpack_weight_transform",
835-
strategy.schedule_conv2d_winograd_nnpack_weight_transform,
836-
)
837-
838-
839823
# conv2d_NCHWc
840824
reg.register_strategy("nn.contrib_conv2d_NCHWc", strategy.conv2d_NCHWc_strategy)
841825

0 commit comments

Comments
 (0)