Fix: TFF 'No Context' Federated-training error

parent fe66f266
...@@ -20,6 +20,7 @@ def model_fn(): ...@@ -20,6 +20,7 @@ def model_fn():
def federated_computation_new(train_dataset,test_dataset): def federated_computation_new(train_dataset,test_dataset):
import tensorflow as tf import tensorflow as tf
import tensorflow_federated as tff import tensorflow_federated as tff
if(globals.INPUT_SPEC == None): if(globals.INPUT_SPEC == None):
#should never reach this place because INPUT_SPEC is instantiated inside get_preprocessed_train_test_data. #should never reach this place because INPUT_SPEC is instantiated inside get_preprocessed_train_test_data.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment