TensorPlay
API symbolsgradient
Copy
View Markdown

tensorplay.gradient

tensorplay.gradient(input, *, spacing=None, dim=None, edge_order=1)[source]

The native binding only takes Tensor[] spacing / int[] dim; materialize python numbers into scalar tensors typed like input (a single scalar applies to every dimension).

On this page

Ask DeepWiki