secretflow icon indicating copy to clipboard operation
secretflow copied to clipboard

Register new FL strategy won't work

Open zhouaihui opened this issue 2 years ago • 0 comments

Issue Type

Documentation Bug

Source

binary

Secretflow Version

0.8.2.b3

OS Platform and Distribution

Linux

Python version

3.8

Bazel version

No response

GCC/Compiler version

No response

What happend and What you expected to happen.

A new FL strategy (refer to https://www.secretflow.org.cn/docs/secretflow/en/developer/design/strategy.html) won't take effect until it is exposed in secretflow.ml.nn.fl.backend.tensorflow.strategy.__init__.py.

This is because secretflow.ml.nn.fl.backend.tensorflow.strategy is only imported and register_strategy is not triggered until it is in __init__.

zhouaihui avatar May 17 '23 02:05 zhouaihui