source/sample/transformer/Encoder.cpp
XTensor AttEncoder::Make(XTensor& input, XTensor* mask)
{
    XTensor nothing;

    return Make(input, mask, nothing);
}
/*
make the encoding network (wrapper)
>> input - the input tensor of the encoder
>> mask - the mask that indicate each position is valid
<< return - the output tensor of the encoder
*/
make the encoding network (wrapper)
>> input - the input tensor of the encoder
>> mask - the mask that indicate each position is valid
<< return - the output tensor of the encoder
make the encoding network ( wrapper ) >> input - the input tensor of the encoder >> mask - the mask that indicate each position is valid << return - the output tensor of the encoder
XTensor AttEncoder::Make(XTensor& input, XTensor* mask)
{
    XTensor nothing;
    return Make(input, mask, nothing);
}
XTensor AttEncoder :: Make ( XTensor & input , XTensor * mask ) { XTensor nothing ; return Make ( input , mask , nothing ) ; }
make the encoding network (wrapper)
>> input - the input tensor of the encoder
>> mask - the mask that indicate each position is valid
<< return - the output tensor of the encoder
make the encoding network ( wrapper ) >> input - the input tensor of the encoder >> mask - the mask that indicate each position is valid << return - the output tensor of the encoder