From 25030400873d2fa4160c512cdc3a2e260f70db5a Mon Sep 17 00:00:00 2001 From: Richa Gadgil Date: Fri, 24 Jan 2025 13:31:51 -0800 Subject: [PATCH] Peephole LSTM Error (#3768) --- src/propagate_constant.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/propagate_constant.cpp b/src/propagate_constant.cpp index 49b779c7b40..adad621ce1b 100644 --- a/src/propagate_constant.cpp +++ b/src/propagate_constant.cpp @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright (c) 2015-2024 Advanced Micro Devices, Inc. All rights reserved. + * Copyright (c) 2015-2025 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 @@ -48,6 +48,8 @@ bool skip_propagate(instruction_ref ins) auto alias = instruction::get_output_alias(ins, true); if(alias != ins) return skip_propagate(alias); + if(ins->is_undefined()) + return true; return false; }