lines 6-16 of file: python/cmpad/torch/gradient.py {xrst_begin torch_gradient.py} {xrst_template , python/cmpad/gradient.xrst @Package@ , PyTorch @#######@ , ####### @package@ , torch @algo_type@ , ``torch.tensor`` with ``float`` elements } {xrst_end torch_gradient.py}