NDMaskPtr NDMask::DeepClone(const DeviceDescriptor& device) const { NDMaskPtr newMask = MakeSharedObject<NDMask>(this->Shape(), device); newMask->CopyFrom(*this); return newMask; }
NDMaskPtr NDMask::DeepClone() const { NDMaskPtr newMask = MakeSharedObject<NDMask>(this->Shape(), this->Device()); newMask->CopyFrom(*this); return newMask; }
NDMaskPtr NDMask::DeepClone() const { NDMaskPtr newMask = new NDMask(this->Shape(), this->Device()); newMask->CopyFrom(*this); return NDMaskPtr(newMask, [](ReferenceCount* ptr) { delete ptr; }); }