Struct tensorflow::eager::raw_ops::TPUCompile
source · pub struct TPUCompile { /* private fields */ }
Expand description
TPUCompile
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/TPUCompile
Implementations§
source§impl TPUCompile
impl TPUCompile
sourcepub fn num_computations<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_computations<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_computations
attribute.
sourcepub fn function<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn function<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the function
attribute.
sourcepub fn metadata<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn metadata<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the metadata
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>>(
&self,
ctx: &'a Context,
dynamic_shapes: &[&T0],
guaranteed_constants: &T1
) -> Result<[TensorHandle<'a>; 3]>
pub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>>( &self, ctx: &'a Context, dynamic_shapes: &[&T0], guaranteed_constants: &T1 ) -> Result<[TensorHandle<'a>; 3]>
Execute tpucompile.
Trait Implementations§
source§impl Clone for TPUCompile
impl Clone for TPUCompile
source§fn clone(&self) -> TPUCompile
fn clone(&self) -> TPUCompile
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 TPUCompile
impl Debug for TPUCompile
Auto Trait Implementations§
impl RefUnwindSafe for TPUCompile
impl Send for TPUCompile
impl Sync for TPUCompile
impl Unpin for TPUCompile
impl UnwindSafe for TPUCompile
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