(t *testing.T)
| 23 | ) |
| 24 | |
| 25 | func TestNewTensorHandle(t *testing.T) { |
| 26 | vals := [][]float32{{1.0, 2.0}, {3.0, 4.0}} |
| 27 | tensor, err := NewTensor(vals) |
| 28 | if err != nil { |
| 29 | t.Fatal(err) |
| 30 | } |
| 31 | if _, err = NewTensorHandle(tensor); err != nil { |
| 32 | t.Fatal(err) |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | func TestTensorHandleDataType(t *testing.T) { |
| 37 | vals := [][]float32{{1.0, 2.0}, {3.0, 4.0}} |
nothing calls this directly
no test coverage detected