(t *testing.T)
| 26 | ) |
| 27 | |
| 28 | func TestPlaceholder(t *testing.T) { |
| 29 | s := NewScope() |
| 30 | Placeholder(s.SubScope("x"), tf.Float, PlaceholderShape(tf.MakeShape(-1, 10))) |
| 31 | Placeholder(s.SubScope("y"), tf.Float, PlaceholderShape(tf.ScalarShape())) |
| 32 | Placeholder(s.SubScope("z"), tf.Float, PlaceholderShape(tf.Shape{})) |
| 33 | if _, err := s.Finalize(); err != nil { |
| 34 | t.Fatal(err) |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | func TestAddOperationFailure(t *testing.T) { |
| 39 | // Inspired from https://github.com/tensorflow/tensorflow/issues/9931 |
nothing calls this directly
no test coverage detected