Closed Nov11 closed 1 year ago
Please use horovod instead mirror strategy , in SOK experiment ,we won't support mirror strategy , only can use horovod run multi card, the horovod example , you can see in this example python scrpit ,run shell scrpit
Oh, thank you.
It seems that when model is create inside strategy.scope(), the sok.Variable is not of type 'MirroredVariable', thus tensorflow complains the 'self.param' is not created under strategy scope.
I looked around in experiment/example folder and found no related example that using sok.expertiment with tensorflow distribute strategy.
The question is how to use sok.experiment.Variable with tensorflow optimizer?
Code and error message are shown below.