torch.full

안준모·2024년 3월 4일

torch.full

f = torch.full(size=(5, ), fill_value = 30)
print(f)

tensor([30, 30, 30, 30, 30])

profile
MLops 에 관심이 많습니다.

0개의 댓글