mirror of
https://github.com/marian-nmt/marian.git
synced 2024-11-03 20:13:47 +03:00
warnings
This commit is contained in:
parent
1e62a16bc1
commit
b8153bba8e
@ -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()
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user