3using System.Collections.Generic;
6using System.Threading.Tasks;
17 long m_hExtension = 0;
60 m_iextension = iextension;
68 if (m_hExtension != 0)
70 Run(FUNCTION.CLEANUP);
71 m_iextension.FreeExtension(m_hExtension);
82 if (m_hExtension != 0)
83 m_iextension.FreeExtension(m_hExtension);
85 m_hExtension = m_iextension.CreateExtension(strPath);
92 public void Run(FUNCTION fn)
94 m_iextension.RunExtension(m_hExtension, (
long)fn,
null);
103 public double[]
Run(FUNCTION fn,
double[] rgParam)
105 return m_iextension.RunExtensionD(m_hExtension, (
long)fn, rgParam);
114 public float[]
Run(FUNCTION fn,
float[] rgParam)
116 return m_iextension.RunExtensionF(m_hExtension, (
long)fn, rgParam);
The Extension class is used to add new pre-processor extension DLL's to MyCaffe.
double[] Run(FUNCTION fn, double[] rgParam)
Run a function on the pre-processor DLL with arguments.
void Run(FUNCTION fn)
Run a function on the pre-processor DLL without any arguments.
void Dispose()
Release the processor extension.
Extension(IXMyCaffeExtension< T > iextension)
The constructor.
float[] Run(FUNCTION fn, float[] rgParam)
Run a function on the pre-processor DLL with arguments.
void Initialize(string strPath)
Initialize a new pre-processor extension and load it.
The IXMyCaffeExtension interface allows for easy extension management of the low-level software that ...
The MyCaffe.common namespace contains common MyCaffe classes.
The MyCaffe.preprocessor namespace contains all classes of the data preprocessors supported by MyCaff...
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...