File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed
Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,7 @@ def test_init_tensor_lengths(self):
5757 assert isinstance (sequence .lengths , dict )
5858 assert "default" in sequence .lengths
5959 assert torch .equal (sequence .lengths ["default" ], lengths )
60- < << << << HEAD
6160 assert sequence .device () == lengths .device
62- == == == =
63- >> >> >> > f7011343 (Increase test - coverage )
6461
6562 def test_init_tensor_masks (self ):
6663 # Test when masks is a tensor
@@ -95,15 +92,12 @@ def test_init_invalid_masks(self):
9592 with pytest .raises (ValueError , match = "Masks must be a tensor or a dictionary of tensors" ):
9693 Sequence (lengths , masks )
9794
98- < << << << HEAD
9995 def test_device (self ):
10096 empty_seq = Sequence ({})
10197
10298 with pytest .raises (ValueError , match = "Sequence is empty" ):
10399 empty_seq .device ()
104100
105- == == == =
106- >> >> >> > f7011343 (Increase test - coverage )
107101
108102class TestBatch :
109103 @pytest .fixture
@@ -142,10 +136,7 @@ def test_batch_init_tensor_target(self):
142136 assert isinstance (batch .targets , dict )
143137 assert "default" in batch .targets
144138 assert torch .equal (batch .targets ["default" ], targets )
145- < << << << HEAD
146139 assert batch .device () == features .device
147- == == == =
148- >> >> >> > f7011343 (Increase test - coverage )
149140
150141 def test_batch_init_invalid_targets (self ):
151142 # Test when targets is not a tensor nor a dictionary of tensors
Original file line number Diff line number Diff line change @@ -85,8 +85,6 @@ def test_repeat(self):
8585
8686 with pytest .raises (ValueError , match = "n must be greater than 0" ):
8787 block .repeat (0 )
88- < << << << HEAD
89- < << << << HEAD
9088
9189 def test_repeat_with_link (self ):
9290 block = Block (PlusOne ())
@@ -114,8 +112,6 @@ def forward(self, inputs):
114112
115113 inputs = torch .randn (1 , 3 )
116114 assert torch .equal (block (inputs ), inputs + 1 )
117- == == == =
118- >> >> >> > 77 ca69b4 (Adding ParallelBlock )
119115
120116
121117class TestParallelBlock :
@@ -224,8 +220,3 @@ def test_getitem(self):
224220
225221 with pytest .raises (IndexError ):
226222 pb ["invalid_key" ]
227- < << << << HEAD
228- == == == =
229- >> >> >> > f7011343 (Increase test - coverage )
230- == == == =
231- >> >> >> > 77 ca69b4 (Adding ParallelBlock )
You can’t perform that action at this time.
0 commit comments