示例#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::NDMask(const NDShape& shape, Matrix<char>* matrix)
     : m_device(AsDeviceDescriptor(matrix->GetDeviceId())), m_maskShape(shape), m_matrixView(matrix)
 {
 }