TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
copyright-scan Namespace Reference

Functions

def parse_args (parser)
 
def update (filename, args)
 
def copyright_scan (directory, depth, args, exclude_dirs=[])
 
def main ()
 

Variables

string copyright_year = "2020"
 
tuple extensions_p = (".py", ".sh", ".cmake", "CMakeLists")
 
tuple extensions_c = (".c", ".cpp", ".h", ".hpp", ".cu")
 
string pattern_p
 
string header_p
 
string pattern_c
 
string header_c
 

Function Documentation

◆ parse_args()

def copyright-scan.parse_args (   parser)
Parse commandline arguments.
Here is the caller graph for this function:

◆ update()

def copyright-scan.update (   filename,
  args 
)
Update copyright header for specified file
Here is the caller graph for this function:

◆ copyright_scan()

def copyright-scan.copyright_scan (   directory,
  depth,
  args,
  exclude_dirs = [] 
)
Update copyright for TensorRT sources
Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

def copyright-scan.main ( )
Here is the call graph for this function:

Variable Documentation

◆ copyright_year

string copyright-scan.copyright_year = "2020"

◆ extensions_p

tuple copyright-scan.extensions_p = (".py", ".sh", ".cmake", "CMakeLists")

◆ extensions_c

tuple copyright-scan.extensions_c = (".c", ".cpp", ".h", ".hpp", ".cu")

◆ pattern_p

string copyright-scan.pattern_p
Initial value:
1 = """#\s*
2 # Copyright \(c\) ([1-2][0-9]{3}),* NVIDIA CORPORATION.*
3 #\s*
4 # Licensed under the Apache License, Version 2.0 \(the "License"\);\s*
5 # you may not use this file except in compliance with the License.\s*
6 # You may obtain a copy of the License at\s*
7 #\s*
8 # http://www.apache.org/licenses/LICENSE-2.0\s*
9 #\s*
10 # Unless required by applicable law or agreed to in writing, software\s*
11 # distributed under the License is distributed on an "AS IS" BASIS,\s*
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\s*
13 # See the License for the specific language governing permissions and\s*
14 # limitations under the License.\s*
15 #
16 """

◆ header_p

string copyright-scan.header_p
Initial value:
1 = """#
2 # Copyright (c) {year}, NVIDIA CORPORATION. All rights reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16 """.format(year=copyright_year)

◆ pattern_c

string copyright-scan.pattern_c
Initial value:
1 = """/\*\s*
2  \* Copyright \(c\) ([1-2][0-9]{3}),* NVIDIA CORPORATION.*
3  \*\s*
4  \* Licensed under the Apache License, Version 2.0 \(the "License"\);\s*
5  \* you may not use this file except in compliance with the License.\s*
6  \* You may obtain a copy of the License at\s*
7  \*\s*
8  \* http://www.apache.org/licenses/LICENSE-2.0\s*
9  \*\s*
10  \* Unless required by applicable law or agreed to in writing, software\s*
11  \* distributed under the License is distributed on an "AS IS" BASIS,\s*
12  \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\s*
13  \* See the License for the specific language governing permissions and\s*
14  \* limitations under the License.\s*
15  \*/
16 """

◆ header_c

string copyright-scan.header_c
Initial value:
1 = """/*
2  * Copyright (c) {year}, NVIDIA CORPORATION. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 """.format(year=copyright_year)