Browse Source

kvcache: fix tests by adding AvgPool2D stub

jmorganca 1 month ago
parent
commit
c6b6938b3a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      kvcache/causal_test.go

+ 4 - 0
kvcache/causal_test.go

@@ -445,6 +445,10 @@ func (t *testTensor) AvgPool1D(ctx ml.Context, k, s, p int) ml.Tensor {
 	panic("not implemented")
 }
 
+func (t *testTensor) AvgPool2D(ctx ml.Context, k, s int, p float32) ml.Tensor {
+	panic("not implemented")
+}
+
 func (t *testTensor) Conv2D(ctx ml.Context, weight ml.Tensor, s0, s1, p0, p1, d0, d1 int) ml.Tensor {
 	panic("not implemented")
 }