forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLinear.h
39 lines (30 loc) · 908 Bytes
/
Linear.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
#pragma once
#include <ATen/Tensor.h>
#include <ATen/Config.h>
#if AT_MKLDNN_ENABLED()
namespace at {
namespace native {
C10_API Tensor mkldnn_linear_pointwise(
const Tensor& input_t,
const Tensor& weight_t,
const std::optional<Tensor>& bias_opt,
c10::string_view attr,
c10::List<std::optional<at::Scalar>> scalars,
std::optional<c10::string_view> algorithm);
C10_API Tensor mkldnn_linear_pointwise_binary(
const Tensor& input_t,
const Tensor& other_t,
const Tensor& weight_t,
const std::optional<Tensor>& bias_opt,
c10::string_view attr);
#if AT_MKL_ENABLED()
C10_API Tensor mkl_linear(
const Tensor& self,
const Tensor& mkl_weight_t,
const Tensor& origin_weight_t,
const std::optional<Tensor>& bias_opt,
const int64_t prepack_batch_size);
#endif// AT_MKL_ENABLED
} // namespace native
} // namespace at
#endif // AT_MKLDNN_ENABLED()