pub trait GetOutputAtIndexTensorCopy {
    // Provided method
    fn output_tensor_copy_from(
        &mut self,
        idx: i32,
        options: TensorOptions,
        src: &Tensor,
        async_: Option<bool>
    ) -> *mut Tensor { ... }
}

Provided Methods§

source

fn output_tensor_copy_from( &mut self, idx: i32, options: TensorOptions, src: &Tensor, async_: Option<bool> ) -> *mut Tensor

| Get the output Tensor of an operator | (allocating it if it is not already | initialized), and copy the contents of src | into it. | | You probably don’t actually want to use | this function (the fact that you have | a Tensor to copy from is probably | a mistake: you should have written the | output into the output tensor, from | Output, directly in the first place), but | this method is situationally useful.

Implementors§