Skip to content

Commit 04272c0

Browse files
liujianhang-designtensor-tang
authored andcommitted
Enable lstm peephole (#13160)
* Refine fusion lstm op code for better readability * Enable peephole in fusion lstm op (seq_mode part) and add unit test * Enable peephole in fused lstop op (batch_mode part) Set batch_mode as default as well * Use pre-commit to clean format * Follow up review comments as well as adding more unit tests for seq mode
1 parent bab3412 commit 04272c0

File tree

3 files changed

+257
-74
lines changed

3 files changed

+257
-74
lines changed

paddle/fluid/framework/ir/fc_lstm_fuse_pass.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
1514
#include "paddle/fluid/framework/ir/fc_lstm_fuse_pass.h"
1615
#include <string>
1716
#include "paddle/fluid/framework/lod_tensor.h"

0 commit comments

Comments
 (0)