(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func TestOperationShapeAttribute(t *testing.T) { |
| 87 | g := NewGraph() |
| 88 | _, err := g.AddOperation(OpSpec{ |
| 89 | Type: "Placeholder", |
| 90 | Attrs: map[string]interface{}{ |
| 91 | "dtype": Float, |
| 92 | "shape": MakeShape(-1, 3), |
| 93 | }, |
| 94 | }) |
| 95 | if err != nil { |
| 96 | t.Fatal(err) |
| 97 | } |
| 98 | // If and when the API to get attributes is added, check that here. |
| 99 | } |
| 100 | |
| 101 | func TestOutputDataTypeAndShape(t *testing.T) { |
| 102 | graph := NewGraph() |
nothing calls this directly
no test coverage detected