Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
sample_uniform revert
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaiBapchya committed Nov 15, 2018
1 parent e7e622c commit 9272bf6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions include/mxnet/random_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ class RandGenerator<cpu, DType> {
public:
typedef typename std::conditional<std::is_floating_point<DType>::value,
DType, double>::type FType;
typedef typename std::conditional<std::is_integral<DType>::value,
DType, int>::type IType;
explicit Impl(RandGenerator<cpu, DType> *gen, int state_idx)
: engine_(gen->states_ + state_idx) {}

Expand Down
2 changes: 1 addition & 1 deletion python/mxnet/ndarray/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,5 +565,5 @@ def randint(low, high, shape=_Null, dtype=_Null, ctx=None, out=None, **kwargs):
[ 3 3]]
<NDArray 3x2 @cpu(0)>
"""
return _random_helper(_internal._random_randint, None,
return _random_helper(_internal._random_randint, _internal._sample_uniform,
[low, high], shape, dtype, ctx, out, kwargs)

0 comments on commit 9272bf6

Please sign in to comment.