Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tkipf/gcn
/ zeros
Function
zeros
gcn/inits.py:18–21 ·
view source on GitHub ↗
All zeros.
(shape, name=None)
Source
from the content-addressed store, hash-verified
16
17
18
def
zeros(shape, name=None):
19
""
"All zeros."
""
20
initial = tf.zeros(shape, dtype=tf.float32)
21
return
tf.Variable(initial, name=name)
22
23
24
def
ones(shape, name=None):
Callers
2
__init__
Method · 0.85
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected