huntzhan/pytorch-fast-elmo

Wait For Pytorch 1.1

Opened this issue · 1 comments

Wait For Pytorch 1.1

I am using torch=1.7.1, I found a change of API in torch. I need to change the following code to finish the compile.

--- a/extension/elmo_character_encoder.cc
+++ b/extension/elmo_character_encoder.cc
@@ -75,7 +75,7 @@ ElmoCharacterEncoderImpl::ElmoCharacterEncoderImpl(
             out_channels,
             kernel_size)
         // Explicitly set bias.
-        .with_bias(true);
+        .bias(true);
 
     // Build.
     auto conv = torch::nn::Conv1d(conv_options);