1 write to AttentionMask
Microsoft.ML.GenAI.Core (1)
10 references to AttentionMask
Microsoft.ML.GenAI.Core (2)
Microsoft.ML.GenAI.Core.Tests (4)
CasualLMDatasetTest.cs (4)
48dataset[0].AttentionMask!.data<long>().Should().BeEquivalentTo([1, 1, 1, 1, 1]);
49dataset[^1].AttentionMask!.data<long>().Should().BeEquivalentTo([1, 1, 1, 1, 1, 1, 1, 1, 1]);
51dataset[^1].AttentionMask!.data<long>().Should().BeEquivalentTo([1, 1, 1, 1, 1, 1, 1, 1, 1]);
75item.AttentionMask!.shape.Should().BeEquivalentTo(item.InputIds!.shape);
Microsoft.ML.GenAI.LLaMA (1)
Microsoft.ML.GenAI.Mistral (1)
Microsoft.ML.GenAI.Phi (2)