Neural Network Partitioning For Resource-Limited Environments