提交 ecf4a8ab authored 作者: Frédéric Bastien's avatar Frédéric Bastien

Merge pull request #3260 from carriepl/cudnn_fixes2

Fix time_once and guess_once CuDNN options
...@@ -141,6 +141,7 @@ APPLY_SPECIFIC(conv_fwd)(CudaNdarray *input, CudaNdarray *kerns, ...@@ -141,6 +141,7 @@ APPLY_SPECIFIC(conv_fwd)(CudaNdarray *input, CudaNdarray *kerns,
// Store the shapes of the inputs and kernels as well as the chosen // Store the shapes of the inputs and kernels as well as the chosen
// algorithm for future use. // algorithm for future use.
APPLY_SPECIFIC(previous_algo) = chosen_algo; APPLY_SPECIFIC(previous_algo) = chosen_algo;
APPLY_SPECIFIC(previous_algo_set) = true;
for (int i = 0; i < nb_dim; i++) for (int i = 0; i < nb_dim; i++)
{ {
APPLY_SPECIFIC(previous_input_shape)[i] = APPLY_SPECIFIC(previous_input_shape)[i] =
......
...@@ -138,6 +138,7 @@ APPLY_SPECIFIC(conv_gi)(CudaNdarray *kerns, CudaNdarray *output, ...@@ -138,6 +138,7 @@ APPLY_SPECIFIC(conv_gi)(CudaNdarray *kerns, CudaNdarray *output,
// Store the shapes of the kernels and output as well as the chosen // Store the shapes of the kernels and output as well as the chosen
// algorithm for future use. // algorithm for future use.
APPLY_SPECIFIC(previous_bwd_d_algo) = chosen_algo; APPLY_SPECIFIC(previous_bwd_d_algo) = chosen_algo;
APPLY_SPECIFIC(previous_algo_set) = true;
for (int i = 0; i < nb_dim; i++) for (int i = 0; i < nb_dim; i++)
{ {
APPLY_SPECIFIC(previous_kerns_shape)[i] = APPLY_SPECIFIC(previous_kerns_shape)[i] =
......
...@@ -138,6 +138,7 @@ APPLY_SPECIFIC(conv_gw)(CudaNdarray *input, CudaNdarray *output, ...@@ -138,6 +138,7 @@ APPLY_SPECIFIC(conv_gw)(CudaNdarray *input, CudaNdarray *output,
// Store the shapes of the inputs and kernels as well as the chosen // Store the shapes of the inputs and kernels as well as the chosen
// algorithm for future use. // algorithm for future use.
APPLY_SPECIFIC(previous_bwd_f_algo) = chosen_algo; APPLY_SPECIFIC(previous_bwd_f_algo) = chosen_algo;
APPLY_SPECIFIC(previous_algo_set) = true;
for (int i = 0; i < nb_dim; i++) for (int i = 0; i < nb_dim; i++)
{ {
APPLY_SPECIFIC(previous_input_shape)[i] = APPLY_SPECIFIC(previous_input_shape)[i] =
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论