Registry / Framework

framework · v0.1.1
Flightdeck cauchy-fit
Downweight large regression residuals using a unit-scale Cauchy objective.
Use Flightdeck cauchy-fit
use vendor::fd_cauchy_fit::cauchy_fit;
Run the example
nest demo fd_cauchy_fit@0.1.1
blyxc native-run fd_cauchy_fit-demo/main.blyx
Example source and expected output
use vendor::fd_cauchy_fit::cauchy_fit;
fn main() { fd_cauchy_fit(2, 7); }
Expected output
module {
func.func @main(%x: tensor<2x7xf32>, %target: tensor<2x7xf32>) -> (tensor<2x7xf32>, tensor<2x7xf32>) {
%v0 = stablehlo.constant dense<0.00000000000000000e+00> : tensor<2x7xf32>
%v1 = stablehlo.subtract %x, %target : tensor<2x7xf32>
%v2 = stablehlo.constant dense<5.00000000000000000e-01> : tensor<2x7xf32>
%v3 = stablehlo.multiply %v1, %v1 : tensor<2x7xf32>
%v4 = stablehlo.log_plus_one %v3 : tensor<2x7xf32>
%v5 = stablehlo.multiply %v2, %v4 : tensor<2x7xf32>
%v6 = stablehlo.constant dense<1.00000000000000000e+00> : tensor<2x7xf32>
%v7 = stablehlo.add %v6, %v3 : tensor<2x7xf32>
%v8 = stablehlo.divide %v1, %v7 : tensor<2x7xf32>
return %v5, %v8 : tensor<2x7xf32>, tensor<2x7xf32>
}
}
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | bf9c3d5003 | 848af2e85c50989445fc19cf66f8663a4189229e4cd6214565709fee9fced2db |
| 0.1.0 | Download ZIP · Browse files | d5835c5109 | d0cf5f9883d7439f621f780e04e65926f8f4f3b7c53b4df923fcb4cf0db153b8 |