pub struct ResourceHandleProto {
pub device: String,
pub container: String,
pub name: String,
pub hash_code: u64,
pub maybe_type_name: String,
pub dtypes_and_shapes: Vec<DtypeAndShape>,
}
Expand description
Protocol buffer representing a handle to a tensorflow resource. Handles are not valid across executions, but can be serialized back and forth from within a single run.
Fields§
§device: String
Unique name for the device containing the resource.
container: String
Container in which this resource is placed.
name: String
Unique name of this resource.
hash_code: u64
Hash code for the type of the resource. Is only valid in the same device and in the same execution.
maybe_type_name: String
For debug-only, the name of the type pointed to by this handle, if available.
dtypes_and_shapes: Vec<DtypeAndShape>
Data types and shapes for the underlying resource.
Trait Implementations§
Source§impl Clone for ResourceHandleProto
impl Clone for ResourceHandleProto
Source§fn clone(&self) -> ResourceHandleProto
fn clone(&self) -> ResourceHandleProto
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 ResourceHandleProto
impl Debug for ResourceHandleProto
Source§impl Default for ResourceHandleProto
impl Default for ResourceHandleProto
Source§impl Message for ResourceHandleProto
impl Message for ResourceHandleProto
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 ResourceHandleProto
impl PartialEq for ResourceHandleProto
impl StructuralPartialEq for ResourceHandleProto
Auto Trait Implementations§
impl Freeze for ResourceHandleProto
impl RefUnwindSafe for ResourceHandleProto
impl Send for ResourceHandleProto
impl Sync for ResourceHandleProto
impl Unpin for ResourceHandleProto
impl UnwindSafe for ResourceHandleProto
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)