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