Public Member Functions | |
IValue (const IValue &rhs) | |
IValue (IValue &&rhs) noexcept | |
IValue & | operator= (IValue &&rhs)&noexcept |
IValue & | operator= (IValue const &rhs)& |
void | dump () const |
bool | isAliasOf (const IValue &rhs) const |
void | swap (IValue &rhs) noexcept |
IValue (at::Tensor t) | |
bool | isTensor () const |
at::Tensor | toTensor ()&& |
at::Tensor | toTensor () const & |
const IValue & | toIValue () const |
IValue & | toIValue () |
IValue (intrusive_ptr< caffe2::Blob > blob) | |
bool | isBlob () const |
c10::intrusive_ptr< caffe2::Blob > | toBlob ()&& |
c10::intrusive_ptr< caffe2::Blob > | toBlob () const & |
IValue (c10::intrusive_ptr< ivalue::Tuple > v) | |
bool | isTuple () const |
c10::intrusive_ptr< ivalue::Tuple > | toTuple ()&& |
c10::intrusive_ptr< ivalue::Tuple > | toTuple () const & |
IValue (double d) | |
bool | isDouble () const |
double | toDouble () const |
IValue (c10::intrusive_ptr< ivalue::Future > v) | |
bool | isFuture () const |
c10::intrusive_ptr< ivalue::Future > | toFuture ()&& |
c10::intrusive_ptr< ivalue::Future > | toFuture () const & |
IValue (int64_t i) | |
IValue (int32_t i) | |
bool | isInt () const |
int64_t | toInt () const |
IValue (bool b) | |
bool | isBool () const |
bool | toBool () const |
IValue (c10::intrusive_ptr< ivalue::IntList > v) | |
IValue (std::vector< int64_t > v) | |
IValue (at::ArrayRef< int64_t > v) | |
bool | isIntList () const |
c10::intrusive_ptr< ivalue::IntList > | toIntList ()&& |
c10::intrusive_ptr< ivalue::IntList > | toIntList () const & |
const std::vector< int64_t > & | toIntListRef () const |
const std::vector< double > & | toDoubleListRef () const |
const std::vector< bool > & | toBoolListRef () const |
const std::vector< at::Tensor > & | toTensorListRef () const |
const std::vector< IValue > & | toGenericListRef () const |
const ivalue::UnorderedMap & | toGenericDictRef () const |
const std::string & | toStringRef () const |
IValue (c10::intrusive_ptr< ivalue::ConstantString > v) | |
IValue (std::string v) | |
bool | isString () const |
c10::intrusive_ptr< ivalue::ConstantString > | toString ()&& |
c10::intrusive_ptr< ivalue::ConstantString > | toString () const & |
IValue (c10::intrusive_ptr< ivalue::DoubleList > v) | |
IValue (std::vector< double > v) | |
bool | isDoubleList () const |
c10::intrusive_ptr< ivalue::DoubleList > | toDoubleList ()&& |
c10::intrusive_ptr< ivalue::DoubleList > | toDoubleList () const & |
IValue (c10::intrusive_ptr< ivalue::BoolList > v) | |
IValue (std::vector< bool > v) | |
bool | isBoolList () const |
c10::intrusive_ptr< ivalue::BoolList > | toBoolList ()&& |
c10::intrusive_ptr< ivalue::BoolList > | toBoolList () const & |
IValue (c10::intrusive_ptr< ivalue::TensorList > v) | |
IValue (std::vector< at::Tensor > v) | |
bool | isTensorList () const |
c10::intrusive_ptr< ivalue::TensorList > | toTensorList ()&& |
c10::intrusive_ptr< ivalue::TensorList > | toTensorList () const & |
IValue (c10::intrusive_ptr< ivalue::GenericList > v) | |
IValue (std::vector< IValue > v) | |
bool | isGenericList () const |
c10::intrusive_ptr< ivalue::GenericList > | toGenericList ()&& |
c10::intrusive_ptr< ivalue::GenericList > | toGenericList () const & |
IValue (c10::intrusive_ptr< ivalue::GenericDict > v) | |
IValue (ivalue::UnorderedMap v) | |
bool | isGenericDict () const |
c10::intrusive_ptr< ivalue::GenericDict > | toGenericDict ()&& |
c10::intrusive_ptr< ivalue::GenericDict > | toGenericDict () const & |
IValue (c10::intrusive_ptr< ivalue::Object > v) | |
bool | isObject () const |
c10::intrusive_ptr< ivalue::Object > | toObject ()&& |
c10::intrusive_ptr< ivalue::Object > | toObject () const & |
bool | isNone () const |
std::string | toNone () const |
IValue (at::Scalar s) | |
bool | isScalar () const |
at::Scalar | toScalar () const |
IValue (c10::Device d) | |
bool | isDevice () const |
c10::Device | toDevice () const |
at::ScalarType | toScalarType () const |
at::Layout | toLayout () const |
std::string | tagKind () const |
template<typename T > | |
T | to ()&& |
template<typename T > | |
T | to () const & |
template<typename T > | |
optional< T > | toOptional () |
bool | isSameIdentity (IValue &rhs) |
bool | isPtrType () const |
Friends | |
CAFFE2_API friend std::ostream & | operator<< (std::ostream &out, const IValue &v) |