Beispiel #1
0
        public static void Initialize()
        {
            _chainer = PyImport.ImportModule("chainer");

            if (_chainer == IntPtr.Zero)
            {
                throw new Exception("chainer failed to import");
            }

            Variable   = _chainer["Variable"];
            Links      = _chainer["links"];
            Functions  = _chainer["functions"];
            Optimizers = _chainer["optimizers"];
        }
Beispiel #2
0
 public PyDynamicModule(string name) : base(PyImport.Import(name))
 {
 }