Hi Anil
It looks like you have a problem with indentation. The trainin_step etc. methods you defined are outside the LightningModule. If you just tab them in you should not see the error anymore. If you have trouble converting your own project, you can always find some ready to run examples from our docs 5 to try out first.