Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions
torch::OrderedDict< Key, Value >::Item Class Reference

Public Member Functions

 Item (Key key, Value value)
 Constructs a new item.
 
Value & operator* ()
 Returns a reference to the value.
 
const Value & operator* () const
 Returns a reference to the value.
 
Value * operator-> ()
 Allows access to the value using the arrow operator.
 
const Value * operator-> () const
 Allows access to the value using the arrow operator.
 
const Key & key () const noexcept
 Returns a reference to the key.
 
Value & value () noexcept
 Returns a reference to the value.
 
const Value & value () const noexcept
 Returns a reference to the value.
 
const std::pair< const Key, Value > & pair () const noexcept
 Returns a (key, value) pair.
 

Detailed Description

template<typename Key, typename Value>
class torch::OrderedDict< Key, Value >::Item

Definition at line 186 of file ordered_dict.h.


The documentation for this class was generated from the following file: