コード例 #1
0
 public tensorflow()
 {
     Status   = new Status();
     Context  = new Context(new ContextOptions(), Status);
     OpDefLib = new OpDefLibrary();
     ConstructThreadingObjects();
     InitGradientEnvironment();
     Runner = new EagerRunner();
 }
コード例 #2
0
        public tensorflow()
        {
            Logger = new LoggerConfiguration()
                     .MinimumLevel.Error()
                     .WriteTo.Console()
                     .CreateLogger();

            OpDefLib = new OpDefLibrary();
            InitGradientEnvironment();
        }
コード例 #3
0
        private static OpDefLibrary _InitOpDefLibrary()
        {
            // c_api.TF_GraphGetOpDef(g.Handle, op_type_name, buffer.Handle, status.Handle);
            var bytes      = File.ReadAllBytes("Tensorflow/op_list_proto_array.bin");
            var op_list    = OpList.Parser.ParseFrom(bytes);
            var op_def_lib = new OpDefLibrary();

            op_def_lib.add_op_list(op_list);

            return(op_def_lib);
        }
コード例 #4
0
        public tensorflow()
        {
            Logger = NullLogger.Instance;

            Status   = new Status();
            Context  = new Context();
            OpDefLib = new OpDefLibrary();
            ConstructThreadingObjects();
            InitGradientEnvironment();
            Runner = new EagerRunner();
        }
コード例 #5
0
        public tensorflow()
        {
            Logger = new LoggerConfiguration()
                     .MinimumLevel.Error()
                     .WriteTo.Console()
                     .CreateLogger();

            Status   = new Status();
            Context  = new Context(new ContextOptions(), Status);
            OpDefLib = new OpDefLibrary();
            ConstructThreadingObjects();
            InitGradientEnvironment();
            Runner = new EagerRunner();
        }
コード例 #6
0
 static gen_string_ops()
 {
     _op_def_lib = new OpDefLibrary();
 }