Turi Create
4.0
|
#include <core/system/lambda/pylambda_function.hpp>
Public Member Functions | |
pylambda_function (const std::string &lambda_str, bool delete_pickle_files_on_destruction=true) | |
Represents a python lambda function object which is evaluated in parallel.
The pylambda_function can also contain a gl_pickle directory. The gl_pickle must contain one function. The function will then be unpickled from the directory and used.
The evaluation is implemented using pylambda master and workers for parallelism:
Definition at line 59 of file pylambda_function.hpp.
turi::lambda::pylambda_function::pylambda_function | ( | const std::string & | lambda_str, |
bool | delete_pickle_files_on_destruction = true |
||
) |
Constructs a lambda function from a either a series of pickled bytes or a gl_pickled directory which contains a function.
delete_pickle_files_on_destruction | Only meaningful if lambda_str contains a gl_pickled directory. If true (default), it the directory will be deleted when this pylambda_function instance is destroyed. |