예제 #1
0
 public OnlyPolicy(TensorFlow.TcpCommClient client = null, string networkName = "policy192")
 {
     this.networkName = networkName;
     if (client == null)
     {
         while (!this.client.Connect("localhost", 9999))
         {
             Console.WriteLine("ConnectionFailed.");
             System.Threading.Thread.Sleep(1000);
         }
     }
     else
     {
         this.client = client;
     }
 }
예제 #2
0
파일: MinMax.cs 프로젝트: gvhung/janggi
        public MinMax(TensorFlow.TcpCommClient client = null, string name = "value192")
        {
            valueNetName = name;

            if (client != null)
            {
                this.client = client;
            }
            else
            {
                while (!this.client.Connect("localhost", 9999))
                {
                    Console.WriteLine("ConnectionFailed.");
                    System.Threading.Thread.Sleep(1000);
                }
            }
        }