Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/tensorpack/tensorpack
/ has_tensor
Method
has_tensor
tensorpack/tfutils/sessinit.py:64–65 ·
view source on GitHub ↗
(self, name)
Source
from the content-addressed store, hash-verified
62
return
self._reader.get_tensor(name)
63
64
def
has_tensor(self, name):
65
return
name in self._map
66
67
# some checkpoint might not have ':0'
68
def
get_real_name(self, name):
Callers
3
get_real_name
Method · 0.95
get_tensor
Method · 0.80
_match_vars
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected