Hi @Ahsan Iqbal,
Thank you for using the Microsoft Q&A forum.
To debug the issue, I would suggest to first try executing the train.py script independently to ensure that it runs without any issues.
Once the script is running successfully, you can use the same directory as the path to the TensorBoard logs destination path for saving. With this, you can make sure that the logs are getting generated and getting saved in the ML environment.
When creating a job using the Azure Machine Learning CLI, the job is executed on a compute target that is specified in the compute field of the job.yml file. To check if the script is being accessed without any issues by the job compute, you can navigate to the jobs and check the job logs.
By following these steps, you can isolate the issue and determine if the issue is with the job.yml file or the train.py script.
I hope this helps! Thank you.