apply

Contents

apply#

class pinnx.utils.apply(func, args=None, kwds=None)[source]#

Launch a new process to call the function.

This can be used to clear Tensorflow GPU memory after trainer execution: https://stackoverflow.com/questions/39758094/clearing-tensorflow-gpu-memory-after-model-execution