Ejemplo n.º 1
0
NDMask::NDMask(const NDShape& shape, Matrix<char>* matrix)
    : m_device(AsDeviceDescriptor(matrix->GetDeviceId())), m_maskShape(shape)
{
    m_matrixView = std::shared_ptr<Matrix<char>>(matrix, [](Matrix<char>* ptr) {
        delete ptr;
    });
}
Ejemplo n.º 2
0
 NDMask::NDMask(const NDShape& shape, Matrix<char>* matrix)
     : m_device(AsDeviceDescriptor(matrix->GetDeviceId())), m_maskShape(shape), m_matrixView(matrix)
 {
 }