Commit 57b856b3 authored by ltqin's avatar ltqin
Browse files

fix get N bug

parent 8afad0f6
......@@ -210,7 +210,7 @@ void run_attention_fwd_host(const TensorQ& q_g_m_k,
// masking
#if USING_MASK
auto N = s_g_m_n.GetLengths()[1];
auto N = s_g_m_n.GetLengths()[2];
const auto mask = DeviceGemmInstance::C0MatrixMask(N);
s_g_m_n.ForEach([&](auto& self, auto idx) {
if(mask.IsMaskedElement(idx[1], idx[2]))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment