def max(dtype):  
dtype = tf.as_dtype(dtype)<EOL>if hasattr(dtype, '<STR_LIT>'):<EOL><INDENT>return dtype.max<EOL><DEDENT>use_finfo = is_floating(dtype) or is_complex(dtype)<EOL>return np.finfo(dtype).max if use_finfo else np.iinfo(dtype).max<EOL>
Returns the maximum representable value in this data type.