This commit is contained in:
Hieu Hoang 2021-04-30 12:02:15 -07:00
parent 1e62a16bc1
commit b8153bba8e
2 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ std::vector<float> Logits::getFactorMasks(size_t factorGroup, const std::vector<
return res;
}
std::vector<float> Logits::getFactorMasks2(int batchSize, int currBeamSize, size_t factorGroup, const std::vector<WordIndex>& indices)
std::vector<float> Logits::getFactorMasks2(int , int currBeamSize, size_t factorGroup, const std::vector<WordIndex>& indices)
const { // [lemmaIndex] -> 1.0 for words that do have this factor; else 0
size_t n
= indices.empty()

View File

@ -62,7 +62,7 @@ Logits Output::applyAsLogits(Expr input) /*override final*/ {
return dot(x, W, transA, transB);
};
auto affineShortlist = [this, affineOrDot](Expr x, Expr W, Expr b, bool , bool ) {
auto affineShortlist = [affineOrDot](Expr x, Expr W, Expr b, bool , bool ) {
//std::cerr << "x=" << x->shape() << std::endl;
//std::cerr << "W=" << W->shape() << std::endl;
//std::cerr << "transA=" << transA << " transB=" << transB << std::endl;