训练时 ,每个特征会按batch中最长的特征长度进行补0 ,


输出结果:


经过特征提取后每条语音的特征长度是不同的,这个batch里8条语音特征最长的是805
即max_feature_length = 805
放进inputs时会进行 补0 ,如下图所示:

最终一个batch的inputs的维度为:

即 [batch_size, seq_size, feature_size]
每个batch的seq_size是不同的


训练时 ,每个特征会按batch中最长的特征长度进行补0 ,
输出结果:
经过特征提取后每条语音的特征长度是不同的,这个batch里8条语音特征最长的是805
即max_feature_length = 805
放进inputs时会进行 补0 ,如下图所示:
最终一个batch的inputs的维度为:
即 [batch_size, seq_size, feature_size]
每个batch的seq_size是不同的
本文标题:batch中特征的补0
本文链接:https://www.haomeiwen.com/subject/zxqukltx.html
网友评论