MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TestContextConfigSetAsync

Function TestContextConfigSetAsync

tensorflow/go/context_test.go:24–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22)
23
24func TestContextConfigSetAsync(t *testing.T) {
25 tests := []bool{false, true}
26 for _, test := range tests {
27 t.Run(fmt.Sprint(test), func(t *testing.T) {
28 opt := &ContextOptions{Async: test}
29 if _, err := NewContext(opt); err != nil {
30 t.Fatal(err)
31 }
32 })
33 }
34}
35
36func TestContextConfigListDevices(t *testing.T) {
37 c, err := NewContext(nil)

Callers

nothing calls this directly

Calls 2

NewContextFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected