library,

Pytorch

Follow Dec 12, 2019 · 2 mins read
Pytorch
Share this
  • This is the list when I type
dir(torch.tensor)

which means these are all tensor methods.

‘clamp_max’: ‘clamp_max_’: ‘clamp_min’: ‘clamp_min_’: check clamp

‘clone’: ‘backward’: ‘squeeze’: ‘squeeze_’: ‘unsqueeze’: ‘unsqueeze_’: ‘t’: ‘t_’: ‘grad’: ‘pow’: ‘pow_’: ‘shape’: ‘relu’: ‘relu_’: ‘sqrt’: ‘sqrt_’: ‘stride’:


‘T’: ‘abs’: ‘add’: ‘and’: ‘array’: ‘array_priority’: ‘array_wrap’: ‘bool’: ‘class’: ‘contains’: ‘deepcopy’: ‘delattr’: ‘delitem’: ‘dict’: ‘dir’: ‘div’: ‘doc’: ‘eq’: ‘float’: ‘floordiv’: ‘format’: ‘ge’: ‘getattribute’: ‘getitem’: ‘gt’: ‘hash’: ‘iadd’: ‘iand’: ‘idiv’: ‘ilshift’: ‘imul’: ‘index’: ‘init’: ‘init_subclass’: ‘int’: ‘invert’: ‘ior’: ‘ipow’: ‘irshift’: ‘isub’: ‘iter’: ‘itruediv’: ‘ixor’: ‘le’: ‘len’: ‘long’: ‘lshift’: ‘lt’: ‘matmul’: ‘mod’: ‘module’: ‘mul’: ‘ne’: ‘neg’: ‘new’: ‘nonzero’: ‘or’: ‘pow’: ‘radd’: ‘rdiv’: ‘reduce’: ‘reduce_ex’: ‘repr’: ‘reversed’: ‘rfloordiv’: ‘rmul’: ‘rpow’: ‘rshift’: ‘rsub’: ‘rtruediv’: ‘setattr’: ‘setitem’: ‘setstate’: ‘sizeof’: ‘str’: ‘sub’: ‘subclasshook’: ‘truediv’: ‘weakref’: ‘xor’: ‘backward_hooks’: ‘_base’: ‘_cdata’: ‘_coalesced’: ‘dimI’: ‘_dimV’: ‘_grad’: ‘_grad_fn’: ‘_indices’: ‘_is_view’: ‘_make_subclass’: ‘_nnz’: ‘_update_names’: ‘_values’: ‘_version’: ‘abs’: ‘abs’: ‘acos’: ‘acos_’: ‘add’: ‘add_’: ‘addbmm’: ‘addbmm_’: ‘addcdiv’: ‘addcdiv_’: ‘addcmul’: ‘addcmul_’: ‘addmm’: ‘addmm_’: ‘addmv’: ‘addmv_’: ‘addr’: ‘addr_’: ‘align_as’: ‘align_to’: ‘all’: ‘allclose’: ‘any’: ‘apply_’: ‘argmax’: ‘argmin’: ‘argsort’: ‘as_strided’: ‘as_strided_’: ‘asin’: ‘asin_’: ‘atan’: ‘atan2’: ‘atan2’: ‘atan’: ‘backward’: ‘baddbmm’: ‘baddbmm_’: ‘bernoulli’: ‘bernoulli_’: ‘bfloat16’: ‘bincount’: ‘bitwise_not’: ‘bitwise_not_’: ‘bmm’: ‘bool’: ‘byte’: ‘cauchy_’: ‘ceil’: ‘ceil_’: ‘char’: ‘cholesky’: ‘cholesky_inverse’: ‘cholesky_solve’: ‘chunk’: ‘clamp’: ‘clamp_’: ‘coalesce’: ‘contiguous’: ‘copy_’: ‘cos’: ‘cos_’: ‘cosh’: ‘cosh_’: ‘cpu’: ‘cross’: ‘cuda’: ‘cumprod’: ‘cumsum’: ‘data’: ‘data_ptr’: ‘dense_dim’: ‘dequantize’: ‘det’: ‘detach’: ‘detach_’: ‘device’: ‘diag’: ‘diag_embed’: ‘diagflat’: ‘diagonal’: ‘digamma’: ‘digamma_’: ‘dim’: ‘dist’: ‘div’: ‘div_’: ‘dot’: ‘double’: ‘dtype’: ‘eig’: ‘element_size’: ‘eq’: ‘eq_’: ‘equal’: ‘erf’: ‘erf_’: ‘erfc’: ‘erfc_’: ‘erfinv’: ‘erfinv_’: ‘exp’: ‘exp_’: ‘expand’: ‘expand_as’: ‘expm1’: ‘expm1’: ‘exponential’: ‘fft’: ‘fill_’: ‘fill_diagonal_’: ‘flatten’: ‘flip’: ‘float’: ‘floor’: ‘floor_’: ‘fmod’: ‘fmod_’: ‘frac’: ‘frac_’: ‘gather’: ‘ge’: ‘ge_’: ‘geometric_’: ‘geqrf’: ‘ger’: ‘get_device’: ‘grad_fn’: ‘gt’: ‘gt_’: ‘half’: ‘hardshrink’: ‘has_names’: ‘histc’: ‘ifft’: ‘index_add’: ‘index_add_’: ‘index_copy’: ‘index_copy_’: ‘index_fill’: ‘index_fill_’: ‘index_put’: ‘index_put_’: ‘index_select’: ‘indices’: ‘int’: ‘int_repr’: ‘inverse’: ‘irfft’: ‘is_coalesced’: ‘is_complex’: ‘is_contiguous’: ‘is_cuda’: ‘is_distributed’: ‘is_floating_point’: ‘is_leaf’: ‘is_mkldnn’: ‘is_nonzero’: ‘is_pinned’: ‘is_quantized’: ‘is_same_size’: ‘is_set_to’: ‘is_shared’: ‘is_signed’: ‘is_sparse’: ‘isclose’: ‘item’: ‘kthvalue’: ‘layout’: ‘le’: ‘le_’: ‘lerp’: ‘lerp_’: ‘lgamma’: ‘lgamma_’: ‘log’: ‘log10’: ‘log10’: ‘log1p’: ‘log1p’: ‘log2’: ‘log2’: ‘log’: ‘log_normal_’: ‘log_softmax’: ‘logdet’: ‘logical_not’: ‘logical_not_’: ‘logical_xor’: ‘logical_xor_’: ‘logsumexp’: ‘long’: ‘lstsq’: ‘lt’: ‘lt_’: ‘lu’: ‘lu_solve’: ‘map2’: ‘map’: ‘masked_fill’: ‘masked_fill_’: ‘masked_scatter’: ‘masked_scatter_’: ‘masked_select’: ‘matmul’: ‘matrix_power’: ‘max’: ‘mean’: ‘median’: ‘min’: ‘mm’: ‘mode’: ‘mul’: ‘mul_’: ‘multinomial’: ‘mv’: ‘mvlgamma’: ‘mvlgamma_’: ‘name’: ‘names’: ‘narrow’: ‘narrow_copy’: ‘ndim’: ‘ndimension’: ‘ne’: ‘ne_’: ‘neg’: ‘neg_’: ‘nelement’: ‘new’: ‘new_empty’: ‘new_full’: ‘new_ones’: ‘new_tensor’: ‘new_zeros’: ‘nonzero’: ‘norm’: ‘normal_’: ‘numel’: ‘numpy’: ‘orgqr’: ‘ormqr’: ‘output_nr’: ‘permute’: ‘pin_memory’: ‘pinverse’: ‘polygamma’: ‘polygamma_’: ‘prelu’: ‘prod’: ‘put_’: ‘q_per_channel_axis’: ‘q_per_channel_scales’: ‘q_per_channel_zero_points’: ‘q_scale’: ‘q_zero_point’: ‘qr’: ‘qscheme’: ‘random_’: ‘reciprocal’: ‘reciprocal_’: ‘record_stream’: ‘refine_names’: ‘register_hook’: ‘reinforce’: ‘remainder’: ‘remainder_’: ‘rename’: ‘rename_’: ‘renorm’: ‘renorm_’: ‘repeat’: ‘repeat_interleave’: ‘requires_grad’: ‘requires_grad_’: ‘reshape’: ‘reshape_as’: ‘resize’: ‘resize_’: ‘resize_as’: ‘resize_as_’: ‘retain_grad’: ‘rfft’: ‘roll’: ‘rot90’: ‘round’: ‘round_’: ‘rsqrt’: ‘rsqrt_’: ‘scatter’: ‘scatter_’: ‘scatter_add’: ‘scatter_add_’: ‘select’: ‘set_’: ‘share_memory_’: ‘short’: ‘sigmoid’: ‘sigmoid_’: ‘sign’: ‘sign_’: ‘sin’: ‘sin_’: ‘sinh’: ‘sinh_’: ‘size’: ‘slogdet’: ‘smm’: ‘softmax’: ‘solve’: ‘sort’: ‘sparse_dim’: ‘sparse_mask’: ‘sparse_resize_’: ‘sparse_resize_and_clear_’: ‘split’: ‘split_with_sizes’: ‘squeeze’: ‘squeeze_’: ‘sspaddmm’: ‘std’: ‘stft’: ‘storage’: ‘storage_offset’: ‘storage_type’: ‘sub’: ‘sub_’: ‘sum’: ‘sum_to_size’: ‘svd’: ‘symeig’: ‘take’: ‘tan’: ‘tan_’: ‘tanh’: ‘tanh_’: ‘to’: ‘to_dense’: ‘to_mkldnn’: ‘to_sparse’: ‘tolist’: ‘topk’: ‘trace’: ‘transpose’: ‘transpose_’: ‘triangular_solve’: ‘tril’: ‘tril_’: ‘triu’: ‘triu_’: ‘trunc’: ‘trunc_’: ‘type’: ‘type_as’: ‘unbind’: ‘unflatten’: ‘unfold’: ‘uniform_’: ‘unique’: ‘unique_consecutive’: ‘values’: ‘var’: ‘view’: ‘view_as’: ‘where’: ‘zero_’