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
58b9ec1f
Commit
58b9ec1f
authored
Feb 26, 2025
by
Michael Yang
Browse files
kvcache: update tests
parent
7bae7fa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
kvcache/causal_test.go
kvcache/causal_test.go
+9
-1
No files found.
kvcache/causal_test.go
View file @
58b9ec1f
...
...
@@ -303,6 +303,10 @@ func (b *testBackend) NewContext() ml.Context {
return
&
testContext
{}
}
func
(
b
*
testBackend
)
NewContextSize
(
int
)
ml
.
Context
{
return
&
testContext
{}
}
func
(
b
*
testBackend
)
SystemInfo
()
string
{
return
"not implemented"
}
...
...
@@ -346,11 +350,15 @@ func (c *testContext) FromIntSlice(s []int32, shape ...int) (ml.Tensor, error) {
return
out
,
nil
}
func
(
c
*
testContext
)
Input
()
ml
.
Context
{
return
c
}
func
(
c
*
testContext
)
Output
()
ml
.
Context
{
return
c
}
func
(
c
*
testContext
)
Layer
(
int
)
ml
.
Context
{
return
c
}
func
(
c
*
testContext
)
Forward
(
...
ml
.
Tensor
)
ml
.
Context
{
return
c
}
func
(
c
*
testContext
)
Compute
(
...
ml
.
Tensor
)
{}
func
(
c
*
testContext
)
Max
Tensor
s
()
int
{
func
(
c
*
testContext
)
Max
GraphNode
s
()
int
{
return
10
}
...
...
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