

def test_cwh_to_chw(self):
    x = np.array([[[1, 2, 3], [4, 5, 6]], [[7, 8, 9], [10, 11, 12]], [[13, 14, 15], [16, 17, 18]], [[19, 20, 21], [22, 23, 24]]])
    assert_equals(x.shape[0], 4)
    assert_equals(x.shape[1], 2)
    assert_equals(self.shape[2], 3)
    y = mu.cwh_to_chw(x)
    assert_equals(y.shape[0], 4)
    assert_equals(y.shape[1], 3)
    assert_equals(y.shape[2], 2)
    assert_equals(x[3][1][2], y[3][2][1])
    for i in range(4):
        for j in range(2):
            for k in range(3):
                assert_equals(x[i][j][k], y[i][k][j])

dataset/ETHPy150Open kashefy/nideep/nideep/blobs/test_mat_utils.py TestTranspose.test_cwh_to_chw/VarMisuse@117/126 `x`->`self`