Skip to content

Commit 42cd1bf

Browse files
committed
test_Data_get_common_data_tbf_and_bf2
1 parent 3e7ea12 commit 42cd1bf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_TFUtil.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,16 @@ def test_Data_get_common_data_tbf_and_bf():
827827
assert common.batch_ndim == 3
828828

829829

830+
def test_Data_get_common_data_tbf_and_bf2():
831+
sources = [
832+
Data(name='target', shape=(None, 13), batch_dim_axis=1, time_dim_axis=0),
833+
Data(name='encoder', shape=(11,), time_dim_axis=None, batch_dim_axis=0)]
834+
pprint(sources)
835+
common = Data.get_common_data(sources=sources)
836+
print("common:", common)
837+
assert common.batch_ndim == 4
838+
839+
830840
def test_Data_get_common_data_btf_and_bf_get_kwargs_copy_compatible_to():
831841
s0 = Data(name='location_feedback', shape=(None, 6), batch_dim_axis=0, time_dim_axis=1)
832842
s1 = Data(name='s_transformed', shape=(6,), time_dim_axis=None, batch_dim_axis=0)

0 commit comments

Comments
 (0)