MCPcopy Index your code
hub / github.com/numpy/numpy / test_same_input_shapes

Function test_same_input_shapes

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

Source from the content-addressed store, hash-verified

89
90
91def test_same_input_shapes():
92 # Check that the final shape is just the input shape.
93
94 data = [
95 (),
96 (1,),
97 (3,),
98 (0, 1),
99 (0, 3),
100 (1, 0),
101 (3, 0),
102 (1, 3),
103 (3, 1),
104 (3, 3),
105 ]
106 for shape in data:
107 input_shapes = [shape]
108 # Single input.
109 assert_shapes_correct(input_shapes, shape)
110 # Double input.
111 input_shapes2 = [shape, shape]
112 assert_shapes_correct(input_shapes2, shape)
113 # Triple input.
114 input_shapes3 = [shape, shape, shape]
115 assert_shapes_correct(input_shapes3, shape)
116
117
118def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…