Commit 2ac1a6b9 authored by Po-Yen, Chen's avatar Po-Yen, Chen
Browse files

Move 'using' directive to proper code position

parent e81f54bb
...@@ -16,12 +16,12 @@ bool run_permute_bundle(const Problem& problem) ...@@ -16,12 +16,12 @@ bool run_permute_bundle(const Problem& problem)
Tensor<BundleType> output_bundle_tensor(output_bundle_shape); Tensor<BundleType> output_bundle_tensor(output_bundle_shape);
// initialize tensor by assigning DataType values // initialize tensor by assigning DataType values
using std::data;
ck::utils::FillUniformDistribution<DataType>{-1.f, 1.f}(input_bundle_tensor.AsSpan<DataType>()); ck::utils::FillUniformDistribution<DataType>{-1.f, 1.f}(input_bundle_tensor.AsSpan<DataType>());
DeviceMem input_device_buf(input_bundle_tensor.GetElementSpaceSizeInBytes()); DeviceMem input_device_buf(input_bundle_tensor.GetElementSpaceSizeInBytes());
DeviceMem output_device_buf(output_bundle_tensor.GetElementSpaceSizeInBytes()); DeviceMem output_device_buf(output_bundle_tensor.GetElementSpaceSizeInBytes());
using std::data;
input_device_buf.ToDevice(data(input_bundle_tensor)); input_device_buf.ToDevice(data(input_bundle_tensor));
const void* input_bundle_data = input_device_buf.GetDeviceBuffer(); const void* input_bundle_data = input_device_buf.GetDeviceBuffer();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment