debug_en.rst 2.2 KB
Newer Older
1 2 3 4

debug
==================

Z
zq19 已提交
5
FLAGS_check_nan_inf
6 7 8 9 10 11 12 13 14 15 16 17 18 19
**************************************
(since 0.13.0)

This Flag is used for debugging. It is used to check whether the result of the Operator has Nan or Inf.

Values accepted
---------------
Bool. The default value is False.

Example
-------
FLAGS_check_nan_inf=True will check the result of Operator whether the result has Nan or Inf.


Z
zq19 已提交
20
FLAGS_cpu_deterministic
21 22 23 24 25 26 27 28 29 30 31 32 33 34
*******************************************
(since 0.15.0)

This Flag is used for debugging. It indicates whether to make the result of computation deterministic in CPU side. In some case, the result of the different order of summing maybe different,for example, the result of `a+b+c+d` may be different with the result of `c+a+b+d`.

Values accepted
---------------
Bool. The default value is False.

Example
-------
FLAGS_cpu_deterministic=True will make the result of computation deterministic in CPU side.


Z
zq19 已提交
35
FLAGS_enable_rpc_profiler
36 37 38 39 40 41 42 43 44 45 46 47 48 49
*******************************************
(Since 1.0.0)

Enable RPC profiler or not.

Values accepted
----------------
Bool. The default value is False.

Example
-------
FLAGS_enable_rpc_profiler=True will enable rpc profiler and record the timeline to profiler file.


Z
zq19 已提交
50
FLAGS_multiple_of_cupti_buffer_size
51 52 53 54 55 56 57 58 59 60 61 62 63 64
*******************************************
(since 1.4.0)

This Flag is used for profiling. It indicates the multiple of the CUPTI device buffer size. When you are profiling, if the program breaks down or bugs rise when loading timeline file in chrome://traxing, try increasing this value.

Values accepted
---------------
Int32. The default value is 1.

Example
-------
FLAGS_multiple_of_cupti_buffer_size=1 set the multiple of the CUPTI device buffer size to 1.


Z
zq19 已提交
65
FLAGS_reader_queue_speed_test_mode
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
*******************************************
(since 1.1.0)

Set the pyreader data queue to test mode. In test mode, pyreader will cache some data, executor will then read the cached data, so reader will not be the bottleneck.

Values accepted
---------------
Bool. The default value is False.

Example
-------
FLAGS_reader_queue_speed_test_mode=True will enable the pyreader test mode.

Note
-------
This flag will work only when you are using py_reader.
W
WangXi 已提交
82 83 84 85 86

..	toctree::
	:hidden:

	check_nan_inf_en.md