| 27 | } |
| 28 | |
| 29 | void gen(const TensorND& tensor) override { |
| 30 | auto n = tensor.layout.total_nr_elems(); |
| 31 | if (m_dtype == dtype::Float32{}) { |
| 32 | fill(tensor.ptr<dt_float32>(), n); |
| 33 | } else { |
| 34 | megdnn_assert(m_dtype == dtype::Int32{}); |
| 35 | fill(tensor.ptr<dt_int32>(), n); |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | public: |
| 40 | ArgsortRNG(DType dt) : m_dtype{dt} {} |
nothing calls this directly
no test coverage detected