Struct caffe::Blob [] [src]

pub struct Blob {
    // some fields omitted
}

Wrapper onto a caffe::Blob.

Methods

impl Blob

fn wrap(blob: Unique<Struct_CaffeBlob>) -> Blob

Take ownership of the FFI blob.

fn len(&self) -> usize

Number of elements in the blob.

fn is_empty(&self) -> bool

Blob empty?

fn as_slice(&self) -> &[f32]

Represent the blob data as a slice.

fn as_mut_slice(&mut self) -> &mut [f32]

Represent the blob data as a mutable slice.

fn set_data(&mut self, data: &mut [f32])

Set the blob data to the data pointer.

Trait Implementations

impl Drop for Blob

fn drop(&mut self)