예제 #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();
        }
        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();
 }