mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
checkpoint: File edit:
🚀 Generated with [Claude Code](https://claude.com/claude-code) 📊 V3 Development Progress Checkpoint Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
This commit is contained in:
1 parent
13f7e39235
commit
7cd80727fd
1 file changed
+7
-2
@@ -298,8 +298,13 @@ describe('FlashAttentionOptimizer', () => {
|
||||
|
||||
describe('resetMetrics()', () => {
|
||||
it('should reset all metrics to zero', () => {
|
||||
// Generate some metrics
|
||||
optimizer.benchmark();
|
||||
// Generate some metrics via optimize (which increments operations)
|
||||
const input: AttentionInput = {
|
||||
query: new Float32Array(512).fill(0.5),
|
||||
keys: [new Float32Array(512).fill(0.3)],
|
||||
values: [new Float32Array(512).fill(0.2)],
|
||||
};
|
||||
optimizer.optimize(input);
|
||||
expect(optimizer.getMetrics().totalOperations).toBeGreaterThan(0);
|
||||
|
||||
// Reset
|
||||
|
||||
Reference in new issue
Block a user