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

Function Placeholder

tensorflow/go/util_test.go:19–28  ·  view source on GitHub ↗
(g *Graph, name string, dt DataType)

Source from the content-addressed store, hash-verified

17package tensorflow
18
19func Placeholder(g *Graph, name string, dt DataType) (Output, error) {
20 op, err := g.AddOperation(OpSpec{
21 Type: "Placeholder",
22 Name: name,
23 Attrs: map[string]interface{}{
24 "dtype": dt,
25 },
26 })
27 return op.Output(0), err
28}
29
30func Const(g *Graph, name string, value interface{}) (Output, error) {
31 t, ok := value.(*Tensor)

Callers 15

TestGraphAddGradientsFunction · 0.70
createTestGraphFunction · 0.70
ExamplePartialRunFunction · 0.70
createGraphAndOpFunction · 0.70
TestOperationInputsFunction · 0.70
TestOperationConsumersFunction · 0.70
CreateTestGraphFunction · 0.50

Calls 2

AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by

no test coverage detected