pub struct TabularBatch {
pub numeric: Tensor,
pub categorical: Tensor,
}Expand description
Tabular model batch with one leading sample dimension.
Fields§
§numeric: TensorFloat [batch,numeric_columns] features.
categorical: TensorInt64 [batch,categorical_columns] IDs.
Trait Implementations§
Source§impl Debug for TabularBatch
impl Debug for TabularBatch
Source§impl MemoryFootprint for TabularBatch
impl MemoryFootprint for TabularBatch
Source§fn resident_bytes(&self) -> usize
fn resident_bytes(&self) -> usize
Returns the conservative logical payload size in bytes.
Source§impl PinMemory for TabularBatch
impl PinMemory for TabularBatch
Source§fn pin_memory(self, d: Device) -> Result<Self>
fn pin_memory(self, d: Device) -> Result<Self>
Pins this value for the requested accelerator.
Auto Trait Implementations§
impl !Sync for TabularBatch
impl Forget for TabularBatch
impl Freeze for TabularBatch
impl RefUnwindSafe for TabularBatch
impl Send for TabularBatch
impl Unpin for TabularBatch
impl UnsafeUnpin for TabularBatch
impl UnwindSafe for TabularBatch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more