浏览代码

Migrate to update StateWatcher interface

Alexey Edelev 4 年之前
父节点
当前提交
edb8a11200
共有 1 个文件被更改,包括 17 次插入0 次删除
  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")
+}