toWeightTensor

Convert to format-agnostic WeightTensor.