torch_tensor_print Subroutine

public subroutine torch_tensor_print(self)

Prints the contents of a tensor.

Type Bound

torch_tensor

Arguments

Type IntentOptional Attributes Name
class(torch_tensor), intent(in) :: self

Tensor to print the contents of


Source Code

  subroutine torch_tensor_print(self)
    class(torch_tensor), intent(in) :: self  !! Tensor to print the contents of

    interface
      subroutine torch_tensor_print_c(tensor_c) &
          bind(c, name = 'torch_tensor_print')
        use, intrinsic :: iso_c_binding, only : c_ptr
        implicit none
        type(c_ptr), value, intent(in) :: tensor_c
      end subroutine torch_tensor_print_c
    end interface

    call torch_tensor_print_c(self%p)
  end subroutine torch_tensor_print