TypeError: slice indices must be integers or None or have an __index__ method

That’s a tricky one, but solved. I wrongly give sgd_minibatch_size=10.0, it should be sgd_minibatch_size=10.

Maybe future we can have type assertion for those variables, Thanks!