Skip to content

Commit

Permalink
Peephole LSTM Error (#3768)
Browse files Browse the repository at this point in the history
  • Loading branch information
richagadgil authored Jan 24, 2025
1 parent 0bfc8e0 commit 2503040
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/propagate_constant.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 2503040

Please sign in to comment.