Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dmlc/dgl
/ uniform
Function
uniform
python/dgl/backend/tensorflow/tensor.py:361–364 ·
view source on GitHub ↗
(shape, dtype, ctx, low, high)
Source
from the content-addressed store, hash-verified
359
360
361
def
uniform(shape, dtype, ctx, low, high):
362
with
tf.device(ctx):
363
t = tf.random.uniform(shape, dtype=dtype, minval=low, maxval=high)
364
return
t
365
366
367
def
randint(shape, dtype, ctx, low, high):
Callers
nothing calls this directly
Calls
2
uniform
Method · 0.80
device
Method · 0.45
Tested by
no test coverage detected