Struct pjrt_sys::protos::xla::WindowDimension
source · pub struct WindowDimension {
pub size: i64,
pub stride: i64,
pub padding_low: i64,
pub padding_high: i64,
pub window_dilation: i64,
pub base_dilation: i64,
pub window_reversal: bool,
}Fields§
§size: i64The size of the window in this dimension. For a rectangle, this would be the width or height.
stride: i64The stride at which the window moves across the base area in this dimension. In other words, this is the spacing between different positions of the window in this dimension.
padding_low: i64If positive, means the amount of padding to add to the base area at the low end of this dimension; if negative, its negative means the number of elements removed from the low end of this dimension. For example, in the horizontal dimension of a rectangle, this would be the number of padding values to pad on the left, given that indices increase when going right. The actual padding value depends upon the context. Convolution pads with zeros. ReduceWindow and SelectAndScatter pads with the reduce function’s init value.
padding_high: i64As padding_low, but on the high end of this dimension. For example, in the horizontal dimension of a rectangle, this would be the number of values to pad on the right, given that indices increase when going right.
window_dilation: i64Dilation factor of the sliding window in this dimension. A dilation factor of 1 means no dilation. window_dilation - 1 no-op entries (“holes”) are implicitly placed between each kernel element. This value may not be less than 1. See documentation for convolution.
base_dilation: i64Dilation factor of the base area in this dimension. A dilation factor of 1 means no dilation. base_dilation - 1 no-op entries (“holes”) are implicitly placed between each base area element. This value may not be less than 1. See documentation for convolution.
window_reversal: boolWindow reversal means that this dimension was logically reversed before the operation.
Trait Implementations§
source§impl Clone for WindowDimension
impl Clone for WindowDimension
source§fn clone(&self) -> WindowDimension
fn clone(&self) -> WindowDimension
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for WindowDimension
impl Debug for WindowDimension
source§impl Default for WindowDimension
impl Default for WindowDimension
source§impl Message for WindowDimension
impl Message for WindowDimension
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.source§impl PartialEq for WindowDimension
impl PartialEq for WindowDimension
impl Copy for WindowDimension
impl StructuralPartialEq for WindowDimension
Auto Trait Implementations§
impl Freeze for WindowDimension
impl RefUnwindSafe for WindowDimension
impl Send for WindowDimension
impl Sync for WindowDimension
impl Unpin for WindowDimension
impl UnwindSafe for WindowDimension
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)