pub struct TensorConnection {
pub from_tensor: String,
pub to_tensor: String,
}
Expand description
Defines a connection between two tensors in a GraphDef
.
Fields§
§from_tensor: String
A tensor name. The value of this tensor will be substituted for
the tensor named in to_tensor
.
to_tensor: String
A tensor name. The value of this tensor will be bound to the
value of the tensor named in from_tensor
.
Trait Implementations§
Source§impl Clone for TensorConnection
impl Clone for TensorConnection
Source§fn clone(&self) -> TensorConnection
fn clone(&self) -> TensorConnection
Returns a duplicate 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 TensorConnection
impl Debug for TensorConnection
Source§impl Default for TensorConnection
impl Default for TensorConnection
Source§impl Message for TensorConnection
impl Message for TensorConnection
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for TensorConnection
impl PartialEq for TensorConnection
impl StructuralPartialEq for TensorConnection
Auto Trait Implementations§
impl Freeze for TensorConnection
impl RefUnwindSafe for TensorConnection
impl Send for TensorConnection
impl Sync for TensorConnection
impl Unpin for TensorConnection
impl UnwindSafe for TensorConnection
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