Example #1
0
        public ParameterModifier addHigherLayer(Vec2i size, SparseFeaturesType type)
        {
            ParameterModifier ret = new ParameterModifier(csogmaneoPINVOKE.Architect_addHigherLayer(swigCPtr, Vec2i.getCPtr(size), (int)type), true);

            if (csogmaneoPINVOKE.SWIGPendingException.Pending)
            {
                throw csogmaneoPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #2
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);
        }