curegit

Results 3 comments of curegit

@kmaehashi Thanks for the quick response. OK, I'd like to write tests.

Test cases added. They check various paths depending on input target grad indexes in `backward()`. For example I wrote, it raises error because `0` is not in target indexes so...

@kmaehashi I have implemented the requested changes. Please review this.