conv_ops_gpu.h
imports tensorflow/core/platform/errors.himports tensorflow/core/platform/status.h
SHA-2561d4f949ade7522900e7c689ae64bb4e5886de9b572fa69b3c646cfa737d18e7b
MaleculeMd(In₆)
Evidence
1/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is …
11:42… IND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14================================================================ …
17#define TENSORFLOW_CORE_KERNELS_CONV_OPS_GPU_H_
18
19#include <cstdint>
20#include <memory>
21#include <utility>
22#include <vector>
23
24#if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
25
26#include <tuple>
27
28#include "absl/status/status.h"
29#include "absl/strings/str_cat.h"
30#include "xla/stream_executor/data_type.h"
31#include "xla/stream_executor/device_memory.h"
32#include "xla/stream_executor/dnn.h"
33#include "xla/stream_executor/scratch_allocator.h"
34#include "xla/stream_executor/stream.h"
35#include "xla/tsl/platform/status.h"
36#include "xla/tsl/platform/statusor.h"
37#include "tensorflow/core/framework/allocator.h"
38#include "tensorflow/core/framework/op_kernel.h"
39#include "tensorflow/core/framework/tensor.h"
40#include "tensorflow/core/framework/tensor_shape.h"
41#include "tensorflow/core/kernels/gpu_utils.h"
42#include "tensorflow/core/platform/errors.h"
43#include "tensorflow/core/platform/status.h"
44#include "tensorflow/core/platform/statusor.h"
45#include "tensorflow/core/platform/types.h"
46#include "tensorflow/core/util/autotune_maps/conv_parameters.h"
47
48namespace tensorflow {
49
50bool ComputeInNhwcEnabled(DataType data_type, se::Stream* stream,
51 …