Struct tensorflow::ops::TPUCompile
source · pub struct TPUCompile { /* private fields */ }
Expand description
Builder for the TPUCompile
operation.
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 NumDynamicShapes<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn NumDynamicShapes<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the NumDynamicShapes
attribute.
sourcepub fn Tguaranteed_constants<ArgType: Into<Vec<DataType>>>(
self,
value: ArgType
) -> Self
pub fn Tguaranteed_constants<ArgType: Into<Vec<DataType>>>( self, value: ArgType ) -> Self
Sets the Tguaranteed_constants
attribute.
sourcepub fn add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
sourcepub fn build<O0: Into<Output>, O1: Into<Output>>(
&self,
dynamic_shapes: O0,
guaranteed_constants: O1,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>>( &self, dynamic_shapes: O0, guaranteed_constants: O1, scope: &mut Scope ) -> Result<Operation>
Builds the TPUCompile
operation.
sourcepub fn build_instance(
&self,
dynamic_shapes: Vec<Output>,
guaranteed_constants: Output,
scope: &mut Scope
) -> Result<TPUCompileInst>
pub fn build_instance( &self, dynamic_shapes: Vec<Output>, guaranteed_constants: Output, scope: &mut Scope ) -> Result<TPUCompileInst>
Builds a new instance of ‘TPUCompile’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for TPUCompile
impl Debug for TPUCompile
source§impl Default for TPUCompile
impl Default for TPUCompile
source§fn default() -> TPUCompile
fn default() -> TPUCompile
Returns the “default value” for a type. Read more
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