forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Conv.h
68 lines (60 loc) · 1.92 KB
/
Conv.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#pragma once
#include <ATen/Tensor.h>
#include <ATen/Config.h>
#if AT_MKLDNN_ENABLED()
namespace at {
namespace native {
C10_API Tensor mkldnn_convolution_pointwise(
const Tensor& input_t,
const Tensor& weight_t,
const std::optional<Tensor>& bias_opt,
IntArrayRef padding,
IntArrayRef stride,
IntArrayRef dilation,
int64_t groups,
c10::string_view attr,
torch::List<std::optional<at::Scalar>> scalars,
std::optional<c10::string_view> algorithm);
C10_API Tensor mkldnn_convolution_pointwise_binary(
const Tensor& input_t,
const Tensor& other_t,
const Tensor& weight_t,
const std::optional<Tensor>& bias_opt,
IntArrayRef padding,
IntArrayRef stride,
IntArrayRef dilation,
int64_t groups,
c10::string_view binary_attr,
std::optional<at::Scalar> alpha,
std::optional<c10::string_view> unary_attr,
torch::List<std::optional<at::Scalar>> unary_scalars,
std::optional<c10::string_view> unary_algorithm);
C10_API Tensor& mkldnn_convolution_pointwise_binary_(
Tensor& other_t,
const Tensor& input_t,
const Tensor& weight_t,
const std::optional<Tensor>& bias_opt,
IntArrayRef padding,
IntArrayRef stride,
IntArrayRef dilation,
int64_t groups,
c10::string_view binary_attr,
std::optional<at::Scalar> alpha,
std::optional<c10::string_view> unary_attr,
torch::List<std::optional<at::Scalar>> unary_scalars,
std::optional<c10::string_view> unary_algorithm);
Tensor mkldnn_convolution_transpose_pointwise(
const Tensor& input_t,
const Tensor& weight_t,
const std::optional<Tensor>& bias_opt,
IntArrayRef padding,
IntArrayRef output_padding,
IntArrayRef stride,
IntArrayRef dilation,
int64_t groups,
c10::string_view attr,
torch::List<std::optional<at::Scalar>> scalars,
std::optional<c10::string_view> algorithm);
} // namespace native
} // namespace at
#endif // AT_MKLDNN_ENABLED()