dataset input and shared variable batching