/external/OpenCL-CTS/test_conformance/api/ |
D | test_native_kernel.cpp | 36 int test_native_kernel(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems… in test_native_kernel() argument 50 cl_int inBuffer[ n_elems ], outBuffer[ n_elems ]; in test_native_kernel() 52 cl_int* inBuffer = (cl_int *)_malloca( n_elems * sizeof(cl_int) ); in test_native_kernel() 53 cl_int* outBuffer = (cl_int *)_malloca( n_elems * sizeof(cl_int) ); in test_native_kernel() 66 generate_random_data( kInt, n_elems, seed, inBuffer ); in test_native_kernel() 70 …streams[ 0 ] = clCreateBuffer( context, CL_MEM_COPY_HOST_PTR, n_elems * sizeof(cl_int), inBuffer, … in test_native_kernel() 72 streams[ 1 ] = clCreateBuffer( context, 0, n_elems * sizeof(cl_int), NULL, &error ); in test_native_kernel() 79 args.count = n_elems; in test_native_kernel() 100 …error = clEnqueueReadBuffer( queue, streams[ 1 ], CL_TRUE, 0, n_elems * sizeof(cl_int), outBuffer,… in test_native_kernel() 103 for( int i = 0; i < n_elems; i++ ) in test_native_kernel()
|
/external/OpenCL-CTS/test_conformance/commonfns/ |
D | test_stepf.cpp | 25 …nt test_stepf_double(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems); 98 int test_stepf(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_stepf() argument 109 num_elements = n_elems * 16; in test_stepf() 193 threads[0] = (size_t)n_elems; in test_stepf() 213 err = verify_step(input_ptr[0], input_ptr[1], output_ptr, n_elems, 1); in test_stepf() 221 err = verify_step(input_ptr[0], input_ptr[1], output_ptr, n_elems*2, 2); in test_stepf() 229 err = verify_step(input_ptr[0], input_ptr[1], output_ptr, n_elems*4, 4); in test_stepf() 237 err = verify_step(input_ptr[0], input_ptr[1], output_ptr, n_elems*8, 8); in test_stepf() 245 err = verify_step(input_ptr[0], input_ptr[1], output_ptr, n_elems*16, 16); in test_stepf() 253 err = verify_step(input_ptr[0], input_ptr[1], output_ptr, n_elems*3, 3); in test_stepf() [all …]
|
D | test_step.cpp | 26 test_step_double(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems); 95 test_step(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_step() argument 107 num_elements = n_elems * 16; in test_step() 194 threads[0] = (size_t)n_elems; in test_step() 214 err = verify_step(input_ptr[0], input_ptr[1], output_ptr, n_elems); in test_step() 222 err = verify_step(input_ptr[0], input_ptr[1], output_ptr, n_elems*2); in test_step() 230 err = verify_step(input_ptr[0], input_ptr[1], output_ptr, n_elems*4); in test_step() 238 err = verify_step(input_ptr[0], input_ptr[1], output_ptr, n_elems*8); in test_step() 246 err = verify_step(input_ptr[0], input_ptr[1], output_ptr, n_elems*16); in test_step() 254 err = verify_step(input_ptr[0], input_ptr[1], output_ptr, n_elems*3); in test_step() [all …]
|
D | test_sign.cpp | 26 test_sign_double(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems); 103 test_sign(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_sign() argument 116 num_elements = n_elems * 16; in test_sign() 184 threads[0] = (size_t)n_elems; in test_sign() 201 if (verify_sign(input_ptr[0], output_ptr, n_elems*(i+1))) in test_sign() 235 return test_sign_double( device, context, queue, n_elems); in test_sign() 319 test_sign_double(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_sign_double() argument 332 num_elements = n_elems * 16; in test_sign_double() 399 threads[0] = (size_t)n_elems; in test_sign_double() 416 if (verify_sign_double(input_ptr[0], output_ptr, n_elems*(i+1))) in test_sign_double()
|
D | test_smoothstepf.cpp | 77 test_smoothstepf(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_smoothstepf() argument 90 num_elements = n_elems * 4; in test_smoothstepf() 197 threads[0] = (size_t)n_elems; in test_smoothstepf() 217 … max_err = verify_smoothstep(input_ptr[0], input_ptr[1], input_ptr[2], output_ptr, n_elems, 1); in test_smoothstepf() 220 … max_err = verify_smoothstep(input_ptr[0], input_ptr[1], input_ptr[2], output_ptr, n_elems, 2); in test_smoothstepf() 223 … max_err = verify_smoothstep(input_ptr[0], input_ptr[1], input_ptr[2], output_ptr, n_elems, 4); in test_smoothstepf()
|
D | test_radians.cpp | 29 … test_radians_double(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems); 114 test_radians(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_radians() argument 130 num_elements = n_elems * (1 << (kTotalVecCount-1)); in test_radians() 216 if (verify_radians(input_ptr[0], output_ptr, n_elems*(i+1))) in test_radians() 249 return test_radians_double( device, context, queue, n_elems); in test_radians() 344 test_radians_double(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_radians_double() argument 362 num_elements = n_elems * (1 << (kTotalVecCount-1)); in test_radians_double() 447 if (verify_radians_double(input_ptr[0], output_ptr, n_elems*(i+1))) in test_radians_double()
|
D | test_degrees.cpp | 29 … test_degrees_double(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems); 113 test_degrees(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_degrees() argument 129 num_elements = n_elems * (1 << (kTotalVecCount-1)); in test_degrees() 217 if (verify_degrees(input_ptr[0], output_ptr, n_elems*(i+1))) in test_degrees() 251 return test_degrees_double( device, context, queue, n_elems); in test_degrees() 343 test_degrees_double(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_degrees_double() argument 360 num_elements = n_elems * (1 << (kTotalVecCount-1)); in test_degrees_double() 447 if (verify_degrees_double(input_ptr[0], output_ptr, n_elems*(i+1))) in test_degrees_double()
|
D | test_binary_fn.cpp | 52 int test_binary_fn( cl_device_id device, cl_context context, cl_command_queue queue, int n_elems, in test_binary_fn() argument 70 num_elements = n_elems * (1 << (kTotalVecCount-1)); in test_binary_fn() 179 threads[0] = (size_t)n_elems; in test_binary_fn() 189 if( floatVerifyFn( input_ptr[0], input_ptr[1], output_ptr, n_elems, ((g_arrVecSizes[i])) ) ) in test_binary_fn() 214 threads[0] = (size_t)n_elems; in test_binary_fn() 222 …leVerifyFn( input_ptr_double[0], input_ptr_double[1], output_ptr_double, n_elems, ((g_arrVecSizes[… in test_binary_fn()
|
D | test_clamp.cpp | 117 test_clamp(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_clamp() argument 133 num_elements = n_elems * (1 << (kVectorSizeCount-1)); in test_clamp() 227 threads[0] = (size_t)n_elems; in test_clamp() 235 …if (verify_clamp(input_ptr[0], input_ptr[1], input_ptr[2], output_ptr, n_elems*((g_arrVecSizes[i])… in test_clamp() 265 threads[0] = (size_t)n_elems; in test_clamp() 273 …_double[0], input_ptr_double[1], input_ptr_double[2], output_ptr_double, n_elems*g_arrVecSizes[(i-… in test_clamp()
|
D | test_fmin.cpp | 90 test_fmin(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_fmin() argument 106 num_elements = n_elems * (1 << (kTotalVecCount-1));; in test_fmin() 196 threads[0] = (size_t)n_elems; in test_fmin() 213 if (verify_fmin(input_ptr[0], input_ptr[1], output_ptr, n_elems*((g_arrVecSizes[i])))) in test_fmin()
|
/external/OpenCL-CTS/test_conformance/workgroups/ |
D | test_wg_reduce.cpp | 164 …_group_reduce_add_int(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_reduce_add_int() argument 189 num_elements = n_elems; in test_work_group_reduce_add_int() 269 …group_reduce_add_uint(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_reduce_add_uint() argument 294 num_elements = n_elems; in test_work_group_reduce_add_uint() 338 threads[0] = (size_t)n_elems; in test_work_group_reduce_add_uint() 373 …group_reduce_add_long(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_reduce_add_long() argument 398 num_elements = n_elems; in test_work_group_reduce_add_long() 442 threads[0] = (size_t)n_elems; in test_work_group_reduce_add_long() 478 …roup_reduce_add_ulong(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_reduce_add_ulong() argument 503 num_elements = n_elems; in test_work_group_reduce_add_ulong() [all …]
|
D | test_wg_scan_inclusive_add.cpp | 161 …can_inclusive_add_int(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_inclusive_add_int() argument 186 num_elements = n_elems; in test_work_group_scan_inclusive_add_int() 266 …an_inclusive_add_uint(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_inclusive_add_uint() argument 291 num_elements = n_elems; in test_work_group_scan_inclusive_add_uint() 335 threads[0] = (size_t)n_elems; in test_work_group_scan_inclusive_add_uint() 370 …an_inclusive_add_long(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_inclusive_add_long() argument 395 num_elements = n_elems; in test_work_group_scan_inclusive_add_long() 439 threads[0] = (size_t)n_elems; in test_work_group_scan_inclusive_add_long() 475 …n_inclusive_add_ulong(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_inclusive_add_ulong() argument 500 num_elements = n_elems; in test_work_group_scan_inclusive_add_ulong() [all …]
|
D | test_wg_scan_exclusive_add.cpp | 172 …can_exclusive_add_int(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_exclusive_add_int() argument 197 num_elements = n_elems; in test_work_group_scan_exclusive_add_int() 277 …an_exclusive_add_uint(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_exclusive_add_uint() argument 302 num_elements = n_elems; in test_work_group_scan_exclusive_add_uint() 346 threads[0] = (size_t)n_elems; in test_work_group_scan_exclusive_add_uint() 381 …an_exclusive_add_long(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_exclusive_add_long() argument 406 num_elements = n_elems; in test_work_group_scan_exclusive_add_long() 450 threads[0] = (size_t)n_elems; in test_work_group_scan_exclusive_add_long() 486 …n_exclusive_add_ulong(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_exclusive_add_ulong() argument 511 num_elements = n_elems; in test_work_group_scan_exclusive_add_ulong() [all …]
|
D | test_wg_scan_inclusive_max.cpp | 163 …can_inclusive_max_int(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_inclusive_max_int() argument 188 num_elements = n_elems; in test_work_group_scan_inclusive_max_int() 268 …an_inclusive_max_uint(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_inclusive_max_uint() argument 293 num_elements = n_elems; in test_work_group_scan_inclusive_max_uint() 337 threads[0] = (size_t)n_elems; in test_work_group_scan_inclusive_max_uint() 372 …an_inclusive_max_long(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_inclusive_max_long() argument 397 num_elements = n_elems; in test_work_group_scan_inclusive_max_long() 441 threads[0] = (size_t)n_elems; in test_work_group_scan_inclusive_max_long() 477 …n_inclusive_max_ulong(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_inclusive_max_ulong() argument 502 num_elements = n_elems; in test_work_group_scan_inclusive_max_ulong() [all …]
|
D | test_wg_scan_inclusive_min.cpp | 163 …can_inclusive_min_int(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_inclusive_min_int() argument 188 num_elements = n_elems; in test_work_group_scan_inclusive_min_int() 268 …an_inclusive_min_uint(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_inclusive_min_uint() argument 293 num_elements = n_elems; in test_work_group_scan_inclusive_min_uint() 337 threads[0] = (size_t)n_elems; in test_work_group_scan_inclusive_min_uint() 372 …an_inclusive_min_long(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_inclusive_min_long() argument 397 num_elements = n_elems; in test_work_group_scan_inclusive_min_long() 441 threads[0] = (size_t)n_elems; in test_work_group_scan_inclusive_min_long() 477 …n_inclusive_min_ulong(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_inclusive_min_ulong() argument 502 num_elements = n_elems; in test_work_group_scan_inclusive_min_ulong() [all …]
|
D | test_wg_scan_exclusive_min.cpp | 164 …can_exclusive_min_int(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_exclusive_min_int() argument 198 num_elements = n_elems; in test_work_group_scan_exclusive_min_int() 278 …an_exclusive_min_uint(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_exclusive_min_uint() argument 312 num_elements = n_elems; in test_work_group_scan_exclusive_min_uint() 356 threads[0] = (size_t)n_elems; in test_work_group_scan_exclusive_min_uint() 391 …an_exclusive_min_long(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_exclusive_min_long() argument 425 num_elements = n_elems; in test_work_group_scan_exclusive_min_long() 469 threads[0] = (size_t)n_elems; in test_work_group_scan_exclusive_min_long() 505 …n_exclusive_min_ulong(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_exclusive_min_ulong() argument 539 num_elements = n_elems; in test_work_group_scan_exclusive_min_ulong() [all …]
|
D | test_wg_reduce_max.cpp | 164 …_group_reduce_max_int(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_reduce_max_int() argument 198 num_elements = n_elems; in test_work_group_reduce_max_int() 278 …group_reduce_max_uint(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_reduce_max_uint() argument 312 num_elements = n_elems; in test_work_group_reduce_max_uint() 356 threads[0] = (size_t)n_elems; in test_work_group_reduce_max_uint() 391 …group_reduce_max_long(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_reduce_max_long() argument 425 num_elements = n_elems; in test_work_group_reduce_max_long() 469 threads[0] = (size_t)n_elems; in test_work_group_reduce_max_long() 505 …roup_reduce_max_ulong(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_reduce_max_ulong() argument 539 num_elements = n_elems; in test_work_group_reduce_max_ulong() [all …]
|
D | test_wg_scan_exclusive_max.cpp | 163 …can_exclusive_max_int(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_exclusive_max_int() argument 197 num_elements = n_elems; in test_work_group_scan_exclusive_max_int() 277 …an_exclusive_max_uint(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_exclusive_max_uint() argument 311 num_elements = n_elems; in test_work_group_scan_exclusive_max_uint() 355 threads[0] = (size_t)n_elems; in test_work_group_scan_exclusive_max_uint() 390 …an_exclusive_max_long(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_exclusive_max_long() argument 424 num_elements = n_elems; in test_work_group_scan_exclusive_max_long() 468 threads[0] = (size_t)n_elems; in test_work_group_scan_exclusive_max_long() 504 …n_exclusive_max_ulong(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_scan_exclusive_max_ulong() argument 538 num_elements = n_elems; in test_work_group_scan_exclusive_max_ulong() [all …]
|
D | test_wg_reduce_min.cpp | 164 …_group_reduce_min_int(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_reduce_min_int() argument 198 num_elements = n_elems; in test_work_group_reduce_min_int() 278 …group_reduce_min_uint(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_reduce_min_uint() argument 312 num_elements = n_elems; in test_work_group_reduce_min_uint() 356 threads[0] = (size_t)n_elems; in test_work_group_reduce_min_uint() 391 …group_reduce_min_long(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_reduce_min_long() argument 425 num_elements = n_elems; in test_work_group_reduce_min_long() 469 threads[0] = (size_t)n_elems; in test_work_group_reduce_min_long() 505 …roup_reduce_min_ulong(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_reduce_min_ulong() argument 539 num_elements = n_elems; in test_work_group_reduce_min_ulong() [all …]
|
D | test_wg_broadcast.cpp | 162 …rk_group_broadcast_1D(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_broadcast_1D() argument 187 num_elements = n_elems; in test_work_group_broadcast_1D() 233 globalsize[0] = (size_t)n_elems; in test_work_group_broadcast_1D() 269 …rk_group_broadcast_2D(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_broadcast_2D() argument 313 num_workgroups = MAX(n_elems/wg_size[0], 16); in test_work_group_broadcast_2D() 396 …rk_group_broadcast_3D(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_broadcast_3D() argument 440 num_workgroups = MAX(n_elems/wg_size[0], 8); in test_work_group_broadcast_3D() 524 …_work_group_broadcast(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems) in test_work_group_broadcast() argument 528 err = test_work_group_broadcast_1D(device, context, queue, n_elems); in test_work_group_broadcast() 530 err = test_work_group_broadcast_2D(device, context, queue, n_elems); in test_work_group_broadcast()
|
/external/OpenCL-CTS/test_conformance/basic/ |
D | procs.h | 70 … test_arraycopy(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems); 173 …ory_alignment_local(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems ); 174 …ry_alignment_global(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems ); 175 …_alignment_constant(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems ); 176 …y_alignment_private(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems ); 178 …var_prog_scope_misc(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems ); 179 …r_prog_scope_uninit(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems ); 180 …var_prog_scope_init(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems ); 181 …_progvar_func_scope(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems ); 183 …global_work_offsets(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems ); [all …]
|
D | test_kernel_memory_alignment.cpp | 151 …ent(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems, AddressSpaces ad… in test_kernel_memory_alignment() argument 498 …mory_alignment_local(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems ) in test_kernel_memory_alignment_local() argument 500 return test_kernel_memory_alignment( device, context, queue, n_elems, kLocal ); in test_kernel_memory_alignment_local() 503 …ory_alignment_global(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems ) in test_kernel_memory_alignment_global() argument 505 return test_kernel_memory_alignment( device, context, queue, n_elems, kGlobal ); in test_kernel_memory_alignment_global() 508 …y_alignment_constant(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems ) in test_kernel_memory_alignment_constant() argument 562 return test_kernel_memory_alignment( device, context, queue, n_elems, kConstant ); in test_kernel_memory_alignment_constant() 565 …ry_alignment_private(cl_device_id device, cl_context context, cl_command_queue queue, int n_elems ) in test_kernel_memory_alignment_private() argument 567 return test_kernel_memory_alignment( device, context, queue, n_elems, kPrivate ); in test_kernel_memory_alignment_private()
|
/external/rust/crates/libz-sys/src/zlib-ng/arch/power/ |
D | slide_hash_power8.c | 13 static inline void slide_hash_power8_loop(deflate_state *s, unsigned n_elems, Pos *table_end) { in slide_hash_power8_loop() argument 24 chunks = n_elems >> 3; in slide_hash_power8_loop() 25 Assert(n_elems % 8 == 0, "Weird hash table size!"); in slide_hash_power8_loop()
|
/external/tensorflow/tensorflow/python/ops/ |
D | bincount_ops_test.py | 527 n_elems = 4096 528 inp_indices = np.random.randint(0, num_rows, (n_elems, 1)) 529 inp_indices = np.concatenate([inp_indices, np.zeros((n_elems, 1))], axis=1) 530 inp_vals = np.random.randint(0, size, (n_elems,), dtype=dtype) 547 n_elems = 4096 548 inp_indices = np.random.randint(0, num_rows, (n_elems, 1)) 549 inp_indices = np.concatenate([inp_indices, np.zeros((n_elems, 1))], axis=1) 550 inp_vals = np.random.randint(0, size, (n_elems,), dtype=dtype) 553 weight_vals = np.random.random((n_elems,)) 572 n_elems = 4096 [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | bincount_op_test.py | 348 n_elems = 4096 349 inp_indices = np.random.randint(0, num_rows, (n_elems,)) 350 inp_vals = np.random.randint(0, size, (n_elems,), dtype=dtype) 372 n_elems = 4096 373 inp_indices = np.random.randint(0, num_rows, (n_elems,)) 374 inp_vals = np.random.randint(0, size, (n_elems,), dtype=dtype) 375 inp_weight = np.random.random((n_elems,)) 397 n_elems = 4096 398 inp_indices = np.random.randint(0, num_rows, (n_elems,)) 399 inp_vals = np.random.randint(0, size, (n_elems,), dtype=dtype) [all …]
|