예제 #1
0
파일: NDMask.cpp 프로젝트: Microsoft/CNTK
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;
    });
}
예제 #2
0
파일: NDMask.cpp 프로젝트: 1132520084/CNTK
 NDMask::NDMask(const NDShape& shape, Matrix<char>* matrix)
     : m_device(AsDeviceDescriptor(matrix->GetDeviceId())), m_maskShape(shape), m_matrixView(matrix)
 {
 }