Skip to content

Commit

Permalink
Fix 1 compiling error in VS2015.
Browse files Browse the repository at this point in the history
this is caused by visiting template parent class member wichout the explicitly instanitation (<TYPE>). I don't know whethere it is only needed by VS.
  • Loading branch information
fseasy committed Jun 5, 2017
1 parent d5c853e commit 7e9e18b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/srl/common/model/RNNModelBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "dynet/dict.h"
#include <dynet/expr.h>
#include <dynet/model.h>
#include "vector"
#include <vector>

using namespace dynet;
using namespace dynet::expr;
Expand Down Expand Up @@ -48,7 +48,7 @@ class RNNModelBuilder : public ModelBuilder<vector<Expression>, vector<Expressio

void setOutputDim(unsigned int _outputDim) { outputDim = _outputDim; }

using ModelBuilder::init;
using ModelBuilder<vector<Expression>, vector<Expression>>::init;
virtual void init(Model &model, bool initBeginEnd = true) {
dynetRnnBuilder = DynetRnnBuilder(layers, inputDim, outputDim, model);
if (initBeginEnd) {
Expand Down

0 comments on commit 7e9e18b

Please sign in to comment.