Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
396
func
ptrTensor(l []*C.TF_Tensor) **C.TF_Tensor {
397
if
len(l) == 0 {
398
return
nil
399
}
400
return
&l[0]
401
}
402
403
func
ptrOperation(l []*C.TF_Operation) **C.TF_Operation {
404
if
len(l) == 0 {
Callers
2
Run
Method · 0.85
Run
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected