InitTensor

data class InitTensor(val name: String, val isBias: Boolean, val shape: List<Int>, val tensor: Tensor<FP32, Float>)(source)

Deprecated

Use WeightTensor from skainet-io-core for format-agnostic code

Replace with

import sk.ainet.io.weights.WeightTensor
WeightTensor<FP32, Float>

Holds a decoded ONNX tensor ready for weight assignment.

Constructors

Link copied to clipboard
constructor(name: String, isBias: Boolean, shape: List<Int>, tensor: Tensor<FP32, Float>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val shape: List<Int>
Link copied to clipboard

Functions

Link copied to clipboard

Convert to format-agnostic WeightTensor.