예제 #1
0
 public void save(ComputeSystem cs, string fileName)
 {
     csogmaneoPINVOKE.Hierarchy_save(swigCPtr, ComputeSystem.getCPtr(cs), fileName);
     if (csogmaneoPINVOKE.SWIGPendingException.Pending)
     {
         throw csogmaneoPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #2
0
 public void activate(StdVecf input, ComputeSystem system, float radius, float thresh, int samples)
 {
     eogmaneoPINVOKE.CornerEncoder_activate(swigCPtr, StdVecf.getCPtr(input), ComputeSystem.getCPtr(system), radius, thresh, samples);
     if (eogmaneoPINVOKE.SWIGPendingException.Pending)
     {
         throw eogmaneoPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #3
0
파일: Layer.cs 프로젝트: trcclub/OgmaDrive
 public void forward(Std2DVeci inputs, ComputeSystem system, float alpha)
 {
     eogmaneoPINVOKE.Layer_forward(swigCPtr, Std2DVeci.getCPtr(inputs), ComputeSystem.getCPtr(system), alpha);
     if (eogmaneoPINVOKE.SWIGPendingException.Pending)
     {
         throw eogmaneoPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #4
0
 public void learn(float alpha, float gamma, ComputeSystem system)
 {
     eogmaneoPINVOKE.RandomEncoder_learn(swigCPtr, alpha, gamma, ComputeSystem.getCPtr(system));
     if (eogmaneoPINVOKE.SWIGPendingException.Pending)
     {
         throw eogmaneoPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #5
0
파일: Layer.cs 프로젝트: trcclub/OgmaDrive
 public void backward(Std2DVeci feedBack, ComputeSystem system, float reward, float beta, float delta, float gamma, float traceCutoff, float advScalar, float epsilon)
 {
     eogmaneoPINVOKE.Layer_backward(swigCPtr, Std2DVeci.getCPtr(feedBack), ComputeSystem.getCPtr(system), reward, beta, delta, gamma, traceCutoff, advScalar, epsilon);
     if (eogmaneoPINVOKE.SWIGPendingException.Pending)
     {
         throw eogmaneoPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #6
0
        public bool loadFromFile(string name, ComputeSystem cs)
        {
            bool ret = csogmaneoPINVOKE.ComputeProgram_loadFromFile(swigCPtr, name, ComputeSystem.getCPtr(cs));

            if (csogmaneoPINVOKE.SWIGPendingException.Pending)
            {
                throw csogmaneoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #7
0
        public bool loadPredictorKernel(ComputeSystem cs)
        {
            bool ret = csogmaneoPINVOKE.ComputeProgram_loadPredictorKernel(swigCPtr, ComputeSystem.getCPtr(cs));

            if (csogmaneoPINVOKE.SWIGPendingException.Pending)
            {
                throw csogmaneoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #8
0
        public SWIGTYPE_p_flatbuffers__OffsetT_ogmaneo__schemas__ValueField2D_t save(SWIGTYPE_p_flatbuffers__FlatBufferBuilder builder, ComputeSystem cs)
        {
            SWIGTYPE_p_flatbuffers__OffsetT_ogmaneo__schemas__ValueField2D_t ret = new SWIGTYPE_p_flatbuffers__OffsetT_ogmaneo__schemas__ValueField2D_t(csogmaneoPINVOKE.ValueField2D_save(swigCPtr, SWIGTYPE_p_flatbuffers__FlatBufferBuilder.getCPtr(builder), ComputeSystem.getCPtr(cs)), true);

            if (csogmaneoPINVOKE.SWIGPendingException.Pending)
            {
                throw csogmaneoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #9
0
 public void load(SWIGTYPE_p_ogmaneo__schemas__ValueField2D fbValueField2D, ComputeSystem cs)
 {
     csogmaneoPINVOKE.ValueField2D_load(swigCPtr, SWIGTYPE_p_ogmaneo__schemas__ValueField2D.getCPtr(fbValueField2D), ComputeSystem.getCPtr(cs));
     if (csogmaneoPINVOKE.SWIGPendingException.Pending)
     {
         throw csogmaneoPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #10
0
        public bool loadSparseFeaturesKernel(ComputeSystem cs, SparseFeaturesType type)
        {
            bool ret = csogmaneoPINVOKE.ComputeProgram_loadSparseFeaturesKernel(swigCPtr, ComputeSystem.getCPtr(cs), (int)type);

            if (csogmaneoPINVOKE.SWIGPendingException.Pending)
            {
                throw csogmaneoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #11
0
        public StdVecf reconstruct(StdVeci hiddenStates, ComputeSystem system)
        {
            StdVecf ret = new StdVecf(eogmaneoPINVOKE.RandomEncoder_reconstruct(swigCPtr, StdVeci.getCPtr(hiddenStates), ComputeSystem.getCPtr(system)), false);

            if (eogmaneoPINVOKE.SWIGPendingException.Pending)
            {
                throw eogmaneoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #12
0
        public StdVeci activate(StdVecf input, ComputeSystem system)
        {
            StdVeci ret = new StdVeci(eogmaneoPINVOKE.RandomEncoder_activate__SWIG_1(swigCPtr, StdVecf.getCPtr(input), ComputeSystem.getCPtr(system)), false);

            if (eogmaneoPINVOKE.SWIGPendingException.Pending)
            {
                throw eogmaneoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #13
0
 public void load(SWIGTYPE_p_ogmaneo__schemas__ParameterModifier fbParameterModifier, ComputeSystem cs)
 {
     csogmaneoPINVOKE.ParameterModifier_load(swigCPtr, SWIGTYPE_p_ogmaneo__schemas__ParameterModifier.getCPtr(fbParameterModifier), ComputeSystem.getCPtr(cs));
     if (csogmaneoPINVOKE.SWIGPendingException.Pending)
     {
         throw csogmaneoPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #14
0
        public static StdVecf sobel(StdVecf src, int width, float clip, ComputeSystem system, int chunkSize)
        {
            StdVecf ret = new StdVecf(eogmaneoPINVOKE.sobel(StdVecf.getCPtr(src), width, clip, ComputeSystem.getCPtr(system), chunkSize), true);

            if (eogmaneoPINVOKE.SWIGPendingException.Pending)
            {
                throw eogmaneoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #15
0
        public static StdVecf whiten(StdVecf src, int width, int radius, float strength, ComputeSystem system, int chunkSize)
        {
            StdVecf ret = new StdVecf(eogmaneoPINVOKE.whiten__SWIG_0(StdVecf.getCPtr(src), width, radius, strength, ComputeSystem.getCPtr(system), chunkSize), true);

            if (eogmaneoPINVOKE.SWIGPendingException.Pending)
            {
                throw eogmaneoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #16
0
 public void step(Std2DVeci inputs, ComputeSystem system, bool learn, float reward)
 {
     eogmaneoPINVOKE.Hierarchy_step__SWIG_0(swigCPtr, Std2DVeci.getCPtr(inputs), ComputeSystem.getCPtr(system), learn, reward);
     if (eogmaneoPINVOKE.SWIGPendingException.Pending)
     {
         throw eogmaneoPINVOKE.SWIGPendingException.Retrieve();
     }
 }
예제 #17
0
 public void step(Std2DVeci inputs, ComputeSystem system)
 {
     eogmaneoPINVOKE.Hierarchy_step__SWIG_2(swigCPtr, Std2DVeci.getCPtr(inputs), ComputeSystem.getCPtr(system));
     if (eogmaneoPINVOKE.SWIGPendingException.Pending)
     {
         throw eogmaneoPINVOKE.SWIGPendingException.Retrieve();
     }
 }