torch_from_blob_c Interface

interface
public function torch_from_blob_c(data, ndims, tensor_shape, strides, dtype, device_type, device_index, requires_grad) result(tensor_p) bind(c, name = 'torch_from_blob')

Arguments

Type IntentOptional Attributes Name
type(c_ptr), intent(in), value :: data
integer(kind=c_int), intent(in), value :: ndims
integer(kind=c_int64_t), intent(in) :: tensor_shape(*)
integer(kind=c_int64_t), intent(in) :: strides(*)
integer(kind=c_int), intent(in), value :: dtype
integer(kind=c_int), intent(in), value :: device_type
integer(kind=c_int), intent(in), value :: device_index
logical(kind=c_bool), intent(in), value :: requires_grad

Return Value type(c_ptr)