MCPcopy Create free account
hub / github.com/numpy/numpy / test_same_input_shapes

Function test_same_input_shapes

numpy/lib/tests/test_stride_tricks.py:83–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81
82
83def test_same_input_shapes():
84 # Check that the final shape is just the input shape.
85
86 data = [
87 (),
88 (1,),
89 (3,),
90 (0, 1),
91 (0, 3),
92 (1, 0),
93 (3, 0),
94 (1, 3),
95 (3, 1),
96 (3, 3),
97 ]
98 for shape in data:
99 input_shapes = [shape]
100 # Single input.
101 assert_shapes_correct(input_shapes, shape)
102 # Double input.
103 input_shapes2 = [shape, shape]
104 assert_shapes_correct(input_shapes2, shape)
105 # Triple input.
106 input_shapes3 = [shape, shape, shape]
107 assert_shapes_correct(input_shapes3, shape)
108
109
110def test_two_compatible_by_ones_input_shapes():

Callers

nothing calls this directly

Calls 1

assert_shapes_correctFunction · 0.85

Tested by

no test coverage detected