API - Operation System¶
Operation system, more functions can be found in TensorFlow API.
exit_tf ([sess]) |
Close tensorboard and nvidia-process if available |
clear_all ([printable]) |
Clears all the placeholder variables of keep prob, including keeping probabilities of all dropout, denoising, dropconnect etc. |
set_gpu_fraction ([sess, gpu_fraction]) |
Set the GPU memory fraction for the application. |
disable_print () |
Disable console output, suppress_stdout is recommended. |
enable_print () |
Enable console output, suppress_stdout is recommended. |
suppress_stdout () |
Temporarily disable console output. |
get_site_packages_directory () |
Print and return the site-packages directory. |
empty_trash () |
Empty trash folder. |
TensorFlow functions¶
GPU functions¶
Console display¶
-
tensorlayer.ops.
disable_print
()[source]¶ Disable console output,
suppress_stdout
is recommended.Examples
>>> print("You can see me") >>> tl.ops.disable_print() >>> print(" You can't see me") >>> tl.ops.enable_print() >>> print("You can see me")
-
tensorlayer.ops.
enable_print
()[source]¶ Enable console output,
suppress_stdout
is recommended.Examples
- see tl.ops.disable_print()