MCPcopy
hub / github.com/dmlc/dgl / randint

Function randint

python/dgl/backend/tensorflow/tensor.py:367–370  ·  view source on GitHub ↗
(shape, dtype, ctx, low, high)

Source from the content-addressed store, hash-verified

365
366
367def randint(shape, dtype, ctx, low, high):
368 with tf.device(ctx):
369 t = tf.random.uniform(shape, dtype=dtype, minval=low, maxval=high)
370 return t
371
372
373def pad_packed_tensor(input, lengths, value, l_min=None):

Callers

nothing calls this directly

Calls 2

uniformMethod · 0.80
deviceMethod · 0.45

Tested by

no test coverage detected