import_host_pipeline_ops
Function
Obtains the custom TensorFlow operator in Rec SDK.
Prototype
1 | def import_host_pipeline_ops(so_pkg_name: str = LIBASC_OPS_SO) -> ModuleType |
Parameters
Parameter |
Type |
Mandatory/Optional |
Description |
|---|---|---|---|
so_pkg_name |
string |
Optional |
Name of the Rec SDK TensorFlow .so package. Value range: [1, 100]. |
Return Value
- Success: A Python encapsulation module that contains the TensorFlow operator defined by Rec SDK in the .so file is returned.
- Failure: RuntimeError: when unable to load the library or get the python wrappers.
Example
1 2 | from mx_rec.util.ops import import_host_pipeline_ops host_pipeline_ops = import_host_pipeline_ops() |
set_threshold Introduction
Operator |
set_threshold |
|---|---|
Function |
Changes the feature access threshold. |
Parameter Description |
|
Constraints |
If the first input parameter value of set_threshold is 0, the corresponding embedding table does not accumulate features. (The access threshold remains unchanged, but the feature count is not accumulated and the historical value is used.) |
Parent topic: Other APIs