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.
enable_print() Enable console output.
temporary_disable_print() Temporarily disable console output.

TensorFlow functions

tensorlayer.ops.exit_tf(sess=None)[source]

Close tensorboard and nvidia-process if available

Parameters:
sess : a session instance of TensorFlow

TensorFlow session

tensorlayer.ops.clear_all(printable=True)[source]

Clears all the placeholder variables of keep prob, including keeping probabilities of all dropout, denoising, dropconnect etc.

Parameters:
printable : boolean

If True, print all deleted variables.

GPU functions

tensorlayer.ops.set_gpu_fraction(sess=None, gpu_fraction=0.3)[source]

Set the GPU memory fraction for the application.

Parameters:
sess : a session instance of TensorFlow

TensorFlow session

gpu_fraction : a float

Fraction of GPU memory, (0 ~ 1]

References

TensorFlow using GPU

Console display

tensorlayer.ops.disable_print()[source]

Disable console output.

tensorlayer.ops.enable_print()[source]

Enable console output.

class tensorlayer.ops.temporary_disable_print[source]

Temporarily disable console output.