Dontopedia

attention_mask

From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-06-09.)

attention_mask has 26 facts recorded in Dontopedia across 4 references, with 6 live disagreements.

26 facts·17 predicates·4 sources·6 in dispute

Mostly:rdf:type(3), created by(2), has shape(2)

Maturity scale raw canonical shape-checked rule-derived certified

Inbound mentions (5)

Other subjects in dontopedia point AT this entity as a value. These are inverse relationships — e.g. "X motherOf this subject" — and answer questions the forward facts can't. Grouped by predicate.

containsContains(1)

createsTensorCreates Tensor(1)

derivedFromDerived From(1)

hasArgumentHas Argument(1)

is-used-to-createIs Used to Create(1)

Other facts (24)

The long tail: predicates that appear too rarely to warrant their own section. Filter or scroll to find a specific one. Each row links to its source.

24 facts
PredicateValueRef
Rdf:typeTorch Tensor[2]
Rdf:typePy Torch Tensor[3]
Rdf:typeTensor[4]
Created byTorch Tensor[2]
Created byTorch Randint[4]
Has Shape2x3[2]
Has ShapeShape 2x3[3]
Mask Value0[2]
Mask Value1[2]
Semantic Meaningzero-indicates-padding[2]
Semantic Meaningone-indicates-active-token[2]
Contains ElementBinary Zero[3]
Contains ElementBinary One[3]
Is aTorch Tensor[1]
EncodesToken Validity Mask[1]
Has Shape[2,3][1]
Corresponds toInput Ids Tensor[1]
Has Value[[0, 0, 1], [1, 0, 0]][2]
Used inHandler Call[2]
Tensor Value[[0, 0, 1], [1, 0, 0]][3]
Has Element TypeBinary Type[3]
ShapeBatch Size Sequence Length[4]
Value Range0 to 2[4]
Created WithTorch Randint[4]

Timeline

Timeline axis is valid_time — when each source says the fact was true in the world, not when Dontopedia learned about it. Retracted rows are kept for provenance; coloured stripes indicate the context kind.

is-abeam/537fbc2b-7909-4faa-acb8-7dc925078999
ex:torch-tensor
encodesbeam/537fbc2b-7909-4faa-acb8-7dc925078999
ex:token-validity-mask
has-shapebeam/537fbc2b-7909-4faa-acb8-7dc925078999
[2,3]
corresponds-tobeam/537fbc2b-7909-4faa-acb8-7dc925078999
ex:input-ids-tensor
typebeam/5e8a169a-b4c0-41ba-8477-6cb9d783868b
ex:TorchTensor
createdBybeam/5e8a169a-b4c0-41ba-8477-6cb9d783868b
ex:torch-tensor
hasValuebeam/5e8a169a-b4c0-41ba-8477-6cb9d783868b
[[0, 0, 1], [1, 0, 0]]
hasShapebeam/5e8a169a-b4c0-41ba-8477-6cb9d783868b
2x3
maskValuebeam/5e8a169a-b4c0-41ba-8477-6cb9d783868b
0
maskValuebeam/5e8a169a-b4c0-41ba-8477-6cb9d783868b
1
semanticMeaningbeam/5e8a169a-b4c0-41ba-8477-6cb9d783868b
zero-indicates-padding
semanticMeaningbeam/5e8a169a-b4c0-41ba-8477-6cb9d783868b
one-indicates-active-token
usedInbeam/5e8a169a-b4c0-41ba-8477-6cb9d783868b
ex:handler-call
typebeam/f1f8f635-6c4d-4009-a459-c40f4e5e49a5
ex:PyTorchTensor
labelbeam/f1f8f635-6c4d-4009-a459-c40f4e5e49a5
attention_mask
tensorValuebeam/f1f8f635-6c4d-4009-a459-c40f4e5e49a5
[[0, 0, 1], [1, 0, 0]]
hasShapebeam/f1f8f635-6c4d-4009-a459-c40f4e5e49a5
ex:shape-2x3
hasElementTypebeam/f1f8f635-6c4d-4009-a459-c40f4e5e49a5
ex:binary-type
containsElementbeam/f1f8f635-6c4d-4009-a459-c40f4e5e49a5
ex:binary-zero
containsElementbeam/f1f8f635-6c4d-4009-a459-c40f4e5e49a5
ex:binary-one
typebeam/77f26145-94db-4cae-9f14-ffd10b5837d7
ex:Tensor
labelbeam/77f26145-94db-4cae-9f14-ffd10b5837d7
attention_mask
createdBybeam/77f26145-94db-4cae-9f14-ffd10b5837d7
ex:torch-randint
shapebeam/77f26145-94db-4cae-9f14-ffd10b5837d7
ex:batch-size-sequence-length
valueRangebeam/77f26145-94db-4cae-9f14-ffd10b5837d7
ex:0-to-2
createdWithbeam/77f26145-94db-4cae-9f14-ffd10b5837d7
ex:torch-randint

References (4)

4 references
  1. ctx:claims/beam/537fbc2b-7909-4faa-acb8-7dc925078999
    • full textbeam-chunk
      text/plain1 KBdoc:beam/537fbc2b-7909-4faa-acb8-7dc925078999
      Show excerpt
      I've been using the Hugging Face Transformers library, and I'm impressed by its performance, but I need to ensure that my embedding dimensions are correctly configured. Here's a snippet of my current code: ``` import torch from transformers
  2. ctx:claims/beam/5e8a169a-b4c0-41ba-8477-6cb9d783868b
    • full textbeam-chunk
      text/plain1 KBdoc:beam/5e8a169a-b4c0-41ba-8477-6cb9d783868b
      Show excerpt
      input_ids = torch.tensor([[1, 2, 3], [4, 5, 6]]) attention_mask = torch.tensor([[0, 0, 1], [1, 0, 0]]) input_ids, attention_mask = handler(input_ids, attention_mask) print(input_ids) print(attention_mask) ``` ### Explanation 1. **Check fo
  3. ctx:claims/beam/f1f8f635-6c4d-4009-a459-c40f4e5e49a5
    • full textbeam-chunk
      text/plain1 KBdoc:beam/f1f8f635-6c4d-4009-a459-c40f4e5e49a5
      Show excerpt
      optimized_input_ids = self.optimize_input_ids(input_ids) optimized_attention_mask = self.optimize_attention_mask(attention_mask) return optimized_input_ids, optimized_attention_mask def optimize_inp
  4. ctx:claims/beam/77f26145-94db-4cae-9f14-ffd10b5837d7

See also

Keep researching

Missing something or suspicious of what's here? Kick off a research session — a Claude agent will investigate, cite its sources, and file new facts into a dedicated context you can review before accepting into the shared view.