Class photogragh : showing MLE
can u please tell me how can I reduce the memory requirement??
Try calculating the total space that you are using in worst case . It is nearly 1000x1000x20x20 which exceeds the memory limit easily. I would say try to reduce the states.