private Tensor decodeTensor(Inspector featureValue) {
        if ( ! featureValue.valid()) return null;

        return switch (featureValue.type()) {
            case DOUBLE -> Tensor.from(featureValue.asDouble());
            case DATA -> tensorFromData(featureValue.asData());
            default -> throw new IllegalStateException("Unexpected feature value type " + featureValue.type());
        };
    }
Sets a new or modified value in this.
container-search/src/main/java/com/yahoo/search/result/FeatureData.java