Hi @pongyuenlam
Error in your codes for GRADED FUNCTION: translate
- From code line
Convert the original string into a tensor to First token should be SOS token with shape (1,1) refer the below image to make the corrections
- Next for code line: If done then break out of the loop YOUR CODE IS INCORRECT
use the below image to make the correction
Remember all these pointer were grabbed from the same assignment, the image I shared are from the previous two cells before the grade cell translate, so try going through the non_grade cell also in details which gives many hints for these grade cell, for future self-debugging!!!
Let me know if you have any new error.
Keep Learning!!!
Regards
DP