Home
last modified time | relevance | path

Searched refs:AsDeviceMemory (Results 1 – 23 of 23) sorted by relevance

/external/tensorflow/tensorflow/contrib/rnn/kernels/
Dblas_gemm.cc29 se::DeviceMemory<T> AsDeviceMemory(const T* cuda_memory) { in AsDeviceMemory() function
48 auto a_ptr = AsDeviceMemory(a); in operator ()()
49 auto b_ptr = AsDeviceMemory(b); in operator ()()
50 auto c_ptr = AsDeviceMemory(c); in operator ()()
/external/tensorflow/tensorflow/core/kernels/
Dfused_batch_norm_op.cc278 y_ptr = StreamExecutorUtil::AsDeviceMemory<T>(*y); in operator ()()
296 y_ptr = StreamExecutorUtil::AsDeviceMemory<T>(y_transformed); in operator ()()
317 auto x_ptr = StreamExecutorUtil::AsDeviceMemory<T>(x_maybe_transformed); in operator ()()
318 auto scale_ptr = StreamExecutorUtil::AsDeviceMemory<U>(scale); in operator ()()
319 auto offset_ptr = StreamExecutorUtil::AsDeviceMemory<U>(offset); in operator ()()
321 StreamExecutorUtil::AsDeviceMemory<U>(estimated_mean); in operator ()()
323 StreamExecutorUtil::AsDeviceMemory<U>(estimated_variance); in operator ()()
324 auto batch_mean_ptr = StreamExecutorUtil::AsDeviceMemory<U>(*batch_mean); in operator ()()
326 auto batch_var_ptr = StreamExecutorUtil::AsDeviceMemory<U>(*batch_var); in operator ()()
327 auto saved_mean_ptr = StreamExecutorUtil::AsDeviceMemory<U>(*saved_mean); in operator ()()
[all …]
Dfft_ops.cc293 se::DeviceMemory<T> AsDeviceMemory(const T* cuda_memory) { in AsDeviceMemory() function
300 se::DeviceMemory<T> AsDeviceMemory(const T* cuda_memory, uint64 size) { in AsDeviceMemory() function
338 AsDeviceMemory(temporary_memory.flat<uint8>().data(), in AllocateBytes()
425 auto src = AsDeviceMemory<float>(in.flat<float>().data()); in DoFFT()
426 auto dst = AsDeviceMemory<complex64>(out->flat<complex64>().data()); in DoFFT()
432 auto src = AsDeviceMemory<complex64>(in.flat<complex64>().data()); in DoFFT()
433 auto dst = AsDeviceMemory<float>(out->flat<float>().data()); in DoFFT()
450 auto src = AsDeviceMemory<complex64>(in.flat<complex64>().data()); in DoFFT()
451 auto dst = AsDeviceMemory<complex64>(out->flat<complex64>().data()); in DoFFT()
468 auto src = AsDeviceMemory<complex128>(in.flat<complex128>().data()); in DoFFT()
[all …]
Dcudnn_rnn_ops.cc293 const DeviceMemory<T> AsDeviceMemory(const Tensor* tensor) { in AsDeviceMemory() function
300 DeviceMemory<T> AsDeviceMemory(Tensor* tensor) { in AsDeviceMemory() function
469 return AsDeviceMemory<uint8>(handle_.AccessTensor(context_)); in AllocateBytes()
754 auto input_data = AsDeviceMemory<T>(input); in DoForward()
755 auto input_h_data = AsDeviceMemory<T>(input_h); in DoForward()
758 input_c_data = AsDeviceMemory<T>(input_c); in DoForward()
761 auto params_data = AsDeviceMemory<T>(params); in DoForward()
762 auto output_data = AsDeviceMemory<T>(output); in DoForward()
763 auto output_h_data = AsDeviceMemory<T>(output_h); in DoForward()
766 output_c_data = AsDeviceMemory<T>(output_c); in DoForward()
[all …]
Dcudnn_pooling_gpu.cc92 auto input_data = AsDeviceMemory(transformed_input.template flat<T>().data(), in Compute()
95 AsDeviceMemory(transformed_output.template flat<T>().data(), in Compute()
213 AsDeviceMemory(transformed_output.template flat<T>().data(), in Compute()
216 AsDeviceMemory(transformed_input.template flat<T>().data(), in Compute()
219 AsDeviceMemory(transformed_output_backprop.template flat<T>().data(), in Compute()
222 AsDeviceMemory(transformed_input_backprop.template flat<T>().data(), in Compute()
Dpooling_ops_common.cc132 se::DeviceMemory<T> AsDeviceMemory(const T* cuda_memory, uint64 size) { in AsDeviceMemory() function
253 AsDeviceMemory(reinterpret_cast<const typename RawType<T>::type*>( in Compute()
258 AsDeviceMemory(reinterpret_cast<const typename RawType<T>::type*>( in Compute()
401 AsDeviceMemory(transformed_output.template flat<T>().data(), in Compute()
404 AsDeviceMemory(transformed_input.template flat<T>().data(), in Compute()
407 AsDeviceMemory(transformed_output_backprop.template flat<T>().data(), in Compute()
410 AsDeviceMemory(transformed_input_backprop.template flat<T>().data(), in Compute()
Dconv_ops_3d.cc248 auto a_ptr = AsDeviceMemory(input.template flat<T>().data(), in launch()
250 auto b_ptr = AsDeviceMemory(filter.template flat<T>().data(), in launch()
252 auto c_ptr = AsDeviceMemory(output->template flat<T>().data(), in launch()
275 auto a_ptr = AsDeviceMemory(input.template flat<T>().data(), in launch()
277 auto b_ptr = AsDeviceMemory(filter.template flat<T>().data(), in launch()
279 auto c_ptr = AsDeviceMemory(output->template flat<T>().data(), in launch()
403 auto input_ptr = AsDeviceMemory(input.template flat<T>().data(), in launch()
406 AsDeviceMemory(transformed_filter.template flat<T>().data(), in launch()
409 AsDeviceMemory(transformed_output.template flat<T>().data(), in launch()
Dmatrix_triangular_solve_op.cc37 se::DeviceMemory<Scalar> AsDeviceMemory(const Scalar* cuda_memory) { in AsDeviceMemory() function
184 auto matrix_ptr = AsDeviceMemory(matrix.data()); in ComputeMatrix()
185 auto rhs_ptr = AsDeviceMemory(rhs.data()); in ComputeMatrix()
186 auto out_ptr = AsDeviceMemory(output.data()); in ComputeMatrix()
Dconv_grad_ops_3d.cc1177 auto a_ptr = AsDeviceMemory(out_backprop.template flat<T>().data(), in Compute()
1179 auto b_ptr = AsDeviceMemory(filter.template flat<T>().data(), in Compute()
1181 auto c_ptr = AsDeviceMemory(in_backprop->template flat<T>().data(), in Compute()
1206 auto a_ptr = AsDeviceMemory(out_backprop.template flat<T>().data(), in Compute()
1208 auto b_ptr = AsDeviceMemory(filter.template flat<T>().data(), in Compute()
1210 auto c_ptr = AsDeviceMemory(in_backprop->template flat<T>().data(), in Compute()
1326 AsDeviceMemory(transformed_out_backprop.template flat<T>().data(), in Compute()
1329 AsDeviceMemory(transformed_filter.template flat<T>().data(), in Compute()
1332 AsDeviceMemory(pre_transformed_in_backprop.template flat<T>().data(), in Compute()
1565 auto a_ptr = AsDeviceMemory(out_backprop.template flat<T>().data(), in Compute()
[all …]
Dlrn_op.cc207 auto input_data = StreamExecutorUtil::AsDeviceMemory<T>(in); in launch()
208 auto output_data = StreamExecutorUtil::AsDeviceMemory<T>(*output); in launch()
424 auto input_grads_data = StreamExecutorUtil::AsDeviceMemory<T>(in_grads); in launch()
425 auto input_image_data = StreamExecutorUtil::AsDeviceMemory<T>(in_image); in launch()
426 auto output_image_data = StreamExecutorUtil::AsDeviceMemory<T>(out_image); in launch()
427 auto output_grads_data = StreamExecutorUtil::AsDeviceMemory<T>(*output); in launch()
Dbatch_matmul_op_impl.h250 se::DeviceMemory<T> AsDeviceMemory(const T* cuda_memory) {
326 a_device_memory.push_back(AsDeviceMemory(a_base_ptr + i * m * k));
327 b_device_memory.push_back(AsDeviceMemory(b_base_ptr + i * k * n));
328 c_device_memory.push_back(AsDeviceMemory(c_base_ptr + i * m * n));
443 a_device_memory.push_back(AsDeviceMemory(a_base_ptr + i * m * k));
444 b_device_memory.push_back(AsDeviceMemory(b_base_ptr + i * k * n));
445 c_device_memory.push_back(AsDeviceMemory(c_base_ptr + i * m * n));
Dconv_ops.cc619 auto a_ptr = AsDeviceMemory(input.template flat<T>().data(), in operator ()()
621 auto b_ptr = AsDeviceMemory(filter.template flat<T>().data(), in operator ()()
623 auto c_ptr = AsDeviceMemory(output->template flat<T>().data(), in operator ()()
647 auto a_ptr = AsDeviceMemory(input.template flat<T>().data(), in operator ()()
649 auto b_ptr = AsDeviceMemory(filter.template flat<T>().data(), in operator ()()
651 auto c_ptr = AsDeviceMemory(output->template flat<T>().data(), in operator ()()
812 auto input_ptr = AsDeviceMemory(input.template flat<T>().data(), in operator ()()
815 AsDeviceMemory(transformed_filter.template flat<T>().data(), in operator ()()
818 AsDeviceMemory(transformed_output.template flat<T>().data(), in operator ()()
Dconv_grad_filter_ops.cc620 auto a_ptr = AsDeviceMemory(out_backprop.template flat<T>().data(), in operator ()()
626 auto b_ptr = AsDeviceMemory(input.template flat<T>().data(), in operator ()()
632 auto c_ptr = AsDeviceMemory(filter_backprop->template flat<T>().data(), in operator ()()
659 auto a_ptr = AsDeviceMemory(input.template flat<T>().data(), in operator ()()
661 auto b_ptr = AsDeviceMemory(out_backprop.template flat<T>().data(), in operator ()()
663 auto c_ptr = AsDeviceMemory(filter_backprop->template flat<T>().data(), in operator ()()
807 AsDeviceMemory(transformed_out_backprop.template flat<T>().data(), in operator ()()
810 AsDeviceMemory(pre_transformed_filter_backprop.template flat<T>().data(), in operator ()()
812 auto input_ptr = AsDeviceMemory(transformed_input.template flat<T>().data(), in operator ()()
Dconv_grad_input_ops.cc755 auto a_ptr = AsDeviceMemory(out_backprop.template flat<T>().data(), in operator ()()
757 auto b_ptr = AsDeviceMemory(filter.template flat<T>().data(), in operator ()()
759 auto c_ptr = AsDeviceMemory(in_backprop->template flat<T>().data(), in operator ()()
788 auto a_ptr = AsDeviceMemory(out_backprop.template flat<T>().data(), in operator ()()
790 auto b_ptr = AsDeviceMemory(filter.template flat<T>().data(), in operator ()()
792 auto c_ptr = AsDeviceMemory(in_backprop->template flat<T>().data(), in operator ()()
917 AsDeviceMemory(transformed_out_backprop.template flat<T>().data(), in operator ()()
920 AsDeviceMemory(transformed_filter.template flat<T>().data(), in operator ()()
923 AsDeviceMemory(pre_transformed_in_backprop.template flat<T>().data(), in operator ()()
Dmatmul_op.cc277 auto a_ptr = AsDeviceMemory(a.template flat<T>().data(), in launch()
279 auto b_ptr = AsDeviceMemory(b.template flat<T>().data(), in launch()
281 auto c_ptr = AsDeviceMemory(out->template flat<T>().data(), in launch()
Dgpu_utils.h38 inline se::DeviceMemory<T> AsDeviceMemory(const T* cuda_memory, uint64 size) { in AsDeviceMemory() function
Dconv_ops_gpu.h70 AsDeviceMemory(temporary_memory.flat<uint8>().data(), in AllocateBytes()
Dconv_ops_fused_impl.h736 return AsDeviceMemory(t.template flat<T>().data(),
747 AsDeviceMemory(static_cast<T*>(nullptr), 0);
/external/tensorflow/tensorflow/contrib/image/kernels/
Dadjust_hsv_in_yiq_op_gpu.cu.cc65 AsDeviceMemory(input->flat<float>().data(), input->flat<float>().size()); in operator ()()
66 auto b_ptr = AsDeviceMemory(tranformation_matrix.flat<float>().data(), in operator ()()
68 auto c_ptr = AsDeviceMemory(output->flat<float>().data(), in operator ()()
/external/tensorflow/tensorflow/core/util/
Dstream_executor_util.h33 static se::DeviceMemory<T> AsDeviceMemory(const Tensor& t) { in AsDeviceMemory() function
/external/tensorflow/tensorflow/core/nccl/
Dnccl_manager_test.cc128 auto in_gpu_mem = AsDeviceMemory(in_gpu.flat<Scalar>().data()); in MakeReductionTestCase()
169 auto in_gpu_mem = AsDeviceMemory(in_gpu.flat<Scalar>().data()); in MakeGatherTestCase()
198 auto out_gpu_mem = AsDeviceMemory(out_gpu.flat<Scalar>().data()); in VerifyResults()
232 static se::DeviceMemory<Scalar> AsDeviceMemory(const Scalar* cuda_memory) { in AsDeviceMemory() function in tensorflow::NcclManagerTest
/external/tensorflow/tensorflow/contrib/fused_conv/kernels/
Dfused_conv2d_bias_activation_op.cc639 AsDeviceMemory(reinterpret_cast<const typename RawType<T>::type*>( in launch()
643 AsDeviceMemory(reinterpret_cast<const typename RawType<T>::type*>( in launch()
647 AsDeviceMemory(reinterpret_cast<const typename RawType<T>::type*>( in launch()
651 AsDeviceMemory(reinterpret_cast<const typename RawType<T>::type*>( in launch()
654 auto bias_ptr = AsDeviceMemory(bias.template flat<BiasType>().data(), in launch()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_util.h73 static se::DeviceMemory<T> AsDeviceMemory(const Tensor& t) { in AsDeviceMemory() function