arrayfire / arrayfire-binary-python-wrapper

A python thin wrapper for ArrayFire library
https://arrayfire.com
BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

Added unit tests for the pad function and fixed pad function return v… #22

Closed sakchal closed 6 months ago

sakchal commented 6 months ago

This PR introduces a suite of unit tests for pad.py located within the create_array directory. The primary function in this file is to add padding to a given array.

No Padding: Ensures that when given 0 padding, the array remains its original shape Negative Padding: Ensures that when given negative padding, the pad function properly handles this case Padding Shape: Ensures that when padding is added, the correct padding shape is seen in the padded array

Pad Return Value Fix: Pad originally returned "Not Implemented"