class_docstr: Torch autograd function for matrix logarithm.
  
  Implementation based on:
  https://github.com/pytorch/pytorch/issues/9983#issuecomment-891777620
class_docstr_tok: ["Torch","autograd","function","for","matrix","logarithm",".","Implementation","based","on",":","https",":","\/\/github.com\/pytorch\/pytorch\/issues\/9983","#","issuecomment-891777620"]
code: def _logm(x):
      np_logm = _gsnplinalg.logm(x.detach().cpu())
      torch_logm = _torch.from_numpy(np_logm).to(
          x.device, dtype=x.dtype
      )
      return torch_logm
  
file_path: geomstats/geomstats/_backend/pytorch/linalg.py
imports: import numpy
  import scipy
  import torch
  from .._backend_config import np_atol
  from ..numpy import linalg
  from ._dtype import _cast_out_to_input_dtype
label_desc: Use image node_id 1 for calling the _Logm obj's underlying member method code with example usage: obj._logm(x) and returns: torch_logm