"torchvision/vscode:/vscode.git/clone" did not exist on "9ebf10af02aeb882bd8d7782149e21b48528d562"
Commit 58b9ec1f authored by Michael Yang's avatar Michael Yang
Browse files

kvcache: update tests

parent 7bae7fa5
...@@ -303,6 +303,10 @@ func (b *testBackend) NewContext() ml.Context { ...@@ -303,6 +303,10 @@ func (b *testBackend) NewContext() ml.Context {
return &testContext{} return &testContext{}
} }
func (b *testBackend) NewContextSize(int) ml.Context {
return &testContext{}
}
func (b *testBackend) SystemInfo() string { func (b *testBackend) SystemInfo() string {
return "not implemented" return "not implemented"
} }
...@@ -346,11 +350,15 @@ func (c *testContext) FromIntSlice(s []int32, shape ...int) (ml.Tensor, error) { ...@@ -346,11 +350,15 @@ func (c *testContext) FromIntSlice(s []int32, shape ...int) (ml.Tensor, error) {
return out, nil 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) Forward(...ml.Tensor) ml.Context { return c }
func (c *testContext) Compute(...ml.Tensor) {} func (c *testContext) Compute(...ml.Tensor) {}
func (c *testContext) MaxTensors() int { func (c *testContext) MaxGraphNodes() int {
return 10 return 10
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment