Cooperative Data and Computation Partitioning for Decentralized Architectures.