make network print out compact
to_array interface for blob
refactor CUDA kernel defs