pub struct ScatterOperation<'c> { /* private fields */ }
Expand description
A scatter
operation. Scatter operation,.
The values_out tensor is set to the values_in tensor with data modified as follows: data from the input tensor is inserted at the positions specified by the indices tensor.
Implementations§
source§impl<'c> ScatterOperation<'c>
impl<'c> ScatterOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> ScatterOperationBuilder<'c, Unset, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> ScatterOperationBuilder<'c, Unset, Unset, Unset, Unset>
Creates a builder.
pub fn values_out(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn values_in(&self) -> Result<Value<'c, '_>, Error>
pub fn indices(&self) -> Result<Value<'c, '_>, Error>
pub fn input(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<ScatterOperation<'c>> for Operation<'c>
impl<'c> From<ScatterOperation<'c>> for Operation<'c>
source§fn from(operation: ScatterOperation<'c>) -> Self
fn from(operation: ScatterOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ScatterOperation<'c>
impl<'c> !Send for ScatterOperation<'c>
impl<'c> !Sync for ScatterOperation<'c>
impl<'c> Unpin for ScatterOperation<'c>
impl<'c> UnwindSafe for ScatterOperation<'c>
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