Procházet zdrojové kódy

Migrate to update StateWatcher interface

Alexey Edelev před 4 roky
rodič
revize
edb8a11200
1 změnil soubory, kde provedl 17 přidání a 0 odebrání
  1. 17 0
      remotecontrol.go

+ 17 - 0
remotecontrol.go

@@ -244,3 +244,20 @@ func (rw *RemoteControl) RunServices() {
 		fmt.Printf("Failed to serve: %v\n", err)
 	}
 }
+
+func (rw *RemoteControl) GetSubscriptionFeatures() (feature neuralnetwork.SubscriptionFeatures) {
+	feature.Clear()
+	feature.Set(neuralnetwork.ActivationsSubscription)
+	feature.Set(neuralnetwork.BiasesSubscription)
+	feature.Set(neuralnetwork.WeightsSubscription)
+	feature.Set(neuralnetwork.StateSubscription)
+	return
+}
+
+func (rw *RemoteControl) UpdateTraining(t int, epocs int, samplesProcced int, totalSamplesCount int) {
+	log.Fatal("UpdateTraining training is not implemented but called")
+}
+
+func (rw *RemoteControl) UpdateValidation(validatorCount int, failCount int) {
+	log.Fatal("UpdateValidation training is not implemented but called")
+}