Struct tensorflow::eager::raw_ops::SerializeSparse
source · pub struct SerializeSparse { /* private fields */ }
Expand description
SerializeSparse
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/SerializeSparse
Implementations§
source§impl SerializeSparse
impl SerializeSparse
sourcepub fn out_type<ArgType: Into<DataType>>(self, value: ArgType) -> Self
pub fn out_type<ArgType: Into<DataType>>(self, value: ArgType) -> Self
Sets the out_type
attribute.
sourcepub fn target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the `` attribute.
sourcepub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>, T2: ToTensorHandle<'a>>(
&self,
ctx: &'a Context,
sparse_indices: &T0,
sparse_values: &T1,
sparse_shape: &T2
) -> Result<TensorHandle<'a>>
pub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>, T2: ToTensorHandle<'a>>( &self, ctx: &'a Context, sparse_indices: &T0, sparse_values: &T1, sparse_shape: &T2 ) -> Result<TensorHandle<'a>>
Execute serialize_sparse.
Trait Implementations§
source§impl Clone for SerializeSparse
impl Clone for SerializeSparse
source§fn clone(&self) -> SerializeSparse
fn clone(&self) -> SerializeSparse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SerializeSparse
impl Debug for SerializeSparse
Auto Trait Implementations§
impl RefUnwindSafe for SerializeSparse
impl Send for SerializeSparse
impl Sync for SerializeSparse
impl Unpin for SerializeSparse
impl UnwindSafe for SerializeSparse
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