I have written code that I believed would handle the end case where the number of training examples in the mini batch is not a muliple of mini batch sizes. However I continue to get the error, “slice indices must be integers or None or have an index method error.”
I guess m / mini_batch_size is a float and not an integer.
However, I advise you to recheck your implementation because it doesn’t look right
For example, are you sure all of your training examples belong to precisely one mini batch? Are there training examples that are missing from a mini batch? Are there training examples that are included in more than one mini batch?