Unverified50% confidenceFactExact time
reshape supports using -1 as a placeholder, indicating that the size of that dimension is automatically inferred by PyTorch based on the total number of elements; only one dimension can be inferred, and setting both dimensions to -1 will report an error.
1
Sources
50%
Confidence
Long-term
Relevance
11/10/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedA tensor is the core data structure in machine learning, and can be understood as a general term for multi-dimensional arrays: a scalar is a 0-dimensional tensor, a vector is 1-dimensional, a matrix is 2-dimensional, and higher dimensions are N-dimensional tensors.63% similarUnverifiedLayerNorm does not depend on the batch dimension, but it re-centers and rescales each sample along the feature dimension, introducing extra reduction computation and memory access overhead in large-scale Transformers.62% similarUnverifiedThe scaling factor (1/√d) in scaled dot-product attention only addresses the dimensionality problem, not the feature scale problem, so co-designing normalization and encoding is crucial.61% similarUnverifiedHierarchical representation means the model outputs variable-length embedding vectors, typically implemented through multi-level dimension reduction, with 1D reducing along a single dimension and 2D compressing two dimensions simultaneously.61% similarUnverifiedThe principle of tiled processing is to split the feature map into sub-tiles along the spatial dimension for independent computation and then merge them; peak VRAM usage decreases linearly as the number of tiles increases, but overlapping sampling is required to avoid seams and the total computation increases slightly.60% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1156597API
curl https://kongchang.com/api/v1/knowledge/claims/1156597MCP
get_claim(id=1156597)