From 0bc4688d1c824519ae51561c25c9f8719b965947 Mon Sep 17 00:00:00 2001 From: chengzeyi Date: Mon, 29 Jan 2024 12:04:57 +0800 Subject: [PATCH] closes #106; fix bad optional access --- src/sfast/csrc/operators/cudnn/cudnn_convolution_impl.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sfast/csrc/operators/cudnn/cudnn_convolution_impl.cc b/src/sfast/csrc/operators/cudnn/cudnn_convolution_impl.cc index 32e5ba5..8880937 100644 --- a/src/sfast/csrc/operators/cudnn/cudnn_convolution_impl.cc +++ b/src/sfast/csrc/operators/cudnn/cudnn_convolution_impl.cc @@ -1300,7 +1300,6 @@ class CUDNNConvolutionBiasAddActivationWithFallbackFunction input, weight, z, alpha, bias, stride, padding, dilation, transposed, output_padding, groups, activation_mode); - auto z_ = z.has_value() ? bias.value() : Tensor(); auto bias_ = bias.has_value() ? bias.value() : Tensor(); ctx->save_for_backward({input, weight, bias_, output});