Skip to main content

reconstruct_branch_matrix

Function reconstruct_branch_matrix 

Source
pub fn reconstruct_branch_matrix(
    u: &Tensor,
    v: &Tensor,
    u1: &Tensor,
    u2: &Tensor,
    v1: &Tensor,
    v2: &Tensor,
    quant_func: QuantFunc,
) -> Result<Tensor>
Expand description

Reconstruct dense approximated weight (out_features, in_features) from U and V factors for diagnostics and error evaluation.

ยงErrors

Returns an error on shape mismatch.