Parameters. tensor – an n-dimensional <cite>torch.Tensor</cite>; val –用张量填充张量的值. Examples. >>> w = torch.empty(3, 5) >>> nn.init.constant_(w, 0.3) ...
確定! 回上一頁