### What problem does this PR solve? For the create_inputs method based on np operation to replace for loop ### Type of change - [x] Performance Improvement