Skip to content

Commit

Permalink
license update (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenny112x authored Nov 13, 2024
1 parent 9ce1682 commit e788f1a
Show file tree
Hide file tree
Showing 56 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions vaip/python/onnx_tool/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##
import os
import warnings
Expand Down
1 change: 1 addition & 0 deletions vaip/python/onnx_tool/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##
import argparse

Expand Down
1 change: 1 addition & 0 deletions vaip/python/onnx_tool/fusion.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##
import numpy
import onnx.helper
Expand Down
1 change: 1 addition & 0 deletions vaip/python/onnx_tool/graph.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##
import copy
import math
Expand Down
1 change: 1 addition & 0 deletions vaip/python/onnx_tool/model.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##
import os
import pathlib
Expand Down
1 change: 1 addition & 0 deletions vaip/python/onnx_tool/node.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##
import numpy
import onnx
Expand Down
1 change: 1 addition & 0 deletions vaip/python/onnx_tool/quantization.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##
import warnings

Expand Down
1 change: 1 addition & 0 deletions vaip/python/onnx_tool/serialization.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##
import numpy

Expand Down
1 change: 1 addition & 0 deletions vaip/python/onnx_tool/tensor.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##
import warnings

Expand Down
1 change: 1 addition & 0 deletions vaip/python/onnx_tool/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##
import time
import warnings
Expand Down
2 changes: 2 additions & 0 deletions vaip/python/voe/passes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
## Copyright (C) 2022 Xilinx, Inc.
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
##
## Licensed under the MIT License.
##
## Licensed 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/cal_coeff_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##
import numpy as np
import sys
Expand Down
2 changes: 2 additions & 0 deletions vaip/python/voe/passes/const_fold_batchnorm_to_scale.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
##
## Licensed under the MIT License.
##
## Licensed 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
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/convert_fixneuron.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/convert_softmax_to_hard_softmax.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
##
## Copyright (C) 2022 Xilinx, Inc.
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/convert_to_xir_op.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
##
## Copyright (C) 2022 Xilinx, Inc.
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/convert_transpose_fix_input.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
##
## Copyright (C) 2022 Xilinx, Inc.
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
##
## Copyright (C) 2022 Xilinx, Inc.
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/dynamic_dispatch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/dynamic_dispatch_2.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/dynamic_dispatch_gen.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/dynamic_dispatch_gen_2.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/dynamic_dispatch_subgraphs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##
patterns = {
"QMHAGRPB": [
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/dynamic_dispatch_subgraphs_2.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/dynamic_dispatch_subgraphs_3.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/fuse.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##
import os
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/fuse_GEMM.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/fuse_GEMM_qdq.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/fuse_GMATMULINTEGER.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/fuse_MATMUL.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/fuse_MATMULINTEGER.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/fuse_MATMULNBITS.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/fuse_NMS.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/fuse_QDQ_MATMUL.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/fuse_QDQ_MATMUL_DYNAMIC.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/fuse_decode_filter_boxes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/fuse_resize_norm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/fuse_softmax.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/fuse_topk.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/graph_label_example.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/merge_mul.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/mzdk5_patterns.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/onnx_graph.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##

import onnx
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/onnx_graph_partitioner.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/op_fusion.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##

import numpy
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/op_fusion_index.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##

import numpy
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/partitioner.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/pattern_generate_rule.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/pss_pst_patterns.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/remove_fix_before_relu.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/remove_reshape_fix.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/try_fusion.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2023 – 2024 Advanced Micro Devices, Inc.
## Licensed under the MIT License.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/tune_graph.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##

from . import onnx_graph as ogm
Expand Down
1 change: 1 addition & 0 deletions vaip/python/voe/passes/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
##
## Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
## Licensed under the MIT License.
##
import numpy as np
from collections import OrderedDict
Expand Down

0 comments on commit e788f1a

Please sign in to comment.