pooling_generic.c 1.21 KB
Newer Older
Hang Zhang's avatar
v1.0.1  
Hang Zhang committed
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
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 * Created by: Hang Zhang
 * ECE Department, Rutgers University
 * Email: zhang.hang@rutgers.edu
 * Copyright (c) 2017
 *
 * This source code is licensed under the MIT-style license found in the
 * LICENSE file in the root directory of this source tree 
 *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/pooling_generic.c"
#else

int Encoding_(DilatedAvgPool2d_Forward)(
    THCTensor *X_, THCTensor *Y_, 
    int kH, int kW, int dH, int dW,
    int padH, int padW,
    int dilationH, int dilationW)
/*
 */
{
    Encoding_(DilatedAvgPool_Forward)(state, 
    X_, Y_, kH, kW, dH, dW,
    padH, padW, dilationH, dilationW);
    /* C function return number of the outputs */
    return 0;
}

int Encoding_(DilatedAvgPool2d_Backward)(
    THCTensor *gradX_, THCTensor *gradY_, 
    int kH, int kW, int dH, int dW,
    int padH, int padW,
    int dilationH, int dilationW)
/*
 */
{
    Encoding_(DilatedAvgPool_Backward)(state, 
    gradX_, gradY_, kH, kW, dH, dW,
    padH, padW, dilationH, dilationW);
    /* C function return number of the outputs */
    return 0;
}

#endif