From ea62d7aa627d66c4b560c9323df16f3fa17c59bd Mon Sep 17 00:00:00 2001 From: Khalique Ahmed <15948690+kahmed10@users.noreply.github.com> Date: Tue, 10 Oct 2023 15:02:16 -0500 Subject: [PATCH] update copyright and add description to struct --- src/simplify_algebra.cpp | 2 +- src/simplify_reshapes.cpp | 3 +++ test/simplify_algebra_test.cpp | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/simplify_algebra.cpp b/src/simplify_algebra.cpp index e4e1c6276c7..301b1d9970f 100644 --- a/src/simplify_algebra.cpp +++ b/src/simplify_algebra.cpp @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * Copyright (c) 2015-2023 Advanced Micro Devices, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/src/simplify_reshapes.cpp b/src/simplify_reshapes.cpp index efb4d604f21..9899e875cea 100644 --- a/src/simplify_reshapes.cpp +++ b/src/simplify_reshapes.cpp @@ -632,6 +632,9 @@ struct find_transpose_contiguous_reshaper_unary } }; +// simplifies broadcast->transpose to transpose->broadcast +// in the case of a scalar, simply rewrite to broadcast +// this can allow for further optimizations with find_inner_broadcast() in simplify_algebra.cpp struct find_broadcast_transpose { auto matcher() const diff --git a/test/simplify_algebra_test.cpp b/test/simplify_algebra_test.cpp index 33cf2345799..f5c64d2260f 100644 --- a/test/simplify_algebra_test.cpp +++ b/test/simplify_algebra_test.cpp @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright (c) 2015-2022 Advanced Micro Devices, Inc. All rights reserved. + * Copyright (c) 2015-2023 Advanced Micro Devices, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal