Here you need to write functions for init() and forward().
backward is not requied. But how do I indicate that the target does not need to compute gradient?
2)using Functional (this post)
Here you need to write functions for both forward() and backward()