Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit ba376b9

Browse files
authored
Fix shape (#488)
* check in * fix shape * fix shape
1 parent bea3ec3 commit ba376b9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/python/tests_extended/test_tensor_based.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,17 @@ def test_datetimesplitter_complex(self):
9191

9292
sess = set_up_onnx_model(xf, training_data)
9393

94-
inferencing_data = np.array([217081624, 1751241600, 217081625]).astype(np.int64).reshape(4,1)
94+
inferencing_data = np.array([217081624, 1751241600, 217081625]).astype(np.int64).reshape(3,1)
9595
result = sess.run(None, {"tokens1": inferencing_data})
9696

97-
expected_years = np.array([1976, 2025, 1976]).reshape(4, 1)
98-
expected_month = np.array([11, 6, 11]).reshape(4, 1)
99-
expected_day = np.array([17, 30, 17]).reshape(4, 1)
100-
expected_hour = np.array([12, 0, 12]).reshape(4, 1)
101-
expected_minute = np.array([27, 0, 27]).reshape(4, 1)
102-
expected_second = np.array([4, 0, 5]).reshape(4, 1)
103-
expected_ampm = np.array([1, 0, 1]).reshape(4, 1)
104-
expected_holidayname = np.array(["", "", ""]).reshape(4, 1)
97+
expected_years = np.array([1976, 2025, 1976]).reshape(3, 1)
98+
expected_month = np.array([11, 6, 11]).reshape(3, 1)
99+
expected_day = np.array([17, 30, 17]).reshape(3, 1)
100+
expected_hour = np.array([12, 0, 12]).reshape(3, 1)
101+
expected_minute = np.array([27, 0, 27]).reshape(3, 1)
102+
expected_second = np.array([4, 0, 5]).reshape(3, 1)
103+
expected_ampm = np.array([1, 0, 1]).reshape(3, 1)
104+
expected_holidayname = np.array(["", "", ""]).reshape(3, 1)
105105

106106
np.testing.assert_array_equal(result[1],expected_years)
107107
np.testing.assert_array_equal(result[2],expected_month)

0 commit comments

Comments
 (0)