use curl to download mnist dataset

Change-Id: I417e2399b5faa4a002525374327f8efd4d1ed3bc