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

Method toGo

tensorflow/go/session.go:381–387  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

379}
380
381func (c *cRunArgs) toGo() []*Tensor {
382 ret := make([]*Tensor, len(c.fetchTensors))
383 for i, ct := range c.fetchTensors {
384 ret[i] = newTensorFromC(ct)
385 }
386 return ret
387}
388
389func ptrOutput(l []C.TF_Output) *C.TF_Output {
390 if len(l) == 0 {

Callers 2

RunMethod · 0.80
RunMethod · 0.80

Calls 2

makeFunction · 0.85
newTensorFromCFunction · 0.85

Tested by

no test coverage detected