Browse Source

Migrate to update StateWatcher interface

Alexey Edelev 4 years ago
parent
commit
edb8a11200
1 changed files with 17 additions and 0 deletions
  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")
+}