• ricardoV94's avatar
    Revert regression in Reshape C-impl speed · 5dcf6048
    ricardoV94 提交于
    This was caused by 223ee154, which used the generic `PyArray_IntpConverter` to convert the shape numpy vector into a simple C-array for the Reshape operation. There seems to be no need for this change as the strides were correctly used
    
    Profiling suggests the previous changes caused a 7.5x slowdown. The benchmark detects only a 2.3x slowdown due to the PyTensor call overhead.
    5dcf6048
test_shape.py 29.3 KB