Overloads division operator for two tensors.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(in) | :: | tensor1 | |||
type(torch_tensor), | intent(in) | :: | tensor2 |
function torch_tensor_divide(tensor1, tensor2) result(output) type(torch_tensor), intent(in) :: tensor1 type(torch_tensor), intent(in) :: tensor2 type(torch_tensor) :: output interface function torch_tensor_divide_c(tensor1_c, tensor2_c) result(output_c) & bind(c, name = 'torch_tensor_divide') use, intrinsic :: iso_c_binding, only : c_ptr implicit none type(c_ptr), value, intent(in) :: tensor1_c type(c_ptr), value, intent(in) :: tensor2_c type(c_ptr) :: output_c end function torch_tensor_divide_c end interface output%p = torch_tensor_divide_c(tensor1%p, tensor2%p) end function torch_tensor_divide