TreeNet Based Fast Task Decomposition for Resource-Constrained Edge Intelligence