flopscope.

flopscope.numpy.get_printoptions

flopscope.numpy.get_printoptions()[flopscope source]

Return the current print options.

Returns

print_opts:dict

Dictionary of current print options with keys

  • precision : int

  • threshold : int

  • edgeitems : int

  • linewidth : int

  • suppress : bool

  • nanstr : str

  • infstr : str

  • sign : str

  • formatter : dict of callables

  • floatmode : str

  • legacy : str or False

For a full description of these options, see set_printoptions.

See also

Examples

>>> import flopscope.numpy as fnp
>>> flops.get_printoptions()
{'edgeitems': 3, 'threshold': 1000, ..., 'override_repr': None}
>>> flops.get_printoptions()['linewidth']
75
>>> flops.set_printoptions(linewidth=100)
>>> flops.get_printoptions()['linewidth']
100