changed data structures of inputs and outputs to [N_BLOCK, K, H, W, BLOCK]