Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
e95b875f
Unverified
Commit
e95b875f
authored
Jun 22, 2022
by
Ted Themistokleous
Committed by
GitHub
Jun 22, 2022
Browse files
Fix code block issue with .ipynb files. (#1263)
Regenerate notebook header for licensing
parent
e44cecbc
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
206 additions
and
202 deletions
+206
-202
examples/migraphx/export_frozen_graph_tf2/example.ipynb
examples/migraphx/export_frozen_graph_tf2/example.ipynb
+23
-22
examples/nlp/python_bert_squad/BERT-Squad.ipynb
examples/nlp/python_bert_squad/BERT-Squad.ipynb
+23
-22
examples/vision/python_3dunet/3dunet_inference.ipynb
examples/vision/python_3dunet/3dunet_inference.ipynb
+23
-22
examples/vision/python_nfnet/nfnet_inference.ipynb
examples/vision/python_nfnet/nfnet_inference.ipynb
+23
-22
examples/vision/python_resnet50/resnet50_inference.ipynb
examples/vision/python_resnet50/resnet50_inference.ipynb
+23
-22
examples/vision/python_super_resolution/Run_Super_Resolution_Model.ipynb
.../python_super_resolution/Run_Super_Resolution_Model.ipynb
+23
-22
examples/vision/python_unet/unet_inference.ipynb
examples/vision/python_unet/unet_inference.ipynb
+23
-22
examples/vision/python_yolov4/yolov4_inference.ipynb
examples/vision/python_yolov4/yolov4_inference.ipynb
+23
-22
tools/license_stamper.py
tools/license_stamper.py
+22
-26
No files found.
examples/migraphx/export_frozen_graph_tf2/example.ipynb
View file @
e95b875f
...
@@ -2,32 +2,33 @@
...
@@ -2,32 +2,33 @@
"cells": [
"cells": [
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {},
"outputs": [],
"source": [
"source": [
"# The MIT License (MIT)",
"# The MIT License (MIT)
\n
",
"#",
"#
\n
",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.
\n
",
"#",
"#
\n
",
"# Permission is hereby granted, free of charge, to any person obtaining a copy",
"# Permission is hereby granted, free of charge, to any person obtaining a copy
\n
",
"# of this software and associated documentation files (the 'Software'), to deal",
"# of this software and associated documentation files (the 'Software'), to deal
\n
",
"# in the Software without restriction, including without limitation the rights",
"# in the Software without restriction, including without limitation the rights
\n
",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\n
",
"# copies of the Software, and to permit persons to whom the Software is",
"# copies of the Software, and to permit persons to whom the Software is
\n
",
"# furnished to do so, subject to the following conditions:",
"# furnished to do so, subject to the following conditions:
\n
",
"#",
"#
\n
",
"# The above copyright notice and this permission notice shall be included in",
"# The above copyright notice and this permission notice shall be included in
\n
",
"# all copies or substantial portions of the Software.",
"# all copies or substantial portions of the Software.
\n
",
"#",
"#
\n
",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\n
",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\n
",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\n
",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\n
",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\n
",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\n
",
"# THE SOFTWARE."
"# THE SOFTWARE.
\n
"
]
]
},
},
{
{
"cell_type": "markdown",
"cell_type": "markdown",
"metadata": {},
"metadata": {},
...
...
examples/nlp/python_bert_squad/BERT-Squad.ipynb
View file @
e95b875f
...
@@ -2,32 +2,33 @@
...
@@ -2,32 +2,33 @@
"cells": [
"cells": [
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {},
"outputs": [],
"source": [
"source": [
"# The MIT License (MIT)",
"# The MIT License (MIT)
\n
",
"#",
"#
\n
",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.
\n
",
"#",
"#
\n
",
"# Permission is hereby granted, free of charge, to any person obtaining a copy",
"# Permission is hereby granted, free of charge, to any person obtaining a copy
\n
",
"# of this software and associated documentation files (the 'Software'), to deal",
"# of this software and associated documentation files (the 'Software'), to deal
\n
",
"# in the Software without restriction, including without limitation the rights",
"# in the Software without restriction, including without limitation the rights
\n
",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\n
",
"# copies of the Software, and to permit persons to whom the Software is",
"# copies of the Software, and to permit persons to whom the Software is
\n
",
"# furnished to do so, subject to the following conditions:",
"# furnished to do so, subject to the following conditions:
\n
",
"#",
"#
\n
",
"# The above copyright notice and this permission notice shall be included in",
"# The above copyright notice and this permission notice shall be included in
\n
",
"# all copies or substantial portions of the Software.",
"# all copies or substantial portions of the Software.
\n
",
"#",
"#
\n
",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\n
",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\n
",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\n
",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\n
",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\n
",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\n
",
"# THE SOFTWARE."
"# THE SOFTWARE.
\n
"
]
]
},
},
{
{
"cell_type": "markdown",
"cell_type": "markdown",
"metadata": {},
"metadata": {},
...
...
examples/vision/python_3dunet/3dunet_inference.ipynb
View file @
e95b875f
...
@@ -2,32 +2,33 @@
...
@@ -2,32 +2,33 @@
"cells": [
"cells": [
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {},
"outputs": [],
"source": [
"source": [
"# The MIT License (MIT)",
"# The MIT License (MIT)
\n
",
"#",
"#
\n
",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.
\n
",
"#",
"#
\n
",
"# Permission is hereby granted, free of charge, to any person obtaining a copy",
"# Permission is hereby granted, free of charge, to any person obtaining a copy
\n
",
"# of this software and associated documentation files (the 'Software'), to deal",
"# of this software and associated documentation files (the 'Software'), to deal
\n
",
"# in the Software without restriction, including without limitation the rights",
"# in the Software without restriction, including without limitation the rights
\n
",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\n
",
"# copies of the Software, and to permit persons to whom the Software is",
"# copies of the Software, and to permit persons to whom the Software is
\n
",
"# furnished to do so, subject to the following conditions:",
"# furnished to do so, subject to the following conditions:
\n
",
"#",
"#
\n
",
"# The above copyright notice and this permission notice shall be included in",
"# The above copyright notice and this permission notice shall be included in
\n
",
"# all copies or substantial portions of the Software.",
"# all copies or substantial portions of the Software.
\n
",
"#",
"#
\n
",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\n
",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\n
",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\n
",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\n
",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\n
",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\n
",
"# THE SOFTWARE."
"# THE SOFTWARE.
\n
"
]
]
},
},
{
{
"cell_type": "markdown",
"cell_type": "markdown",
"id": "fee8cfa5",
"id": "fee8cfa5",
...
...
examples/vision/python_nfnet/nfnet_inference.ipynb
View file @
e95b875f
...
@@ -2,32 +2,33 @@
...
@@ -2,32 +2,33 @@
"cells": [
"cells": [
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {},
"outputs": [],
"source": [
"source": [
"# The MIT License (MIT)",
"# The MIT License (MIT)
\n
",
"#",
"#
\n
",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.
\n
",
"#",
"#
\n
",
"# Permission is hereby granted, free of charge, to any person obtaining a copy",
"# Permission is hereby granted, free of charge, to any person obtaining a copy
\n
",
"# of this software and associated documentation files (the 'Software'), to deal",
"# of this software and associated documentation files (the 'Software'), to deal
\n
",
"# in the Software without restriction, including without limitation the rights",
"# in the Software without restriction, including without limitation the rights
\n
",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\n
",
"# copies of the Software, and to permit persons to whom the Software is",
"# copies of the Software, and to permit persons to whom the Software is
\n
",
"# furnished to do so, subject to the following conditions:",
"# furnished to do so, subject to the following conditions:
\n
",
"#",
"#
\n
",
"# The above copyright notice and this permission notice shall be included in",
"# The above copyright notice and this permission notice shall be included in
\n
",
"# all copies or substantial portions of the Software.",
"# all copies or substantial portions of the Software.
\n
",
"#",
"#
\n
",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\n
",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\n
",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\n
",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\n
",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\n
",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\n
",
"# THE SOFTWARE."
"# THE SOFTWARE.
\n
"
]
]
},
},
{
{
"cell_type": "markdown",
"cell_type": "markdown",
"metadata": {},
"metadata": {},
...
...
examples/vision/python_resnet50/resnet50_inference.ipynb
View file @
e95b875f
...
@@ -2,32 +2,33 @@
...
@@ -2,32 +2,33 @@
"cells": [
"cells": [
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {},
"outputs": [],
"source": [
"source": [
"# The MIT License (MIT)",
"# The MIT License (MIT)
\n
",
"#",
"#
\n
",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.
\n
",
"#",
"#
\n
",
"# Permission is hereby granted, free of charge, to any person obtaining a copy",
"# Permission is hereby granted, free of charge, to any person obtaining a copy
\n
",
"# of this software and associated documentation files (the 'Software'), to deal",
"# of this software and associated documentation files (the 'Software'), to deal
\n
",
"# in the Software without restriction, including without limitation the rights",
"# in the Software without restriction, including without limitation the rights
\n
",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\n
",
"# copies of the Software, and to permit persons to whom the Software is",
"# copies of the Software, and to permit persons to whom the Software is
\n
",
"# furnished to do so, subject to the following conditions:",
"# furnished to do so, subject to the following conditions:
\n
",
"#",
"#
\n
",
"# The above copyright notice and this permission notice shall be included in",
"# The above copyright notice and this permission notice shall be included in
\n
",
"# all copies or substantial portions of the Software.",
"# all copies or substantial portions of the Software.
\n
",
"#",
"#
\n
",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\n
",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\n
",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\n
",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\n
",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\n
",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\n
",
"# THE SOFTWARE."
"# THE SOFTWARE.
\n
"
]
]
},
},
{
{
"cell_type": "markdown",
"cell_type": "markdown",
"metadata": {},
"metadata": {},
...
...
examples/vision/python_super_resolution/Run_Super_Resolution_Model.ipynb
View file @
e95b875f
...
@@ -2,32 +2,33 @@
...
@@ -2,32 +2,33 @@
"cells": [
"cells": [
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {},
"outputs": [],
"source": [
"source": [
"# The MIT License (MIT)",
"# The MIT License (MIT)
\n
",
"#",
"#
\n
",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.
\n
",
"#",
"#
\n
",
"# Permission is hereby granted, free of charge, to any person obtaining a copy",
"# Permission is hereby granted, free of charge, to any person obtaining a copy
\n
",
"# of this software and associated documentation files (the 'Software'), to deal",
"# of this software and associated documentation files (the 'Software'), to deal
\n
",
"# in the Software without restriction, including without limitation the rights",
"# in the Software without restriction, including without limitation the rights
\n
",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\n
",
"# copies of the Software, and to permit persons to whom the Software is",
"# copies of the Software, and to permit persons to whom the Software is
\n
",
"# furnished to do so, subject to the following conditions:",
"# furnished to do so, subject to the following conditions:
\n
",
"#",
"#
\n
",
"# The above copyright notice and this permission notice shall be included in",
"# The above copyright notice and this permission notice shall be included in
\n
",
"# all copies or substantial portions of the Software.",
"# all copies or substantial portions of the Software.
\n
",
"#",
"#
\n
",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\n
",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\n
",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\n
",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\n
",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\n
",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\n
",
"# THE SOFTWARE."
"# THE SOFTWARE.
\n
"
]
]
},
},
{
{
"cell_type": "markdown",
"cell_type": "markdown",
"metadata": {},
"metadata": {},
...
...
examples/vision/python_unet/unet_inference.ipynb
View file @
e95b875f
...
@@ -2,32 +2,33 @@
...
@@ -2,32 +2,33 @@
"cells": [
"cells": [
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {},
"outputs": [],
"source": [
"source": [
"# The MIT License (MIT)",
"# The MIT License (MIT)
\n
",
"#",
"#
\n
",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.
\n
",
"#",
"#
\n
",
"# Permission is hereby granted, free of charge, to any person obtaining a copy",
"# Permission is hereby granted, free of charge, to any person obtaining a copy
\n
",
"# of this software and associated documentation files (the 'Software'), to deal",
"# of this software and associated documentation files (the 'Software'), to deal
\n
",
"# in the Software without restriction, including without limitation the rights",
"# in the Software without restriction, including without limitation the rights
\n
",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\n
",
"# copies of the Software, and to permit persons to whom the Software is",
"# copies of the Software, and to permit persons to whom the Software is
\n
",
"# furnished to do so, subject to the following conditions:",
"# furnished to do so, subject to the following conditions:
\n
",
"#",
"#
\n
",
"# The above copyright notice and this permission notice shall be included in",
"# The above copyright notice and this permission notice shall be included in
\n
",
"# all copies or substantial portions of the Software.",
"# all copies or substantial portions of the Software.
\n
",
"#",
"#
\n
",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\n
",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\n
",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\n
",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\n
",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\n
",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\n
",
"# THE SOFTWARE."
"# THE SOFTWARE.
\n
"
]
]
},
},
{
{
"cell_type": "markdown",
"cell_type": "markdown",
"id": "cd7a3990",
"id": "cd7a3990",
...
...
examples/vision/python_yolov4/yolov4_inference.ipynb
View file @
e95b875f
...
@@ -2,32 +2,33 @@
...
@@ -2,32 +2,33 @@
"cells": [
"cells": [
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {},
"outputs": [],
"source": [
"source": [
"# The MIT License (MIT)",
"# The MIT License (MIT)
\n
",
"#",
"#
\n
",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.",
"# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.
\n
",
"#",
"#
\n
",
"# Permission is hereby granted, free of charge, to any person obtaining a copy",
"# Permission is hereby granted, free of charge, to any person obtaining a copy
\n
",
"# of this software and associated documentation files (the 'Software'), to deal",
"# of this software and associated documentation files (the 'Software'), to deal
\n
",
"# in the Software without restriction, including without limitation the rights",
"# in the Software without restriction, including without limitation the rights
\n
",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell",
"# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\n
",
"# copies of the Software, and to permit persons to whom the Software is",
"# copies of the Software, and to permit persons to whom the Software is
\n
",
"# furnished to do so, subject to the following conditions:",
"# furnished to do so, subject to the following conditions:
\n
",
"#",
"#
\n
",
"# The above copyright notice and this permission notice shall be included in",
"# The above copyright notice and this permission notice shall be included in
\n
",
"# all copies or substantial portions of the Software.",
"# all copies or substantial portions of the Software.
\n
",
"#",
"#
\n
",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR",
"# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\n
",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,",
"# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\n
",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE",
"# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\n
",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER",
"# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\n
",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,",
"# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\n
",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN",
"# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\n
",
"# THE SOFTWARE."
"# THE SOFTWARE.
\n
"
]
]
},
},
{
{
"cell_type": "markdown",
"cell_type": "markdown",
"metadata": {},
"metadata": {},
...
...
tools/license_stamper.py
View file @
e95b875f
...
@@ -32,32 +32,28 @@ debug = False
...
@@ -32,32 +32,28 @@ debug = False
def
getipynb_markdownBlockAsList
():
def
getipynb_markdownBlockAsList
():
markdownBlock
=
[
markdownBlock
=
[
'
\t
{
\n
'
'
\t
{
\n
'
'
\t\t
"cell_type": "code",
\n
'
,
'
\t\t
"cell_type": "code",
\n
'
,
'
\t\t
"execution_count": null,
\n
'
,
'
\t\t
"metadata": {},
\n
'
,
'
\t\t
"metadata": {},
\n
'
,
'
\t\t
"outputs": [],
\n
'
,
'
\t\t
"source": [
\n
'
,
'
\t\t
"source": [
\n
'
,
'
\t\t\t\"
# The MIT License (MIT)
\\
n
\"
,
\n
'
,
'
\t\t\t\"
#
\\
n
\"
,
\n
'
,
'
\t\t\t\"
# The MIT License (MIT)
\"
,
\n
'
,
'
\t\t\t\"
# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.
\\
n
\"
,
\n
'
,
'
\t\t\t\"
#
\"
,
\n
'
,
'
\t\t\t\"
#
\\
n
\"
,
\n
'
,
'
\t\t\t\"
# Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved.
\"
,
\n
'
,
'
\t\t\t\"
# Permission is hereby granted, free of charge, to any person obtaining a copy
\\
n
\"
,
\n
'
,
'
\t\t\t\"
#
\"
,
\n
'
,
'
\t\t\t\"
# of this software and associated documentation files (the
\'
Software
\'
), to deal
\\
n
\"
,
\n
'
,
'
\t\t\t\"
# Permission is hereby granted, free of charge, to any person obtaining a copy
\"
,
\n
'
,
'
\t\t\t\"
# in the Software without restriction, including without limitation the rights
\\
n
\"
,
\n
'
,
'
\t\t\t\"
# of this software and associated documentation files (the
\'
Software
\'
), to deal
\"
,
\n
'
,
'
\t\t\t\"
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\\
n
\"
,
\n
'
,
'
\t\t\t\"
# in the Software without restriction, including without limitation the rights
\"
,
\n
'
,
'
\t\t\t\"
# copies of the Software, and to permit persons to whom the Software is
\\
n
\"
,
\n
'
,
'
\t\t\t\"
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\"
,
\n
'
,
'
\t\t\t\"
# furnished to do so, subject to the following conditions:
\\
n
\"
,
\n
'
,
'
\t\t\t\"
# copies of the Software, and to permit persons to whom the Software is
\"
,
\n
'
,
'
\t\t\t\"
#
\\
n
\"
,
\n
'
,
'
\t\t\t\"
# furnished to do so, subject to the following conditions:
\"
,
\n
'
,
'
\t\t\t\"
# The above copyright notice and this permission notice shall be included in
\\
n
\"
,
\n
'
,
'
\t\t\t\"
#
\"
,
\n
'
,
'
\t\t\t\"
# all copies or substantial portions of the Software.
\\
n
\"
,
\n
'
,
'
\t\t\t\"
# The above copyright notice and this permission notice shall be included in
\"
,
\n
'
,
'
\t\t\t\"
#
\\
n
\"
,
\n
'
,
'
\t\t\t\"
# all copies or substantial portions of the Software.
\"
,
\n
'
,
'
\t\t\t\"
# THE SOFTWARE IS PROVIDED
\'
AS IS
\'
, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\\
n
\"
,
\n
'
,
'
\t\t\t\"
#
\"
,
\n
'
,
'
\t\t\t\"
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\\
n
\"
,
\n
'
,
'
\t\t\t\"
# THE SOFTWARE IS PROVIDED
\'
AS IS
\'
, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\"
,
\n
'
,
'
\t\t\t\"
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\\
n
\"
,
\n
'
,
'
\t\t\t\"
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\"
,
\n
'
,
'
\t\t\t\"
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\\
n
\"
,
\n
'
,
'
\t\t\t\"
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\"
,
\n
'
,
'
\t\t\t\"
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\\
n
\"
,
\n
'
,
'
\t\t\t\"
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\"
,
\n
'
,
'
\t\t\t\"
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\\
n
\"
,
\n
'
,
'
\t\t\t\"
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\"
,
\n
'
,
'
\t\t\t\"
# THE SOFTWARE.
\\
n
\"\n
'
,
'
\t\t
]
\n
'
,
'
\t
},'
'
\t\t\t\"
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\"
,
\n
'
,
'
\t\t\t\"
# THE SOFTWARE.
\"\n
'
,
'
\t\t
]
\n
'
,
'
\t
},
\n
'
,
]
]
return
markdownBlock
return
markdownBlock
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment