Torch.tensor
From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-06-10.)
Torch.tensor has 22 facts recorded in Dontopedia across 9 references, with 4 live disagreements.
Mostly:has argument(3), rdf:type(3), converts(2)
From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-06-10.)
Torch.tensor has 22 facts recorded in Dontopedia across 9 references, with 4 live disagreements.
Mostly:has argument(3), rdf:type(3), converts(2)
calledForacceptsrdf:typerdfs:labelhasTypespecifiedDtypehasParameterOther 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.
callsCalls(1)ex:training_loopcallsFunctionCalls Function(1)ex:training-loopconvertedToConverted to(1)ex:labelsconvertsConverts(1)ex:rerank_results-functionex:usesFunctionEx:uses Function(1)ex:sequence-padding-codeisCreatedByIs Created by(1)ex:missing_mask_tensorreturnsReturns(1)ex:preprocessusesUses(1)ex:preprocessThe 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.
| Predicate | Value | Ref |
|---|---|---|
| Creates | Py Torch Tensor | [3] |
| Calls | Torch | [3] |
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.
doc:beam/a99ab184-7268-4087-8c02-db8c27e7c554'query': [decrypt_data(query) for query in batch['query']], 'label': [decrypt_data(label) for label in batch['label']] } # Process the batch inputs = torch.tensor(decrypte…
doc:beam/64b8b150-cfe1-489d-9125-b9c9a1707b48def cache_tokenized_results(results, key='tokenized_results', expire_time=300): serialized_results = pickle.dumps(results) encrypted_results = cipher_suite.encrypt(serialized_results) redis_client.setex(key, expire_time, encrypt…
doc:beam/f30a9e05-edee-4868-b8aa-51b84686222a2. **Check Data Loading Logic**: Ensure that your data loading logic correctly handles batching and does not produce incomplete or inconsistent batches. 3. **Use Fixed Batch Sizes**: If possible, use a fixed batch size to avoid dynamic chan…
doc:beam/d9a80d69-c4c9-47c5-8393-2eaf674f6563inputs = torch.tensor(decrypted_batch['query'], dtype=torch.float32).to(device) labels = torch.tensor(decrypted_batch['label'], dtype=torch.long).to(device) # Forward pass outputs = model(inputs) los…
doc:beam/a8d4e00d-0adb-49c2-a304-e8356b9d69a3model = BertForMaskedLM.from_pretrained('bert-base-uncased') def find_closest_match(word, dictionary, threshold=2): """ Find the closest match in the dictionary using the specified threshold. """ min_distance = float('inf')…
doc:beam/83f64273-9200-45a2-92d1-45b3601b1ba6resizer = ContextWindowResizer(max_window_size=512) input_ids = torch.tensor([[1, 2, 3], [4, 5, 6]]) attention_mask = torch.tensor([[0, 0, 1], [1, 0, 0]]) resized_window = resizer(input_ids, attention_mask) print(resized_window) ``` How can…
Dontopedia is in a read-only public launch. Follow the references and disputed branches now; contributions will open after durable identity and moderation are in place.