forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lai, Weijian <laiweijian4@huawei.com> Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
1.4 KiB
1.4 KiB
Training Job Failed Because the Maximum Recursion Depth Is Exceeded
Symptom
An error occurs for a ModelArts training job.
RuntimeError: maximum recursion depth exceeded in __instancecheck__
Possible Causes
The training failed because the recursion depth exceeded the default recursion depth of Python.
Solution
If the maximum recursion depth is exceeded, increase the recursion depth in the boot file as follows:
import sys sys.setrecursionlimit(1000000)
Parent topic: Service Code Issues