Fix: TFF 'No Context' Federated-training error

parent fe66f266
...@@ -21,6 +21,7 @@ def federated_computation_new(train_dataset,test_dataset): ...@@ -21,6 +21,7 @@ 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.
#however, if in the future, processed data is provided without hte preprocessing function it will be none -> therefore assign it here #however, if in the future, processed data is provided without hte preprocessing function it will be none -> therefore assign it here
......
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