Struct tensorflow::ops::XlaHostCompute
source · pub struct XlaHostCompute { /* private fields */ }
Expand description
Builder for the XlaHostCompute
operation.
Implementations§
source§impl XlaHostCompute
impl XlaHostCompute
sourcepub fn Tinputs<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
pub fn Tinputs<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
Sets the Tinputs
attribute.
sourcepub fn Toutputs<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
pub fn Toutputs<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
Sets the Toutputs
attribute.
sourcepub fn ancestors<ArgType: Into<Vec<String>>>(self, value: ArgType) -> Self
pub fn ancestors<ArgType: Into<Vec<String>>>(self, value: ArgType) -> Self
Sets the ancestors
attribute.
sourcepub fn shapes<ArgType: Into<Vec<Shape>>>(self, value: ArgType) -> Self
pub fn shapes<ArgType: Into<Vec<Shape>>>(self, value: ArgType) -> Self
Sets the shapes
attribute.
sourcepub fn shape_inference_graph<ArgType: Into<String>>(
self,
value: ArgType
) -> Self
pub fn shape_inference_graph<ArgType: Into<String>>( self, value: ArgType ) -> Self
Sets the shape_inference_graph
attribute.
sourcepub fn send_key<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn send_key<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the send_key
attribute.
sourcepub fn recv_key<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn recv_key<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the recv_key
attribute.
sourcepub fn cost_estimate_ns<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn cost_estimate_ns<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the cost_estimate_ns
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>>(
&self,
inputs: O0,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>>( &self, inputs: O0, scope: &mut Scope ) -> Result<Operation>
Builds the XlaHostCompute
operation.
sourcepub fn build_instance(
&self,
inputs: Output,
scope: &mut Scope
) -> Result<XlaHostComputeInst>
pub fn build_instance( &self, inputs: Output, scope: &mut Scope ) -> Result<XlaHostComputeInst>
Builds a new instance of ‘XlaHostCompute’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for XlaHostCompute
impl Debug for XlaHostCompute
source§impl Default for XlaHostCompute
impl Default for XlaHostCompute
source§fn default() -> XlaHostCompute
fn default() -> XlaHostCompute
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for XlaHostCompute
impl Send for XlaHostCompute
impl Sync for XlaHostCompute
impl Unpin for XlaHostCompute
impl UnwindSafe for XlaHostCompute
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