WeightTensor
data class WeightTensor<T : DType, V>(val name: String, val shape: List<Int>, val tensor: Tensor<T, V>, val isBias: Boolean = name.lowercase().contains("bias"))(source)
Format-agnostic representation of a weight tensor loaded from any model format (ONNX, GGUF, SafeTensors, etc.).
This abstraction allows the weight mapping logic to be decoupled from the specific serialization format, enabling code reuse across different loaders.