function stringToDType(dtype) {
	  switch (dtype) {
	    case 'float32':
	      return 'float32';

	    default:
	      throw new ValueError("Invalid dtype: " + dtype);
	  }
	}
Convert a string into the corresponding DType.
@param dtype
@returns An instance of DType.