Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
c6b6938b
Commit
c6b6938b
authored
Mar 11, 2025
by
jmorganca
Committed by
Michael Yang
Mar 11, 2025
Browse files
kvcache: fix tests by adding AvgPool2D stub
parent
fb4664fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
kvcache/causal_test.go
kvcache/causal_test.go
+4
-0
No files found.
kvcache/causal_test.go
View file @
c6b6938b
...
@@ -445,6 +445,10 @@ func (t *testTensor) AvgPool1D(ctx ml.Context, k, s, p int) ml.Tensor {
...
@@ -445,6 +445,10 @@ func (t *testTensor) AvgPool1D(ctx ml.Context, k, s, p int) ml.Tensor {
panic
(
"not implemented"
)
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
{
func
(
t
*
testTensor
)
Conv2D
(
ctx
ml
.
Context
,
weight
ml
.
Tensor
,
s0
,
s1
,
p0
,
p1
,
d0
,
d1
int
)
ml
.
Tensor
{
panic
(
"not implemented"
)
panic
(
"not implemented"
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment