Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/nn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Besse <fbesse@google.com>2016-02-18 15:21:32 +0300
committerFrederic Besse <fbesse@google.com>2016-02-18 15:21:32 +0300
commitbda46dc136d14537e294d2358ce28e766ed4d9d5 (patch)
tree90ff6caf419a0c4e2862787baf94ee14a0eb9d8b /THNN.lua
parentb1f5683935348668da789a2e5f5665ec550f8f83 (diff)
parent762e3a9ff59339c6b38a74876177c45a60c939e1 (diff)
Merge pull request #1 from andreaskoepf/koepf_vol_full_conv_THNN
THNN conversion of volumetric_full_fix
Diffstat (limited to 'THNN.lua')
-rw-r--r--THNN.lua35
1 files changed, 35 insertions, 0 deletions
diff --git a/THNN.lua b/THNN.lua
index 2f47c27..789444a 100644
--- a/THNN.lua
+++ b/THNN.lua
@@ -634,6 +634,41 @@ TH_API void THNN_(VolumetricConvolutionMM_accGradParameters)(
THTensor *finput,
real scale);
+TH_API void THNN_(VolumetricFullConvolution_updateOutput)(
+ THNNState *state, // library state
+ THTensor *input, // 4D or 5D (batch) tensor
+ THTensor *output, // [OUT] volumetric convolution output
+ THTensor *weight, // weight tensor (nInputPlane x nOutputPlane x kT x kH x kW)
+ THTensor *bias, // gradBias tensor (nOutputPlane)
+ THTensor *finput, // [OUT] internal columns buffer
+ THTensor *fgradInput, // [OUT] internal ones buffer
+ int dT, int dW, int dH, // stride of the convolution
+ int pT, int pW, int pH, // padding
+ int aT, int aW, int aH); // extra output adjustment
+TH_API void THNN_(VolumetricFullConvolution_updateGradInput)(
+ THNNState *state, // library state
+ THTensor *input, // 4D or 5D (batch) tensor
+ THTensor *gradOutput, // gradient w.r.t. output
+ THTensor *gradInput, // [OUT] gradient w.r.t. input
+ THTensor *weight, // weight tensor (nInputPlane x nOutputPlane x kT x kH x kW)
+ THTensor *finput, // internal columns buffer
+ THTensor *fgradInput, // internal ones buffer
+ int dT, int dW, int dH, // stride
+ int pT, int pW, int pH, // padding
+ int aT, int aW, int aH); // extra output adjustment
+TH_API void THNN_(VolumetricFullConvolution_accGradParameters)(
+ THNNState *state, // library state
+ THTensor *input, // 4D or 5D (batch) tensor
+ THTensor *gradOutput, // gradient w.r.t. output
+ THTensor *gradWeight, // gradWeight tensor (nInputPlane x nOutputPlane x kT x kH x kW)
+ THTensor *gradBias, // gradBias tensor (nOutputPlane)
+ THTensor *finput, // internal columns buffer
+ THTensor *fgradInput, // internal ones buffer
+ int dT, int dW, int dH, // stride
+ int pT, int pW, int pH, // padding
+ int aT, int aW, int aH, // extra output adjustment
+ real scale); // scaling factor
+
TH_API void THNN_(VolumetricMaxPooling_updateOutput)(
THNNState *state,
THTensor *input,