Crate caffe2op_args
source ·Structs
- | Retrieve the argmax of an axis dimension | specified by the
axis
argument. | | Given an input tensor and two arguments | (axis
andkeepdims
), returns a | tensor containing the indices of the | largest element along the given axis. | | If thekeepdims
arg is True (default), | the shape of the output tensor matches | the input tensor except theaxis
dimension | equals 1. | | Else, theaxis
dimension of the output | tensor is removed. | | Github Links: | | - https://github.com/pytorch/pytorch/blob/master/caffe2/operators/arg_ops.cc | - | Retrieve the argmin of an axis dimension | specified by the
axis
argument. | | Given an input tensor and two arguments | (axis
andkeepdims
), returns a | tensor containing the indices of the | smallest element along the given axis. | | If thekeepdims
arg is True (default), | the shape of the output tensor matches | the input tensor except theaxis
dimension | equals 1. | | Else, theaxis
dimension of the output | tensor is removed. | | Github Links: | | - https://github.com/pytorch/pytorch/blob/master/caffe2/operators/arg_ops.cc |