MCPcopy
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
361def 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
367def randint(shape, dtype, ctx, low, high):

Callers

nothing calls this directly

Calls 2

uniformMethod · 0.80
deviceMethod · 0.45

Tested by

no test coverage detected