Home
last modified time | relevance | path

Searched refs:AlgorithmDesc (Results 1 – 25 of 27) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/xla/stream_executor/
Dlazy_op_runner.h66 explicit LazyOpRunner(AlgorithmDesc desc) : LazyOpRunner(desc, nullptr) {} in LazyOpRunner()
103 const AlgorithmDesc& ToAlgorithmDesc() const { return desc_; } in ToAlgorithmDesc()
106 LazyOpRunner(AlgorithmDesc desc, in LazyOpRunner()
110 AlgorithmDesc desc_;
130 RunnerFromAlgorithmDesc(const AlgorithmDesc& desc, Config config, in RunnerFromAlgorithmDesc()
156 RunnerFromAlgorithmDesc(const AlgorithmDesc& desc, Config config, in RunnerFromAlgorithmDesc()
Ddnn.h782 class AlgorithmDesc {
785 AlgorithmDesc() : AlgorithmDesc(0, false, std::nullopt) {} in AlgorithmDesc() function
786 explicit AlgorithmDesc(AlgorithmProto proto) : proto_(std::move(proto)) {} in AlgorithmDesc() function
787 AlgorithmDesc(Index algo_id, bool use_tensor_ops) in AlgorithmDesc() function
788 : AlgorithmDesc(algo_id, use_tensor_ops, std::nullopt) {} in AlgorithmDesc()
789 AlgorithmDesc(Index algo_id, bool use_tensor_ops, in AlgorithmDesc() function
799 AlgorithmDesc(int64_t engine_id,
817 bool operator==(const AlgorithmDesc& other) const;
841 AlgorithmDesc algorithm() const { return *algorithm_; } in algorithm()
842 void set_algorithm(AlgorithmDesc val) { algorithm_ = val; } in set_algorithm()
[all …]
Ddnn.cc54 AlgorithmDesc::AlgorithmDesc( in AlgorithmDesc() function in stream_executor::dnn::AlgorithmDesc
68 uint64_t AlgorithmDesc::hash() const { in hash()
72 bool AlgorithmDesc::operator==(const AlgorithmDesc& other) const { in operator ==()
81 std::string AlgorithmDesc::ToString() const { in ToString()
101 std::vector<std::pair<int64_t, int64_t>> AlgorithmDesc::TuningKnobs() const { in TuningKnobs()
112 std::vector<AlgorithmDesc>* out_algorithms) { in GetConvolveAlgorithms()
133 Stream* stream, const dnn::AlgorithmDesc& algorithm_desc, in ConvolveRunnerFromDesc()
159 Stream* stream, const dnn::AlgorithmDesc& algorithm_desc, in FusedConvolveRunnerFromDesc()
187 bool DnnSupport::GetRnnAlgorithms(std::vector<AlgorithmDesc>* out_algorithms) { in GetRnnAlgorithms()
193 std::vector<AlgorithmDesc>* out_algorithms) { in GetConvolveBackwardDataAlgorithms()
[all …]
Dstream_executor_pimpl.h369 std::vector<dnn::AlgorithmDesc>* out_algorithms);
411 bool GetRnnAlgorithms(std::vector<dnn::AlgorithmDesc>* out_algorithms);
Dstream.h71 class AlgorithmDesc; variable
348 dnn::AlgorithmDesc algorithm_desc; in ConvolveWithAlgorithm()
394 const dnn::AlgorithmDesc &algorithm_desc, dnn::ConvolutionKind kind, in ConvolveRunnerFromDesc()
411 const dnn::AlgorithmDesc &algorithm_desc, dnn::ConvolutionKind kind, in FusedConvolveRunnerFromDesc()
Dstream_executor_pimpl.cc272 std::vector<dnn::AlgorithmDesc>* out_algorithms) { in GetConvolveAlgorithms()
357 std::vector<dnn::AlgorithmDesc>* out_algorithms) { in GetRnnAlgorithms()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dhlo_algorithm_denylist_test.cc64 EXPECT_EQ(stream_executor::dnn::AlgorithmDesc(0, false), list[0]); in TEST_F()
65 EXPECT_EQ(stream_executor::dnn::AlgorithmDesc(0, true), list[1]); in TEST_F()
66 EXPECT_EQ(stream_executor::dnn::AlgorithmDesc(1, false), list[2]); in TEST_F()
67 EXPECT_EQ(stream_executor::dnn::AlgorithmDesc(1, true), list[3]); in TEST_F()
Dgpu_conv_runner.h58 se::dnn::AlgorithmDesc algorithm;
115 se::dnn::AlgorithmDesc ToAlgorithmDesc() const { in ToAlgorithmDesc()
139 se::dnn::AlgorithmDesc operator()(const RunnerPtr& runner) { in operator()
143 se::dnn::AlgorithmDesc operator()(const std::monostate&) { in operator()
Dgpu_conv_algorithm_picker.h68 stream_executor::dnn::AlgorithmDesc algorithm;
80 absl::Span<const stream_executor::dnn::AlgorithmDesc> disabled_algos);
Dhlo_algorithm_denylist.h27 absl::Span<const stream_executor::dnn::AlgorithmDesc> GetDisabledConvAlgorithms(
Dgpu_conv_algorithm_picker.cc57 using se::dnn::AlgorithmDesc;
436 absl::Span<const AlgorithmDesc> disabled_algos) { in AutotuneOneConvRunner()
456 AlgorithmDesc alg_key(alg.algo_id(), alg.tensor_ops_enabled(), std::nullopt); in AutotuneOneConvRunner()
697 absl::Span<const AlgorithmDesc> disabled_algos = GetDisabledConvAlgorithms( in PickBestAlgorithmNoCacheCuda()
Dgpu_conv_runner.cc243 se::dnn::AlgorithmDesc algorithm = params.config->algorithm; in RunGpuConvImpl()
300 config.algorithm = se::dnn::AlgorithmDesc(backend_config.algorithm()); in GetGpuConvConfig()
/external/tensorflow/tensorflow/core/util/autotune_maps/
Dautotune_serialize_test.cc33 using stream_executor::dnn::AlgorithmDesc;
107 AlgorithmDesc algorithm(/*algo_id=*/1, /*use_tensor_ops=*/true); in TEST()
108 AlgorithmDesc algorithm_no_scratch(/*algo_id=*/1, /*use_tensor_ops=*/true); in TEST()
157 AlgorithmDesc algorithm(/*algo_id=*/1, /*use_tensor_ops=*/true); in TEST()
158 AlgorithmDesc algorithm_no_scratch(/*algo_id=*/1, /*use_tensor_ops=*/true); in TEST()
Dautotune_serialize.cc40 using stream_executor::dnn::AlgorithmDesc;
140 const AlgorithmDesc primary(algorithm_config_proto.algorithm()); in PopulateConvMap()
141 const absl::optional<AlgorithmDesc> fallback = in PopulateConvMap()
143 ? absl::optional<AlgorithmDesc>( in PopulateConvMap()
144 AlgorithmDesc(algorithm_config_proto.algorithm_no_scratch())) in PopulateConvMap()
/external/tensorflow/tensorflow/compiler/xla/stream_executor/cuda/
Dcuda_dnn.h218 std::vector<dnn::AlgorithmDesc>* out_algorithms) override;
234 Stream* stream, const dnn::AlgorithmDesc& algorithm_desc,
257 Stream* stream, const dnn::AlgorithmDesc& algorithm_desc,
269 std::vector<dnn::AlgorithmDesc>* out_algorithms) override;
273 std::vector<dnn::AlgorithmDesc>* out_algorithms) override;
277 std::vector<dnn::AlgorithmDesc>* out_algorithms) override;
344 dnn::AlgorithmDesc algorithm_desc, DeviceMemory<uint8> scratch_memory,
632 ScratchAllocator* scratch_allocator, dnn::AlgorithmDesc* algorithm_desc,
Dcuda_dnn.cc251 cudnnConvolutionFwdAlgo_t ToConvForwardAlgo(dnn::AlgorithmDesc algorithm) { in ToConvForwardAlgo()
271 dnn::AlgorithmDesc algorithm) { in ToConvBackwardDataAlgo()
290 dnn::AlgorithmDesc algorithm) { in ToConvBackwardFilterAlgo()
316 cudnnRNNAlgo_t ToCudnnRNNAlgo(std::optional<dnn::AlgorithmDesc> algorithm) { in ToCudnnRNNAlgo()
2891 const dnn::AlgorithmDesc& algorithm_desc, in AllocateCudnnConvolutionForwardWorkspace()
2940 const dnn::AlgorithmDesc& algorithm_desc, in AllocateCudnnConvolutionBackwardDataWorkspace()
2990 const dnn::AlgorithmDesc& algorithm_desc, in AllocateCudnnConvolutionBackwardFilterWorkspace()
3035 std::optional<dnn::AlgorithmDesc> desc) { in UseTensorOps()
3052 port::StatusOr<dnn::AlgorithmDesc> GetCudnnConvolutionForwardAlgorithm( in GetCudnnConvolutionForwardAlgorithm()
3060 std::optional<dnn::AlgorithmDesc> algo_desc = algorithm_config.algorithm(); in GetCudnnConvolutionForwardAlgorithm()
[all …]
/external/tensorflow/tensorflow/stream_executor/rocm/
Drocm_dnn.h238 std::vector<dnn::AlgorithmDesc>* out_algorithms) override;
254 Stream* stream, const dnn::AlgorithmDesc& algorithm_desc,
273 std::vector<dnn::AlgorithmDesc>* out_algorithms) override;
277 std::vector<dnn::AlgorithmDesc>* out_algorithms) override;
281 std::vector<dnn::AlgorithmDesc>* out_algorithms) override;
348 dnn::AlgorithmDesc algorithm_desc, DeviceMemory<uint8> scratch_memory,
770 ScratchAllocator* scratch_allocator, dnn::AlgorithmDesc* algorithm_desc,
Drocm_dnn.cc67 using dnn::AlgorithmDesc;
2911 ScratchAllocator* scratch_allocator, dnn::AlgorithmDesc* algorithm_desc, in DoPrepareForConvolution()
2913 std::optional<dnn::AlgorithmDesc> input_algo_desc = in DoPrepareForConvolution()
2972 return dnn::AlgorithmDesc{algo_id_, false, workspace_size_}.ToString(); in ToString()
2977 port::StatusOr<AlgorithmDesc> ToAlgorithmDesc() const override { in ToAlgorithmDesc()
3080 dnn::AlgorithmDesc algotype(algo_id_, false); in operator ()()
3119 dnn::AlgorithmDesc algorithm_desc, DeviceMemory<uint8> scratch_memory, in DoConvolve()
3134 std::vector<dnn::AlgorithmDesc>* out_algorithms) { in GetConvolveAlgorithms()
3137 dnn::AlgorithmDesc(miopenConvolutionFwdAlgoGEMM, false), in GetConvolveAlgorithms()
3138 dnn::AlgorithmDesc(miopenConvolutionFwdAlgoDirect, false), in GetConvolveAlgorithms()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dgpu_utils.cc283 se::dnn::AlgorithmDesc(results[idx].algorithm()), in BestCudnnConvAlgorithm()
288 se::dnn::AlgorithmDesc(results[idx_no_scratch].algorithm())); in BestCudnnConvAlgorithm()
Dgpu_utils.h301 AutotuneEntry(se::dnn::AlgorithmDesc primary, in AutotuneEntry()
302 absl::optional<se::dnn::AlgorithmDesc> no_scratch_fallback) in AutotuneEntry()
Dcudnn_rnn_ops.cc128 using se::dnn::AlgorithmDesc;
533 const std::pair<CudnnRnnModelShapes, absl::optional<AlgorithmDesc>>& in operator ()()
552 const std::pair<CudnnRnnModelShapes, absl::optional<AlgorithmDesc>>& lhs, in operator ()()
553 const std::pair<CudnnRnnModelShapes, absl::optional<AlgorithmDesc>>& rhs) in operator ()()
1118 std::pair<CudnnRnnModelShapes, absl::optional<AlgorithmDesc>>,
1540 AlgorithmDesc algo_desc(debug_cudnn_rnn_algo_, debug_use_tensor_ops_, in ComputeAndReturnAlgorithm()
1688 std::vector<AlgorithmDesc> algorithms; in MaybeAutotune()
2096 const AlgorithmDesc algo_desc(host_reserved_int8(0), host_reserved_int8(1), in GetAlgorithm()
Dconv_grad_input_ops.cc80 using se::dnn::AlgorithmDesc; in operator ()()
Dconv_ops_3d.cc503 using se::dnn::AlgorithmDesc; in launch()
Dconv_grad_ops_3d.cc1518 using se::dnn::AlgorithmDesc; in Compute()
1917 using se::dnn::AlgorithmDesc; in Compute()
Dconv_grad_filter_ops.cc676 using se::dnn::AlgorithmDesc; in operator ()()

12