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

Function ptrTensor

tensorflow/go/session.go:396–401  ·  view source on GitHub ↗
(l []*C.TF_Tensor)

Source from the content-addressed store, hash-verified

394}
395
396func ptrTensor(l []*C.TF_Tensor) **C.TF_Tensor {
397 if len(l) == 0 {
398 return nil
399 }
400 return &l[0]
401}
402
403func ptrOperation(l []*C.TF_Operation) **C.TF_Operation {
404 if len(l) == 0 {

Callers 2

RunMethod · 0.85
RunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected