From e36912f961bc2421c147378ec967fbbc7f4375e7 Mon Sep 17 00:00:00 2001 From: Alexander Zinoviev <8257131+alexander-zinoviev@users.noreply.github.com> Date: Wed, 19 Apr 2023 18:35:46 -0700 Subject: [PATCH] Fix for dangling references in the MHA example (#918) --- .../iterators/predicated_tile_access_iterator_residual_last.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/41_fused_multi_head_attention/iterators/predicated_tile_access_iterator_residual_last.h b/examples/41_fused_multi_head_attention/iterators/predicated_tile_access_iterator_residual_last.h index d49bf83e..0f5bb84a 100644 --- a/examples/41_fused_multi_head_attention/iterators/predicated_tile_access_iterator_residual_last.h +++ b/examples/41_fused_multi_head_attention/iterators/predicated_tile_access_iterator_residual_last.h @@ -175,7 +175,7 @@ class PredicatedTileAccessIteratorResidualLast< Mask residual_tile_mask; /// Parameters object with precomputed internal state - Params const& params_; + Params params_; /// Internal pointer to first access of tile BytePointer pointer_; @@ -1018,7 +1018,7 @@ class PredicatedTileAccessIteratorResidualLast< // /// Parameters object with precomputed internal state - Params const& params_; + Params params_; /// Internal pointer to first access of tile BytePointer pointer_;