* [LINT] Improve the check tool to handle ASF copyright message.
* [LINT] Remove unnecessary copyright message as per ASF requirement.
* Fix codegen hybrid
* [LINT] Broaden license checks to include html, xml
* [LINT] Fix rest of the files
* Fix notice
* [LINT] Improve check file type error message
Apache TVM (incubating)
-Copyright 2017 and onwards The Apache Software Foundation
+Copyright 2019 and onwards The Apache Software Foundation
This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
+# 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
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
LOCAL_PATH := $(call my-dir)
MY_PATH := $(LOCAL_PATH)
+# 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
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
ifndef config
ifneq ("$(wildcard ./config.mk)","")
config ?= config.mk
+# 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
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
#-------------------------------------------------------------------------------
# Template configuration for compiling
#
+# 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
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
ifndef config
ifneq ("$(wildcard ./config.mk)","")
config ?= config.mk
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file tvm_runtime.h
* \brief Pack all tvm runtime source files
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Example package that uses TVM.
* \file tvm_ext.cc
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Example code on load and run TVM module.s
* \file cpp_deploy.cc
*/
# specific language governing permissions and limitations
# under the License.
-# Copyright (c) 2017 by Contributors
# brief Example code on load and run TVM module.s
# file python_deploy.py
// !$*UTF8*$!
+/*
+ * 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
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
{
archiveVersion = 1;
classes = {
<?xml version="1.0" encoding="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 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 -->
+
+<!--- Unless required by applicable law or agreed to in writing, -->
+<!--- software distributed under the License is distributed on an -->
+<!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -->
+<!--- KIND, either express or implied. See the License for the -->
+<!--- specific language governing permissions and limitations -->
+<!--- under the License. -->
+
<Workspace
version = "1.0">
<FileRef
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file AppDelegate.h
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file AppDelegate.mm
*/
<?xml version="1.0" encoding="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 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 -->
+
+<!--- Unless required by applicable law or agreed to in writing, -->
+<!--- software distributed under the License is distributed on an -->
+<!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -->
+<!--- KIND, either express or implied. See the License for the -->
+<!--- specific language governing permissions and limitations -->
+<!--- under the License. -->
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16D30" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
<?xml version="1.0" encoding="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 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 -->
+
+<!--- Unless required by applicable law or agreed to in writing, -->
+<!--- software distributed under the License is distributed on an -->
+<!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -->
+<!--- KIND, either express or implied. See the License for the -->
+<!--- specific language governing permissions and limitations -->
+<!--- under the License. -->
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file TVMRuntime.h
*/
#import <Foundation/Foundation.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file ViewController.h
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file ViewController.mm
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file main.m
*/
<?xml version="1.0" encoding="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 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 -->
+
+<!--- Unless required by applicable law or agreed to in writing, -->
+<!--- software distributed under the License is distributed on an -->
+<!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -->
+<!--- KIND, either express or implied. See the License for the -->
+<!--- specific language governing permissions and limitations -->
+<!--- under the License. -->
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief A hook to launch RPC server via xcodebuild test
* \file tvmrpcLauncher.mm
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief Sample golang application deployment over tvm.
* \file complex.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief Sample golang application to demonstrate go-closure given to a packed function argument.
* \file pack_func_closure_arg.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief Sample golang application to demonstrate go-closure returned from a callback function.
* \file pack_func_closure_return.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief Sample golang application to demonstrate function conversion to packed function.
* \file pack_func_convert.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief Sample golang application to demonstrate converted packed
* function handle passed to another packed function.
* \file pack_func_handle_arg.go
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief Sample golang application to demonstrate function register into TVM global functions.
* \file pack_func_register.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief Sample golang application deployment over tvm.
* \file simple.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package
* \file array_test.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package source for TVMByteArray interface.
* \file bytearray.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package
* \file bytearray_test.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package source for TVMContext interface
* \file context.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package source for error related API interface.
* \file error.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package
* \file error_test.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package source for TVMFunction interface.
* \file function.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package
* \file function_test.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm native interface definition
* \file gotvm.cxx
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package
* \file gotvm.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm native interface declaration.
* \file gotvm.h
*
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package
* \file gotvm_test.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package source for TVMModule interface.
* \file module.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package
* \file module_test.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package source for TVMArray aka DLTensor
* \file ndarray.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package for TVMType interface
* \file type.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package source for common utilities
* \file util.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package source for TVMValue interface
* \file value.go
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief gotvm package
* \file value_test.go
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file tvm/relay/attrs/reduce.h
* \brief Auxiliary attributes for reduce operators.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file nnvm/base.h
* \brief Configuration of nnvm as well as basic data structure.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file nnvm/c_api.h
* \brief C API of NNVM symbolic construction and pass.
* Enables construction and transformation of Graph
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file nnvm/compiler/op_attr_types.h
* \brief The Expr and related elements in DataFlow construction.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file nnvm/compiler/packed_func_ext.h
* \brief Extension to enable packed functionn for nnvm types
*/
*/
/*!
-* Copyright (c) 2016 by Contributors
* \file nnvm/compiler/util.h
* \brief Utility functions for nnvm compiler
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file nnvm/graph.h
* \brief Configuation of nnvm as well as basic data structure.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file nnvm/graph_attr_types.h
* \brief Data structures that can appear in graph attributes.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file nnvm/layout.h
* \brief Layout expression.
* The layout is composed of upper cases, lower cases and numbers,
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file nnvm/node.h
* \brief Graph node data structure.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file nnvm/op.h
* \brief Operator information structor.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file nnvm/op_attr_types.h
* \brief Data structures that can appear in operator attributes.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file nnvm/pass.h
* \brief Pass that can be applied to a graph.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file nnvm/pass_functions.h
* \brief Pass functions that simply redirect the calls to ApplyPass
*
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file nnvm/symbolic.h
* \brief Symbolic graph construction API
*
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file nnvm/top/nn.h
* \brief Auxiliary param for tensor primitive.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file nnvm/top/tensor.h
* \brief Auxiliary param for tensor primitive.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file nnvm/tuple.h
* \brief Data structure Tuple and TShape to store dynamic sized shapes.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file c_api_error.h
* \brief Common fields of all C APIs
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file c_api_error.cc
* \brief C error handling
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file c_api_graph.cc
* \brief C API related to Graph IR.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file c_api_symbolic.cc
* \brief C API related to symbolic graph compsition.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file alter_op_layout.cc
* \brief Alter the operator layouts. Keep inferred layouts (if any) from previous stages.
* e.g., convolution may calculates faster with NCHW16c layout.
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file compile_engine.cc
* \brief The compile engine.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file compile_engine.h
* \brief Internal engine to compile a subgraph fragment and cache compilation.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file fold_scale_axis.cc
* \author Fold scaling parameter of axis into weight of conv/dense
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file graph_compile.cc
* \brief Compile a graph. It lowers the graph nodes into low level IR.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file graph_fuse.cc
* \brief Fuse the operators together.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file graph_fuse.h
* \brief Definition of structs used by graph fusion
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file graph_deep_compare.cc
* \brief Deep compare two graph structure
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file graph_hash.h
* \brief The graph hashing function.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file graph_runtime.h
* \brief Interface code with TVM graph runtime.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file graph_transform.h
* \brief A mutator class that does local pattern matching and mutates a node.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file node_attr.h
* \brief utility to access node attributes
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file packed_func_ext.cc
* \brief Registeration of extension type.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file pattern_util.h
* \brief Utilities for doing various pattern matching in graph.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file precompute_prune.cc
* \brief Split the graph into a pre-compute graph and a execution graph.
*
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file simplify_inference.cc
* \author Ziheng Jiang
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file graph_attr_types.cc
* \brief Graph node data structure.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file node.cc
* \brief Graph node data structure.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file op.cc
* \brief Support for operator registry.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file pass.cc
* \brief Support for pass registry.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file symbolic.cc
* \brief Symbolic graph composition API.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file correct_layout.cc
* \brief Infer and correct layout.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file gradients.cc
* \brief Passes that takes gradient of the graph
* This code code was modified based on mxnet codebase by Min Lin
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file graph_algorithm.h
* \brief This header contains graph algorithms on StaticGraph.
* It is used compute informations such as whether two
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file infer_shape.cc
* \brief Inference the shapes given existin information.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file order_mutation.cc
* \brief Add control flow dependencies between nodes
* To correctly order mutation and read to resolve
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file place_device.cc
* \brief Inference the device of each operator given known information.
* Insert a copy node automatically when there is a cross device.
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file plan_memory.cc
* \brief Assign memory tag to each of the data entries.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file print_graph_ir.cc
* \brief Print the graph IR in LLVM style human readable format.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file saveload_json.cc
* \brief Save and load graph to/from JSON file.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file elemwise_op_common.h
* \brief Common operator utilities
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file resize.cc
* \brief Property def of resize operators.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file resize.h
*/
#ifndef NNVM_TOP_IMAGE_RESIZE_H_
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file convolution.cc
* \brief Convolution operators
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file nn.cc
* \brief Property def of nn operators.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file nn_common.h
* \brief Common utilities for nn ops.
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file pooling.cc
* \brief Property def of pooling operators.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file op_common.h
* \brief Common operator utilities
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file broadcast.cc
* \brief broadcast operator.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file elemwise.cc
* \brief Elemenwise operators
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file matrix_op.cc
* \brief Matrix operators
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file reduce.cc
* \brief reduce operator.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file state_op.cc
* \brief Experimental operators
* Currently we only support assign
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file transform.cc
* \brief Injective transformation of shape or type.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file nms.cc
* \brief Property def of SSD non-maximum suppression operator.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file multibox_op.cc
* \brief Property def of SSD multibox related operators.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file reorg.cc
*/
#include <nnvm/op.h>
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file reorg.h
*/
#ifndef NNVM_TOP_VISION_YOLO_REORG_H_
<html>
+<!--- 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 -->
+
+<!--- Unless required by applicable law or agreed to in writing, -->
+<!--- software distributed under the License is distributed on an -->
+<!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -->
+<!--- KIND, either express or implied. See the License for the -->
+<!--- specific language governing permissions and limitations -->
+<!--- under the License. -->
+
<head>
<meta charset="UTF-8">
*/
/*!
- * Copyright (c) 2016 by Contributors
* Implementation of API functions related to arith
* \file api_arith.cc
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* Implementation of basic API functions
* \file api_base.cc
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* Implementation of API functions related to Codegen
* \file c_api_codegen.cc
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* Exposre of pass functions.
* \file api_pass.cc
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* Code mainly used for test purposes.
* \file api_test.cc
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file tvm/arithmetic/analyzer.cc
*/
#include <tvm/ir.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file bound_deducer.cc
* \brief Utility to deduce bound of expression
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file tvm/arithmetic/const_int_bound.cc
*/
#include <tvm/arithmetic.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file detect_linear_equation.cc
* \brief Utility to detect patterns in the expression.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file bound_deducer.cc
* \brief Utility to deduce bound of expression
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file int_operator.h
* \brief Additional useful operators for integer.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file feature_visitor.cc
* \brief Base class for feature extractor.
* These features are used for machine learning cost model
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file feature_visitor.h
* \brief Base class for feature extractor.
* These features are used for machine learning cost model
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file touch_extractor.cc
* \brief Extract feature of touch pattern of axes in lowered IR
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file touch_extractor.h
* \brief Extract feature of touch pattern of axes in lowered IR
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* Common build utilities
* \file build_common.h
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen.cc
* \brief Common utilities to generated C style code.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file codegen_aocl.cc
*/
#include <tvm/build_module.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_c.cc
*/
#include <iomanip>
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file codegen_c.h
* \brief Common utilities to generated C style code.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_c_host.cc
*/
#include <tvm/packed_func_ext.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_c_host.h
* \brief Generate C host code.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_cuda.cc
*/
#include <tvm/base.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_cuda.h
* \brief Utility to generate cuda code
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_metal.cc
*/
#include <tvm/packed_func_ext.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_metal.h
* \brief Generate Metal device code.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_opencl.cc
*/
#include <tvm/packed_func_ext.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_opencl.h
* \brief Generate OpenCL device code.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_opengl.cc
*
* We are targeting OpenGL 3.3. The reason of not targeting a recent version
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_opengl.h
* \brief Generate OpenGL device code.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_source_base.cc
*/
#include "codegen_source_base.h"
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file codegen_source_base.h
* \brief Common utilities to source code in text form.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file codegen_vhls.cc
*/
#include <tvm/build_module.h>
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file codegen_vhls.h
* \brief Utility to generate vhls code
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file intrin_rule_default.cc
* \brief Default intrinsic rules.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file intrin_rule.h
* \brief Utility to generate intrinsic rules
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file intrin_rule_aocl.cc
* \brief AOCL intrinsic rules.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file intrin_rule_cuda.cc
* \brief CUDA intrinsic rules.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file intrin_rule_metal.cc
* \brief Metal intrinsic rules.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file intrin_rule_opencl.cc
* \brief OpenCL intrinsic rules.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file intrin_rule_opencl.cc
* \brief OpenCL intrinsic rules.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file intrin_rule_vhls.cc
* \brief VHLS intrinsic rules.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file cuda_half_t.h
* \brief half_t (fp16) definition for cuda codegen.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_amdgpu.cc
* \brief AMDGPU code generator.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_arm.cc
* \brief ARM specific code generator
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_llvm.cc
*/
#ifdef TVM_LLVM_VERSION
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_llvm.h
* \brief Common base class for generating into LLVM IR
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_nvptx.cc
* \brief NVPTX code generator.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file codegen_x86_64.cc
* \brief X86-64 specific code generator
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file intrin_rule_llvm.cc
*/
#ifdef TVM_LLVM_VERSION
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file intrin_rule_llvm.h
* \brief Common utilities for llvm intrinsics.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file intrin_rule_nvptx.cc
*/
#ifdef TVM_LLVM_VERSION
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file intrin_rule_rocm.cc
*/
#ifdef TVM_LLVM_VERSION
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file llvm_common.cc
*/
#ifdef TVM_LLVM_VERSION
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file llvm_common.h
* \brief Common utilities for llvm initialization.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* Optional module when build aocl is switched to off
*/
#include "../codegen_source_base.h"
*/
/*!
- * Copyright (c) 2018 by Contributors
* Optional module when build cuda is switched to off
*/
#include "../../runtime/cuda/cuda_module.h"
*/
/*!
- * Copyright (c) 2017 by Contributors
* Build cuda modules from source.
* requires cuda to be available.
*
*/
/*!
- * Copyright (c) 2018 by Contributors
* Optional module when build metal is switched to off
*/
#include "../codegen_source_base.h"
*/
/*!
- * Copyright (c) 2018 by Contributors
* Optional module when build opencl is switched to off
*/
#include "../codegen_source_base.h"
*/
/*!
- * Copyright (c) 2018 by Contributors
* Optional module when build opencl is switched to off
*/
#include "../codegen_source_base.h"
*/
/*!
- * Copyright (c) 2018 by Contributors
* Optional module when build rocm is switched to off
*/
#include "../codegen_source_base.h"
*/
/*!
- * Copyright (c) 2018 by Contributors
* Optional module when build opencl is switched to off
*/
#include "../codegen_source_base.h"
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file build_vulkan.cc
* \brief Build SPIRV block
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file codegen_spirv.cc
* \brief Generate SPIRV block
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file ir_builder.h
* \brief Utility for building SPIRV code block
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file ir_builder.cc
* \brief IRBuilder for SPIRV block
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file ir_builder.h
* \brief Utility for building SPIRV code block
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_stackvm.cc
*/
#include <tvm/runtime/registry.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file codegen_stack_vm.h
* \brief Codegen into Simple Stack VM.
*/
*/
/*!
- * Copyright 2018 by Contributors
*
* \file arena.h
* \brief Arena allocator that allocates
*/
/*!
- * Copyright 2018 by Contributors
*
* \file base64.h
* \brief data stream support to input and output from/to base64 stream
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file pipe.h
* \brief Platform independent pipe, used for IPC.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file ring_buffer.h
* \brief this file aims to provide a wrapper of sockets
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file socket.h
* \brief this file aims to provide a wrapper of sockets
* \author Tianqi Chen
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file util.h
* \brief Defines some common utility function..
*/
* under the License.
*/
-/*! Copyright (c) 2019 by Contributors
+/*!
* \file codegen_hybrid.cc
*/
#include <iomanip>
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file api_registry.cc
*/
#include <tvm/api_registry.h>
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file attrs.cc
*/
#include <tvm/attrs.h>
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file buffer.cc
*/
#include <tvm/buffer.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file channel.cc
*/
#include <tvm/channel.h>
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/lang/data_layout.cc
* \brief Data Layout expression.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file lowered_func.cc
*/
#include <tvm/lowered_func.h>
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file tensor.cc
*/
#include <tvm/tensor.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Helper utilities to implement compute_op.
* \file compute_op.h
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Logics related to cross thread reduction, used by ComputeOpNode.
* \file cross_thread_reduction.cc
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \brief Helper utilities to implement hybrid_op.
* \file hybrid_op.h
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file op_util.h
* \brief Common utility used in operator construction.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Placeholder op.
* \file placeholder_op.cc
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Tensor Compute Op.
* \file tensor_compute_op.cc
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Logics related to tensorize, used by ComputeOpNode.
* \file tensorize.cc
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file arg_binder.h
* \brief Helper utility to match and bind arguments.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file bounds_checker.cc
*/
// Instrument checkers for out of the bounds access.
*/
/*!
- * Copyright (c) 2017 by Contributors
* Combine calls into context related function into one.
*
* \file combine_context_call.cc
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file coproc_sync.cc
*/
#include <tvm/ir.h>
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file detect_device.cc
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \brief Infer TensorCore metadata from tensor intrinsic.
* \file tensorcore_fragment.cc
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Replace certain copy with copy intrinsics.
* \file copy_intrin_rewrite.cc
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file inline.cc
*/
#include <tvm/ir.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file ir_deep_compare.cc
*/
#include <tvm/ir_pass.h>
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file ir_mutator.cc
*/
#include <tvm/ir.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file ir_util.cc
* \brief Helper functions to construct and compose IR nodes.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file ir_util.h
* \brief Helper functions to construct and compose IR nodes.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file ir_visitor.cc
*/
#include <tvm/ir.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
*
* \brief Lift specified AttrStmt scope to outer if
* the body contains the same scope.
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file loop_partition.cc
*/
#include <tvm/ir.h>
* under the License.
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file tvm/src/pass/lower_custom_datatypes.cc
* \brief Pass for lowering custom datatypes
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* Lower allreduce to device implementable ir.
* \file lower_thread_allreduce.cc
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* Lower TVM related buildin intrinsics such as packed call.
* \file lower_tvm_buildin.cc
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file make_api.cc Build API function.
*/
#include <tvm/ir_pass.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file narrow_channel_access.cc
* \brief Narrow channel access to a smaller range
* when possible by bringing it to the internal loop.
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file remap_thread_axis.cc
*/
#include <tvm/ir.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file remove_no_op.cc
* \brief Remove no op from the stmt
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file unsafe_select_rewrite.cc
* \brief Rewrite uinsafe select expression.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file simple_passes.cc
* \brief Implementation of simple passes
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file split_host_device.cc
* \brief Split device function from host.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file split_pipeline.cc
* \brief Split statement into pipeline stage modules.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* SSA related checks and pass.
*
* SSA requires each varaible to be only defined once.
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file storage_access.cc
*/
#include <tvm/ir_pass.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file storage_access.h
* \brief Common data structure for storage access analysis.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file storage_flatten.cc
*/
// Flattens storage from multi-dimensional array to 1D
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file storage_sync.cc
*/
#include <tvm/ir.h>
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file tensor_core.cc
*/
// IR Passes for TensorCore CodeGen
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file verify_compact_buffer.cc
* \brief Verify if there was any compact buffer bound to a statement.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file verify_gpu_code.cc
* \brief Verify the correctness of a GPU IR.
* It will check the whether the amount of memory usage or the number of threads
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file verify_memory.cc
* \brief Pass to check if memory accesses are legal.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file relay/backend/compile_engine.h
* \brief Internal compialtion engine handle function cache.
* and interface to low level code generation.
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file relay/backend/graph_mem_alloca.cc
* \brief Memory index assignment pass for executing
* the program in the graph runtime.
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file param_dict.h
* \brief Definitions for serializing and deserializing parameter dictionaries.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file relay/backend/utils.h
* \brief Utils function for backend
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/relay/backend/vm/compiler.h
* \brief A compiler from relay::Module to the VM byte code.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file tvm/relay/backend/vm/inline_primitives.cc
* \brief Ensure that primitives only appear in the call position.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file tvm/relay/backend/vm/lambda_lift.cc
* \brief Lift all local functions into global functions.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file tvm/relay/backend/vm/remove_unused_funcs.cc
* \brief Remove unused global relay functions in a relay module.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/tvm/relay/doc.cc
* \brief Doc ADT used for pretty printing.
* Based on Section 1 of https://homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf.
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file tvm/relay/doc.h
* \brief Doc ADT used for pretty printing.
* Based on Section 1 of
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file error_reporter.h
* \brief The set of errors raised by Relay.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file src/tvm/relay/op.cc
* \brief Resolve incomplete types to complete types.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/relay/ir/pattern_functor.cc
* \brief Implementations of visitors and mutators for ADT patterns.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file pretty_printer.cc
* \brief Pretty printer for Relay programs
* Supports ANF, GNF, and metadata.
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file type_functor.cc
* \brief Implementations of type functors.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file argsort.cc
* \brief Argsort operators
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file topk.cc
* \brief TopK operators
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
*
* \file src/relay/op/annotation/annotation.cc
* \brief Registration of annotation operators.
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file nn.cc
* \brief Property def of nn operators.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
*
* \file src/relay/op/device_copy.cc
* \brief Crossing device data copy operator.
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file resize.cc
* \brief Image operators
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file bitserial.cc
* \brief Property def of bitserial operators.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file convolution.cc
* \brief Convolution operators
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/relay/op/nn/convolution.h
* \brief Properties def of convlution operator for sharing.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file nn.cc
* \brief Property def of nn operators.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/relay/op/nn/nn.h
* \brief Properties def of nn operators for sharing.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file pad.cc
* \brief Implementation of operator pad
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file pooling.cc
* \brief Pooling operators
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file sparse.cc
* \brief Property def of nn.sparse_dense operator.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file upsampling.cc
* \brief upsampling operator
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file op_common.h
* \brief A set of utilities and common functionality
* for relay ops.
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file binary.cc
* \brief binary broadcast operators.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file reduce.cc
* \brief Reduction operators.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/relay/op/tensor/transform.h
* \brief Transform op attributes that can be shared among Relay and its dialects.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file unary.cc
* \brief Unary operators.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file type_relations.cc
* \brief A set of utilities and common functionality
* for type relations.
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file tvm/relay/op/type_relations.h
* \brief A set of utilities and common functionality
* for type relations.
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file multibox_op.cc
* \brief Multibox related operators
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file nms.cc
* \brief Non-maximum suppression operators
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file rcnn_op.cc
* \brief Faster RCNN and Mask RCNN operators
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file yolo.cc
* \brief Yolo related operators
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file alter_op_layout.h
* \brief Alternate the layouts of operators or replace primitive operators with
other expressions. This pass can be used for computing convolution in
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file canonicalize_cast.cc
* \brief Canonicalize cast expressions to make operator fusion more efficient.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file canonicalize_ops.cc
* \brief Canonicalize special operators to basic operators.
This can simplify latter analysis. (e.g. Expand bias_add to expand_dims and broadcast_add.)
*/
/*!
- * Copyright (c) 2019 by Contributors
*
* \file combine_parallel_conv2d.cc
* \brief Combine parallel 2d convolutions into a single convolution.
*/
/*!
- * Copyright (c) 2019 by Contributors
*
* \file combine_parallel_dense.cc
* \brief Combine parallel dense ops into a single dense.
*/
/*!
- * Copyright (c) 2019 by Contributors
*
* \file combine_parallel_op.cc
* \brief Abstract class to combine parallel ops and their successive element-wise ops.
*/
/*!
- * Copyright (c) 2019 by Contributors
*
* \file combine_parallel_op.h
* \brief Abstract class to combine parallel ops and their successive element-wise ops.
*/
/*!
- * Copyright (c) 2019 by Contributors
*
* \file combine_parallel_op_batch.cc
* \brief Combine parallel ops into a single batch op.
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file combine_parallel_op_batch.cc
* \brief Combine parallel ops into a single batch op.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
*
* \file de_duplicate.cc
* \brief Use a fresh Id for every Var to make the result well-formed.
*/
/*!
- * Copyright (c) 2018 by Contributors
*
* \file dead_code.cc
*
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file tvm/relay/pass/dependency_graph.cc
* \brief
*/
*/
/*!
- * Copyright (c) 2019 by Contributors.
* \file tvm/relay/pass/dependency_graph.h
* \brief create a dependency graph.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
*
* \file eliminate_common_subexpr.cc
* \brief Combine common subexpressions.
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file expr_subst.h
* \brief Utility functions for substituting expressions.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file expr_subst.h
* \brief Utility functions for substituting expressions.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file feature.cc
* \brief Detect features used in Expr/Module
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file constant_folding.cc
*/
#include <tvm/relay/analysis.h>
*/
/*!
- * Copyright (c) 2018 by Contributors
*
* \file forward_rewrite.cc
* \brief Apply rewriting rules in a forward fashion.
*/
/*!
- * Copyright (c) 2019 by Contributors
*
* \file src/tvm/relay/pass/fuse_ops.cc
*
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file ad.cc
* \brief API for Automatic Differentiation for the Relay IR.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
*
* \file kindchecker.cc
*
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file legalize.cc
* \brief Converts an expr to another expr. This pass can be used to transform an op based on its
* shape, dtype or layout to another op or a sequence of ops.
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file let_list.h
* \brief LetList record let binding and insert let expression implicitly.
* using it, one can treat AST as value instead of expression,
*/
/*!
- * Copyright (c) 2019 by Contributors
*
* \file mac_count.cc
* \brief Pass to roughly count the number of MACs (Multiply-Accumulate)
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file match_exhaustion.cc
* \brief Checking Relay match expression exhaustiveness.
*
*/
/*!
- * Copyright (c) 2018 by Contributors.
*
* \file tvm/relay/pass/pass_util.h
* \brief Utilities for writing passes
*/
/*!
- * Copyright (c) 2018 by Contributors.
*
* \file tvm/relay/pass/pattern_util.h
* \brief Header of internal operator functions
*/
/*!
- * Copyright (c) 2019 by Contributors
*
* \file src/relay/pass/print_ir.cc
*
*/
/*!
- * Copyright (c) 2018 by Contributors
*
* \file annotate.cc
*
*/
/*!
- * Copyright (c) 2019 by Contributors
*
* \file calibrate.cc
*
*/
/*!
- * Copyright (c) 2018 by Contributors
*
* \file partition.cc
*
*/
/*!
- * Copyright (c) 2018 by Contributors
*
* \file realize.cc
*
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file simplify_inference.cc
*/
#include <tvm/relay/analysis.h>
*/
/*!
- * Copyright (c) 2019 by Contributors
*
* \file to_a_normal_form.cc
*
*/
/*!
- * Copyright (c) 2019 by Contributors
*
* \file to_cps.cc
*
*/
/*!
- * Copyright (c) 2018 by Contributors
*
* \file to_gnf.cc
*
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file type_infer.cc
* \brief Relay type inference and checking.
*
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file type_solver.cc
* \brief Type solver implementations.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file type_solver.h
* \brief Solver logic for type inference.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
*
* \file util.cc
*
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file well_formed.cc
* \brief check that expression is well formed.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/relay/qnn/op/add.cc
* \brief QNN add operator.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/relay/qnn/op/concatenate.cc
* \brief QNN concatenate operator. It concatenates quantized input tensors along a given axis.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/relay/qnn/op/convolution.cc
* \brief Property def of qnn convolution operator.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/relay/qnn/op/dense.cc
* \brief Property def of qnn dense operator.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/relay/qnn/op/dequantize.cc
* \brief QNN dequantize operator. Dequantize operator converts from quantized
* domain to unquantized domain.
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/relay/qnn/op/mul.cc
* \brief QNN mul operator.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file src/relay/qnn/op/op_common.h
* \brief A set of utilities and common functionality for QNN ops.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/relay/qnn/op/quantize.cc
* \brief QNN dequantize operator. Dequantize operator converts from quantized
* domain to unquantized domain.
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/relay/qnn/op/requantize.cc
* \brief QNN requantize operator.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/relay/qnn/util.cc
* \brief Utility functions for QNN.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file builtin_fp16.cc
* \brief Functions for conversion between fp32 and fp16
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file Use external cudnn utils function
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file Use external nnpack library call.
*/
#include <tvm/runtime/device_api.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file Use external nnpack library call.
*/
#include <tvm/runtime/registry.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file Use external nnpack library call.
*/
#include "nnpack_utils.h"
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file Use external nnpack library call.
*/
#ifndef TVM_RUNTIME_CONTRIB_NNPACK_NNPACK_UTILS_H_
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file random/mt_random_engine.cc
* \brief mt19937 random engine
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file External random functions for tensor.
*/
#include <tvm/runtime/registry.h>
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file random/sgx_random_engine.h
* \brief SGX trusted random engine
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file Use external rocblas library call.
*/
#include <tvm/runtime/registry.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file Use standard C library call.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file cpu_device_api.cc
*/
#include <dmlc/logging.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file cuda_common.h
* \brief Common utilities for CUDA
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file cuda_device_api.cc
* \brief GPU specific API
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file cuda_module.cc
*/
#include "cuda_module.h"
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file file_util.cc
*/
#include <dmlc/json.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file file_util.h
* \brief Minimum file manipulation util for runtime.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file meta_data.h
* \brief Meta data related utilities
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file metal_common.h
* \brief Metal common header
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file metal_device_api.mm
*/
#include <tvm/runtime/registry.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file metal_module.h
* \brief Execution handling of Metal kernels
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file utvm_device_dylib_redirect.cc
* \brief uTVM dynamic linking stubs
*
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file utvm_runtime.cc
* \brief uTVM runtime
*
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file utvm_runtime.h
* \brief uTVM runtime headers
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file host_low_level_device.cc
* \brief emulated low-level micro device implementation on host machine
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file low_level_device.h
* \brief Abstract low-level micro device management
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file micro_common.cc
* \brief common utilties for uTVM
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file micro_common.h
*/
#ifndef TVM_RUNTIME_MICRO_MICRO_COMMON_H_
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file micro_section_allocator.h
*/
#ifndef TVM_RUNTIME_MICRO_MICRO_SECTION_ALLOCATOR_H_
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file openocd_low_level_device.cc
*/
#include <sstream>
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file target_data_layout_encoder.h
* \brief uTVM data layout encoder
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file tcl_socket.cc
*/
#include <string>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file ndarray.cc
* \brief NDArray container infratructure.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file aocl_module.cc
*/
#include <dmlc/memory_io.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file opencl_common.h
* \brief OpenCL common header
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file opencl_device_api.cc
*/
#include <tvm/runtime/registry.h>
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file sdaccel_common.h
* \brief SDAccel common header
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file sdaccel_device_api.cc
*/
#include <tvm/runtime/registry.h>
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file sdaccel_module.cc
*/
#include <dmlc/memory_io.h>
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file sdaccel_module.h
* \brief Execution handling of OPENCL kernels for SDAccel FPGAs
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file opengl_common.h
* \brief OpenGL common header
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file opengl_device_api.cc
*/
#include <tvm/runtime/registry.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file opengl_module.cc
*/
#include <tvm/runtime/registry.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file opengl_module.h
* \brief Execution handling of OpenGL kernels
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file pack_args.h
* \brief Utility to pack TVMArgs to other type-erased fution calling convention.
*
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file registry.cc
* \brief The global registry of packed function.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file rocm_common.h
* \brief Common utilities for ROCM
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file rocm_device_api.cc
* \brief GPU specific API
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file rocm_module.h
* \brief Execution handling of ROCM kernels
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file rpc_device_api.cc
*/
#include <dmlc/logging.h>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file rpc_event_impl.cc
* \brief Event based RPC server implementation.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file rpc_device_api.cc
* \brief RPC module.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file rpc_server_env.cc
* \brief Server environment of the RPC.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file rpc_session.cc
* \brief RPC session for remote function call.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file rpc_socket_impl.cc
* \brief Socket based RPC implementation.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file rpc_socket_impl.h
* \brief Socket based RPC implementation.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file runtime_base.h
* \brief Base of all C APIs
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file common.h
* \brief TVM SGX common API.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file ecall_registry.h
* \brief The global registry of packed functions available via ecall_packed_func.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file runtime_t.cc
*/
#include <tvm/runtime/c_runtime_api.h>
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file trusted/runtime.h
* \brief TVM SGX trusted API.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file sgx/threading_backend.cc
* \brief SGX threading backend
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file sgx_module.cc
* \brief SGX enclave module.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file stackvm.h
* \brief A simple stack-based virtual machine.
*
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file stackvm_module.h
* \brief StackVM module
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file thread_pool.cc
* \brief Threadpool for multi-threading runtime.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file thread_storage_scope.h
* \brief Extract thread axis configuration from TVMArgs.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file threading_backend.cc
* \brief Native threading backend
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file tvm/runtime/vm/memory_manager.cc
* \brief Allocate and manage memory for the runtime.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/runtime/memory_manager.h
* \brief Abstract device memory management API
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/runtime/naive_allocator.h
*/
#ifndef TVM_RUNTIME_VM_NAIVE_ALLOCATOR_H_
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file runtime/pooled_allocator.h
*/
#ifndef TVM_RUNTIME_VM_POOLED_ALLOCATOR_H_
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file src/runtime/vm/serialize_util.h
* \brief Definitions of helpers for serializing and deserializing a Relay VM.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file workspace_pool.h
* \brief Workspace pool utility.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file workspace_pool.h
* \brief Workspace pool utility.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file auto_inline_elem_wise.cc
*/
#include <tvm/schedule_pass.h>
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file bound.cc
* \brief The bound inference logic.
*/
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file graph.h
* \brief Utilities to get information about schedule graph.
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file message_passing.h
* \brief Common utilities to do message passing
* on the schedule hyper graph.
*/
/*!
- * Copyright (c) 2016 by Contributors
* \file schedule_ops.cc
*/
#include <tvm/ir.h>
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-
"""Helper tool to add ASF header to files that cannot be handled by Rat."""
import os
import sys
FMT_MAP = {
"sh" : header_pystyle,
"cc" : header_cstyle,
+ "c" : header_cstyle,
+ "mm" : header_cstyle,
+ "m" : header_cstyle,
+ "go" : header_cstyle,
"java" : header_cstyle,
"h" : header_cstyle,
"py" : header_pystyle,
"rs" : header_cstyle,
"md" : header_mdstyle,
"cmake" : header_pystyle,
+ "mk" : header_pystyle,
"rst" : header_rststyle,
"gradle" : header_groovystyle,
- "xml": header_mdstyle,
"tcl": header_pystyle,
+ "xml": header_mdstyle,
+ "storyboard": header_mdstyle,
+ "pbxproj": header_cstyle,
+ "plist": header_mdstyle,
+ "xcworkspacedata": header_mdstyle,
+ "html": header_mdstyle,
}
+
+def copyright_line(line):
+ # Following two items are intentionally break apart
+ # so that the copyright detector won"t detect the file itself.
+ if line.find("Copyright " + "(c)") != -1:
+ return True
+ if (line.find("Copyright") != -1 and
+ line.find(" by") != -1):
+ return True
+ return False
+
+
def add_header(fname, header):
"""Add header to file"""
if not os.path.exists(fname):
print("Cannot find %s ..." % fname)
return
- orig = open(fname).read()
- if orig.find("Licensed to the Apache Software Foundation") != -1:
+ lines = open(fname).readlines()
+
+ has_asf_header = False
+ has_copyright = False
+
+ for i, l in enumerate(lines):
+ if l.find("Licensed to the Apache Software Foundation") != -1:
+ has_asf_header = True
+ elif copyright_line(l):
+ has_copyright = True
+ lines[i] = ""
+
+ if has_asf_header and not has_copyright:
print("Skip file %s ..." % fname)
return
+
with open(fname, "w") as outfile:
skipline = False
- lines = orig.split('\n')
ext = os.path.splitext(fname)[1][1:]
- if ext == 'sh' and lines[0][:2] == '#!':
+
+ if lines[0][:2] == "#!":
skipline = True
- elif ext == 'xml' and lines[0][:2] == '<?':
+ elif lines[0][:2] == "<?":
skipline = True
+ elif lines[0].startswith("<html>"):
+ skipline = True
+ elif lines[0].startswith("// !$"):
+ skipline =True
if skipline:
- outfile.write(lines[0] + "\n")
- outfile.write(header + "\n\n")
- outfile.write("\n".join(lines[1:]))
- outfile.write(header + "\n\n")
- outfile.write(orig)
+ outfile.write(lines[0])
+ if not has_asf_header:
+ outfile.write(header + "\n\n")
+ outfile.write("".join(lines[1:]))
else:
- outfile.write(header + "\n\n")
- outfile.write(orig)
- print("Add header to %s" % fname)
-
+ if not has_asf_header:
+ outfile.write(header + "\n\n")
+ outfile.write("".join(lines))
+ if not has_asf_header:
+ print("Add header to %s" % fname)
+ if has_copyright:
+ print("Removed copyright line from %s" % fname)
def main(args):
if len(args) != 2:
print("Usage: python add_asf_header.py <file_list>")
for l in open(args[1]):
- if l.startswith("-----"):
+ if l.startswith("---"):
continue
if l.find("File:") != -1:
l = l.split(":")[-1]
fname = l.strip()
+ if len(fname) == 0:
+ continue
suffix = fname.split(".")[-1]
if suffix in FMT_MAP:
add_header(fname, FMT_MAP[suffix])
- elif os.path.basename(fname) == 'gradle.properties':
- add_header(fname, FMT_MAP['h'])
+ elif os.path.basename(fname) == "gradle.properties":
+ add_header(fname, FMT_MAP["h"])
else:
print("Cannot handle %s ..." % fname)
return False
+
+def copyright_line(line):
+ # Following two items are intentionally break apart
+ # so that the copyright detector won't detect the file itself.
+ if line.find("Copyright " + "(c)") != -1:
+ return True
+ if (line.find("Copyright") != -1 and
+ line.find(" by") != -1):
+ return True
+ return False
+
+
+def check_asf_copyright(fname):
+ if fname.endswith(".png"):
+ return True
+ if not os.path.isfile(fname):
+ return True
+ has_asf_header = False
+ has_copyright = False
+ try:
+ for line in open(fname):
+ if line.find("Licensed to the Apache Software Foundation") != -1:
+ has_asf_header = True
+ if copyright_line(line):
+ has_copyright = True
+ if has_asf_header and has_copyright:
+ return False
+ except UnicodeDecodeError:
+ pass
+ return True
+
+
def main():
cmd = ["git", "ls-files"]
proc = subprocess.Popen(
(out, _) = proc.communicate()
assert proc.returncode == 0
res = out.decode("utf-8")
-
+ flist = res.split()
error_list = []
- for fname in res.split():
+ for fname in flist:
if not filename_allowed(fname):
error_list.append(fname)
if error_list:
- report = "====File type check report=====\n"
+ report = "------File type check report----\n"
report += "\n".join(error_list)
report += "\nFound %d files that are now allowed\n" % len(error_list)
report += ("We do not check in binary files into the repo.\n"
sys.stderr.flush()
sys.exit(-1)
+ asf_copyright_list = []
+
+ for fname in res.split():
+ if not check_asf_copyright(fname):
+ asf_copyright_list.append(fname)
+
+ if asf_copyright_list:
+ report = "------File type check report----\n"
+ report += "\n".join(asf_copyright_list) + "\n"
+ report += "------Found %d files that has ASF header with copyright message----\n" % len(asf_copyright_list)
+ report += "--- Files with ASF header do not need Copyright lines.\n"
+ report += "--- Contributors retain copyright to their contribution by default.\n"
+ report += "--- If a file comes with a different license, consider put it under the 3rdparty folder instead.\n"
+ report += "---\n"
+ report += "--- You can use the following steps to remove the copyright lines\n"
+ report += "--- Create file_list.txt in your text editor\n"
+ report += "--- Copy paste the above content in file-list into file_list.txt\n"
+ report += "--- python3 tests/lint/add_asf_header.py file_list.txt\n"
+ sys.stderr.write(report)
+ sys.stderr.flush()
+ sys.exit(-1)
+
print("check_file_type.py: all checks passed..")
if __name__ == "__main__":
.github
# Binary or data files
-.*\.css
.*\.ipynb
-.*\.html
.*\.pyc
.*\.so
.*\.json
.*\.txt
.*\.svg
.*\.lst
-.*\.xcodeproj
-.*\.lproj
-.*\.plist
.*\.lds
.*\.in
.*\.diff
.*\.edl
.*\.md5
.*\.csv
-.*\.mk
.*\.log
.*\.interp
.*\.tokens
+# 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
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
# rules for gtest
.PHONY: iverilog
<html>
+<!--- 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 -->
+
+<!--- Unless required by applicable law or agreed to in writing, -->
+<!--- software distributed under the License is distributed on an -->
+<!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -->
+<!--- KIND, either express or implied. See the License for the -->
+<!--- specific language governing permissions and limitations -->
+<!--- under the License. -->
+
<head>
<meta charset="UTF-8">
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Broadcast op constructions
* \file topi/broadcast.h
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief External function interface to rocBLAS libraries
* \file tags.h
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Detail broadcast.
* \file topi/detail/broadcast.h
*/
*/
/*!
-* Copyright (c) 2017 by Contributors
* \file pad_utils.h
* \brief Padding helpers
*/
*/
/*!
-* Copyright (c) 2017 by Contributors
* \file ravel_unravel.h
* \brief Index ravel and unraval operations
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file elemwise.h
* \brief Elementwise op constructions
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief NN op constructions
* \file topi/nn.h
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \brief Batch matmul op constructions
* \file nn/batch_matmul.h
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief bias_add op constructions
* \file nn/bias_add.h
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Dense op constructions
* \file nn/dense.h
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Dilate op constructions
* \file nn/dilate.h
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Softmax op constructions
* \file nn/flatten.h
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Pooling op constructions
* \file nn/pooling.h
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Softmax op constructions
* \file nn/softmax.h
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file topi/nn/upsampling.h
* \brief upsampling op constructors
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file topi/reduction.h
* \brief Reduction op constructors
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \brief Tag definitions
* \file tags.h
*/
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file topi/transform.h
* \brief Transform op constructors
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \brief Reorg op constructions
* \file vision/reorg.h
*/
*/
/*!
-* Copyright (c) 2017 by Contributors
* \brief Registration of TVM operators and schedules
* \file topi.cc
*/
# specific language governing permissions and limitations
# under the License.
#
-# Copyright (c) 2018 by Contributors
# file: hsi.tcl
# brief: Driver generation script for ARMv7 driver libraries.
#
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file vta_test.cpp
* \brief Simulation tests for the VTA design.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file driver.h
* \brief Driver interface that is used by runtime.
*
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file runtime.h
* \brief VTA runtime library.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file sim_tlpp.h
* \brief TVM VTA multiple thread simulator header file.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file cma_api.cc
* \brief Application layer implementation for contigous memory allocation.
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file device_api.cc
* \brief TVM device API for VTA
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file runtime.cc
* \brief Generic VTA runtime in C++11.
*
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file sim_driver.cc
* \brief VTA driver for simulated backend.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file sim_tlpp.cc
* \brief simulate core level pipe line parallism logic.
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file virtual_memory.cc
* \brief Thread-safe virtal memory manager
*/
*/
/*!
- * Copyright (c) 2019 by Contributors
* \file virtual_memory.h
* \brief The virtual memory manager for device simulation
*/
*/
/*!
- * Copyright (c) 2018 by Contributors
* \file metal_test.cpp
* \brief Bare-metal test to test driver and VTA design.
*/
<html>
+<!--- 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 -->
+
+<!--- Unless required by applicable law or agreed to in writing, -->
+<!--- software distributed under the License is distributed on an -->
+<!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -->
+<!--- KIND, either express or implied. See the License for the -->
+<!--- specific language governing permissions and limitations -->
+<!--- under the License. -->
+
<head><title> TVM RPC Test Page </title></head>
<script src="libtvm_web_runtime.js"></script>
<script src="tvm_runtime.js"></script>
*/
/*!
- * Copyright (c) 2017 by Contributors
* \file web_runtime.cc
*/
#include <sys/stat.h>