Skip to content

Commit

Permalink
Deprecate Python Native API (#1156)
Browse files Browse the repository at this point in the history
* deprecate python native api

Signed-off-by: yes <[email protected]>

* syntax issue fix

Signed-off-by: yes <[email protected]>

---------

Signed-off-by: yes <[email protected]>
  • Loading branch information
tanwarsh authored Nov 19, 2024
1 parent 1929860 commit 1b586cb
Show file tree
Hide file tree
Showing 16 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/about/features_index/pynative.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:orphan:

=================
Python Native API
Python Native API (Deprecated)
=================

TODO
Expand Down
2 changes: 1 addition & 1 deletion docs/developer_guide/advanced_topics/overriding_agg_fn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Override Aggregation Function
With the aggregator-based workflow, you can use custom aggregation functions for each task via Python\*\ API or command line interface.


Python API
Python API (Deprecated)
==========

1. Create an implementation of :class:`openfl.interface.aggregation_functions.core.AggregationFunction`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ With the director-based workflow, you can use custom plan settings before starti
When using Python API or Director Envoy based interactive API (Deprecated), **override_config** can be used to update plan settings.


Python API
Python API (Deprecated)
==========

Modify the plan settings:
Expand Down
2 changes: 1 addition & 1 deletion docs/developer_guide/running_the_federation.notebook.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.. _running_notebook:

**********************************
Aggregator-Based Workflow Tutorial
Aggregator-Based Workflow Tutorial (Deprecated)
**********************************

You will start a Jupyter\* \ lab server and receive a URL you can use to access the tutorials. Jupyter notebooks are provided for PyTorch\* \ and TensorFlow\* \ that simulate a federation on a local machine.
Expand Down
2 changes: 1 addition & 1 deletion docs/developer_guide/utilities/splitters_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Dataset Splitters
You may apply data splitters differently depending on the |productName| workflow that you follow.


OPTION 1: Use **Native Python API** (Aggregator-Based Workflow) Functions to Split the Data
OPTION 1: Use **Native Python API** (Aggregator-Based Workflow) Functions to Split the Data (Deprecated)
===========================================================================================

Predefined |productName| data splitters functions are as follows:
Expand Down
2 changes: 1 addition & 1 deletion docs/get_started/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ See :ref:`running_the_task_runner`
:ref:`running_the_task_runner`

-------------------------
Python Native API
Python Native API (Deprecated)
-------------------------
Intended for quick simulation purposes

Expand Down
2 changes: 1 addition & 1 deletion docs/get_started/examples/python_native_pytorch_mnist.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.. _python_native_pytorch_mnist:

==========================================
Python Native API: Federated PyTorch MNIST
Python Native API: Federated PyTorch MNIST (Deprecated)
==========================================

In this tutorial, we will set up a federation and train a basic PyTorch model on the MNIST dataset using the Python Native API.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/openfl_native.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.. # SPDX-License-Identifier: Apache-2.0
*************************************************
Native Module
Native Module (Deprecated)
*************************************************

Native modules reference:
Expand Down
4 changes: 2 additions & 2 deletions openfl-workspace/torch_llm_horovod/src/InHorovodrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import horovod.torch as hvd

import openfl.native as fx
from openfl.interface.cli import setup_logging

SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.dirname(SCRIPT_DIR))
Expand Down Expand Up @@ -50,7 +50,7 @@ def get_args():

def main():
logger = getLogger(__name__)
fx.setup_logging(level="INFO", log_file=None)
setup_logging()
try:
logger.info("starting horovod")
hvd.init()
Expand Down

0 comments on commit 1b586cb

Please sign in to comment.