PyTorch
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs | Functions
ivalue.h File Reference
#include <ATen/core/DimVector.h>
#include <ATen/core/TensorBody.h>
#include <ATen/core/blob.h>
#include <ATen/core/custom_class.h>
#include <ATen/core/ivalue_to.h>
#include <ATen/core/jit_type_base.h>
#include <ATen/core/type_factory.h>
#include <c10/core/SymFloat.h>
#include <c10/macros/Export.h>
#include <c10/util/C++17.h>
#include <c10/util/MaybeOwned.h>
#include <c10/util/intrusive_ptr.h>
#include <typeindex>
#include <utility>
#include <ATen/core/ivalue_inl.h>

Go to the source code of this file.

Classes

class  torch::CustomClassHolder
 
struct  c10::ivalue::ComplexHolder
 
struct  c10::ivalue::StreamData3Holder
 
struct  c10::OptionalArray< T >
 
struct  c10::Capsule
 
struct  c10::IValue
 IValue (Interpreter Value) is a tagged union over the types supported by the TorchScript interpreter. More...
 
struct  c10::IValue::HashAliasedIValue
 
struct  c10::IValue::CompAliasedIValues
 
union  c10::IValue::Payload::TriviallyCopyablePayload
 
struct  c10::WeakIValue
 
struct  c10::StrongTypePtr
 
struct  c10::WeakTypePtr
 
struct  c10::WeakOrStrongCompilationUnit
 
struct  c10::WeakOrStrongTypePtr
 

Namespaces

namespace  torch
 
namespace  torch::jit
 
namespace  c10
 
namespace  c10::ivalue
 

Macros

#define TORCH_FORALL_TAGS(_)
 
#define DEFINE_CASE(x)
 
#define DEFINE_TAG(x)   x,
 

Typedefs

using c10::ClassTypePtr = std::shared_ptr< ClassType >
 
typedef std::function< bool(const IValue &a, const IValue &b)> c10::IValueComparator
 

Functions

bool c10::_fastEqualsForContainer (const IValue &lhs, const IValue &rhs)
 
torch::jit::Function * c10::checkObjectSortSchema (const c10::ClassTypePtr &t, std::stringstream &why_not)
 
IValueComparator c10::getLessThanComparator (const IValue &v)
 
IValueComparator c10::getGreaterThanComparator (const IValue &v)
 

Macro Definition Documentation

◆ DEFINE_CASE

#define DEFINE_CASE (   x)
Value:
case Tag::x: \
return #x;

◆ DEFINE_TAG

#define DEFINE_TAG (   x)    x,

◆ TORCH_FORALL_TAGS

#define TORCH_FORALL_TAGS (   _)
Value:
_(None) \
_(Tensor) \
_(Storage) \
_(Double) \
_(ComplexDouble) \
_(Int) \
_(SymInt) \
_(SymFloat) \
_(Bool) \
_(Tuple) \
_(String) \
_(Blob) \
_(GenericList) \
_(GenericDict) \
_(Future) \
_(Await) \
_(Device) \
_(Stream) \
_(Object) \
_(PyObject) \
_(Uninitialized) \
_(Capsule) \
_(RRef) \
_(Quantizer) \
_(Generator) \
_(Enum)