로딩
요청 처리 중입니다...

(pytorch) torch.Tensor.masked_fill

 (pytorch) torch.Tensor.masked_fill

torch.Tensor.masked_fill torch.Tensor.masked_fill_ — PyTorch 1.12 documentation torch.Tensor.masked_fill_ Tensor. masked_fill_ ( mask , value ) Fills elements of self tensor with value where mask is True. The shape of mask must be broadcastable with the shape of the underlying tensor.

Parameters mask ( BoolTensor ) – the boolean mask value ( float ) – the value to fill in with ... pytorch.org Parameter mask : masking 할 것인지 말 것인지를 결정하는 boolean Tensor를 입력으로 받는다. value : 어떤 값으로 masking할 것인지를 정한다. E...