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

Function ReadFile

tensorflow/go/op/wrappers.go:25993–26005  ·  view source on GitHub ↗

Reads and outputs the entire contents of the input filename.

(scope *Scope, filename tf.Output)

Source from the content-addressed store, hash-verified

25991
25992// Reads and outputs the entire contents of the input filename.
25993func ReadFile(scope *Scope, filename tf.Output) (contents tf.Output) {
25994 if scope.Err() != nil {
25995 return
25996 }
25997 opspec := tf.OpSpec{
25998 Type: "ReadFile",
25999 Input: []tf.Input{
26000 filename,
26001 },
26002 }
26003 op := scope.AddOperation(opspec)
26004 return op.Output(0)
26005}
26006
26007// ResourceApplyAdadeltaAttr is an optional argument to ResourceApplyAdadelta.
26008type ResourceApplyAdadeltaAttr func(optionalAttr)

Callers 2

ReadTensorFromImageFileFunction · 0.50
WavToSpectrogramFunction · 0.50

Calls 3

ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by 1

WavToSpectrogramFunction · 0.40