Closed
Description
Hi,
Currently, there is an issue in _mlp_transform
https://github.com/asyml/texar/blob/master/texar/modules/connectors/connectors.py#L73 , thanks @huzecong who found this issue.
For input with shape [batch_size, max_time, dim]
, current _mlp_transform
reshapes it to [batch_size, max_time * dim]
and processes linear layer transform. The transform matrix has shape [max_time * dim, mlp_output_dim]
, which is equivalent to max_time
number of smaller matrixes with size [dim, mlp_output_dim]
. However, regarding same-time-vector should transform with same matrix, current _mlp_transform
can not make transform in that way. Should _mlp_transform
be modified?