Commit d68b19b6 by xiaotong

code cleaning

parent f1ba270a
......@@ -215,11 +215,6 @@ void T2TModel::MakeMT(XTensor &inputEnc, XTensor &inputDec, XTensor &output, XTe
decoding = MakeDecoder(inputDec, encoding, maskDec, maskEncDec, isTraining);
outputLayer->Make(decoding, output);
encoding.SetName(ENCODING_NAME);
decoding.SetName(DECODING_NAME);
output.SetName(OUTPUT_NAME);
inputEnc.SetName(ENCODING_INPUT_NAME);
}
/*
......
......@@ -31,12 +31,6 @@
namespace transformer
{
#define ENCODING_NAME "encoding"
#define DECODING_NAME "decoding"
#define ENCODING_INPUT_NAME "encoding_input"
#define DECODING_INPUT_NAME "decoding_input"
#define OUTPUT_NAME "output"
/* a transformer model that keeps parameters of the encoder,
the decoder and the output layer (softmax). Also, it creates
the network used in transformer. */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论