Realm

oa::data::HostBatch

Collated host batch: [B, ...] tensors stacked along a new leading axis.

StRust public API

Declaration

pub struct HostBatch { pub x: HostTensor, pub y: Option<HostTensor>, }
Public Rust declaration.

Public Methods

pub fn upload_on(&self, runtime: &Runtime) -> Result<Batch>
fn clone(&self) -> HostBatch
fn fmt(&self, f: &mut Formatter<'_>) -> Result

Public Data Members

xHostTensorfield
yOption<HostTensor>field

Public Method Documentation

pub fn upload_on( &self, runtime: &Runtime ) -> Result<Batch>
No public source comment is attached to this declaration.
fn clone( &self ) -> HostBatch
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.