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

Function TestPlaceholder

tensorflow/go/op/op_test.go:28–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26)
27
28func 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
38func TestAddOperationFailure(t *testing.T) {
39 // Inspired from https://github.com/tensorflow/tensorflow/issues/9931

Callers

nothing calls this directly

Calls 6

SubScopeMethod · 0.95
FinalizeMethod · 0.95
NewScopeFunction · 0.85
PlaceholderShapeFunction · 0.85
PlaceholderFunction · 0.70
MakeShapeMethod · 0.45

Tested by

no test coverage detected