Documentation ¶
Index ¶
- func AdaptiveAvgPool2d(input torch.Tensor, outputSize []int64) torch.Tensor
- func BatchNorm(input, runningMean, runningVar, weight, bias torch.Tensor, training bool, ...) torch.Tensor
- func BinaryCrossEntropy(input, target, weight torch.Tensor, reduction string) torch.Tensor
- func Conv2d(input, weight, bias torch.Tensor, stride, padding, dilation []int64, ...) torch.Tensor
- func ConvTranspose2d(input, weight, bias torch.Tensor, stride, padding, outputPadding []int64, ...) torch.Tensor
- func CrossEntropy(input, target, weight torch.Tensor, ignoreIndex int64, reduction string) torch.Tensor
- func LeakyRelu(input torch.Tensor, negativeSlope float64, inplace bool) torch.Tensor
- func Linear(input, weight, bias torch.Tensor) torch.Tensor
- func LogSoftmax(input torch.Tensor, dim int64) torch.Tensor
- func MaxPool2d(input torch.Tensor, kernelSize, stride, padding, dilation []int64, ...) torch.Tensor
- func NllLoss(input, target, weight torch.Tensor, ignoreIndex int64, reduction string) torch.Tensor
- func Relu(input torch.Tensor, inplace bool) torch.Tensor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptiveAvgPool2d ¶
AdaptiveAvgPool2d torch.nn.functional.adaptive_avg_pool2d
func BatchNorm ¶
func BatchNorm(input, runningMean, runningVar, weight, bias torch.Tensor, training bool, momentum, eps float64) torch.Tensor
BatchNorm does batch nomalization for `input`
func BinaryCrossEntropy ¶
BinaryCrossEntropy torch.nn.functional.binary_cross_entropy
func Conv2d ¶
func Conv2d(input, weight, bias torch.Tensor, stride, padding, dilation []int64, groups int64) torch.Tensor
Conv2d does 2d-convolution
func ConvTranspose2d ¶
func ConvTranspose2d( input, weight, bias torch.Tensor, stride, padding, outputPadding []int64, groups int64, dilation []int64) torch.Tensor
ConvTranspose2d does 2d-fractionally-strided convolution
func CrossEntropy ¶
func CrossEntropy(input, target, weight torch.Tensor, ignoreIndex int64, reduction string) torch.Tensor
CrossEntropy torch.nn.functional.cross_entropy
func LogSoftmax ¶
LogSoftmax torch.nn.functional.log_softmax
func MaxPool2d ¶
func MaxPool2d(input torch.Tensor, kernelSize, stride, padding, dilation []int64, ceilMode bool) torch.Tensor
MaxPool2d torch.nn.functional.max_pool2d
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.