Home
last modified time | relevance | path

Searched refs:UndefinedTensorImpl (Results 1 – 21 of 21) sorted by relevance

/external/pytorch/c10/core/
DUndefinedTensorImpl.cpp7 UndefinedTensorImpl::UndefinedTensorImpl() in UndefinedTensorImpl() function in c10::UndefinedTensorImpl
15 bool UndefinedTensorImpl::is_contiguous_custom(MemoryFormat format) const { in is_contiguous_custom()
18 IntArrayRef UndefinedTensorImpl::strides_custom() const { in strides_custom()
21 SymIntArrayRef UndefinedTensorImpl::sym_strides_custom() const { in sym_strides_custom()
26 bool UndefinedTensorImpl::has_storage() const { in has_storage()
33 void UndefinedTensorImpl::set_storage_offset(int64_t) { in set_storage_offset()
37 const char* UndefinedTensorImpl::tensorimpl_type_name() const { in tensorimpl_type_name()
42 UndefinedTensorImpl& UndefinedTensorImpl::getInstance() { in getInstance()
43 static UndefinedTensorImpl instance; in getInstance()
47 UndefinedTensorImpl UndefinedTensorImpl::_singleton;
DUndefinedTensorImpl.h12 struct C10_API UndefinedTensorImpl final : public TensorImpl {
40 UndefinedTensorImpl();
42 static UndefinedTensorImpl& getInstance();
44 static UndefinedTensorImpl _singleton;
/external/pytorch/aten/src/ATen/core/
DUnsafeFromTH.h7 …auto tensor_impl = c10::intrusive_ptr<TensorImpl, UndefinedTensorImpl>::reclaim(static_cast<Tensor… in unsafeTensorFromTH()
8 if (retain && tensor_impl.get() != UndefinedTensorImpl::singleton()) { in unsafeTensorFromTH()
Divalue.h224 payload.u.as_intrusive_ptr != c10::UndefinedTensorImpl::singleton()) { in IValue()
389 if (payload.u.as_intrusive_ptr == c10::UndefinedTensorImpl::singleton()) { in use_count()
1068 return payload.u.as_intrusive_ptr != c10::UndefinedTensorImpl::singleton() in internalToPointer()
1158 c10::UndefinedTensorImpl::singleton()); in null_to_undefined_tensor()
1196 c10::intrusive_ptr<intrusive_ptr_target, c10::UndefinedTensorImpl>:: in destroy()
1328 c10::UndefinedTensorImpl::singleton(); in isIntrusivePtrLegacyBehavior()
1386 payload.as_intrusive_ptr != c10::UndefinedTensorImpl::singleton()) { in WeakIValue()
1399 if (payload.as_intrusive_ptr != c10::UndefinedTensorImpl::singleton()) { in WeakIValue()
1409 payload.as_intrusive_ptr != c10::UndefinedTensorImpl::singleton()) { in ~WeakIValue()
1440 c10::weak_intrusive_ptr<at::TensorImpl, c10::UndefinedTensorImpl>:: in lock()
[all …]
DTensorBase.h91 : impl_(c10::intrusive_ptr<at::TensorImpl, UndefinedTensorImpl>::reclaim(rhs.impl_.get())) {} in TensorBase()
99 c10::intrusive_ptr<TensorImpl, UndefinedTensorImpl> tensor_impl) in TensorBase()
112 c10::intrusive_ptr<TensorImpl, UndefinedTensorImpl> tensor_impl) { in wrap_tensor_impl()
193 const c10::intrusive_ptr<TensorImpl, UndefinedTensorImpl>& getIntrusivePtr() const { in getIntrusivePtr()
197 c10::intrusive_ptr<TensorImpl, UndefinedTensorImpl> unsafeReleaseIntrusivePtr() { in unsafeReleaseIntrusivePtr()
917 c10::intrusive_ptr<TensorImpl, UndefinedTensorImpl> impl_;
Divalue_inl.h63 payload.u.as_intrusive_ptr == c10::UndefinedTensorImpl::singleton() in moveToIntrusivePtr()
71 if (payload.u.as_intrusive_ptr == c10::UndefinedTensorImpl::singleton()) { in toIntrusivePtr()
1682 …TORCH_INTERNAL_ASSERT_DEBUG_ONLY(payload.u.as_intrusive_ptr != c10::UndefinedTensorImpl::singleton…
1973 payload.u.as_intrusive_ptr != c10::UndefinedTensorImpl::singleton(),
1981 payload.u.as_intrusive_ptr != c10::UndefinedTensorImpl::singleton(),
1989 payload.u.as_intrusive_ptr != c10::UndefinedTensorImpl::singleton(),
2005 payload.u.as_intrusive_ptr != c10::UndefinedTensorImpl::singleton(),
2021 payload.u.as_intrusive_ptr != c10::UndefinedTensorImpl::singleton(),
2045 payload.u.as_intrusive_ptr != c10::UndefinedTensorImpl::singleton(),
2061 payload.u.as_intrusive_ptr != c10::UndefinedTensorImpl::singleton(),
[all …]
/external/pytorch/c10/util/
DExclusivelyOwnedTensorTraits.h36 const bool isUndefined = toDestroy == UndefinedTensorImpl::singleton(); in destroyOwned()
47 toDestroy == UndefinedTensorImpl::singleton()), in destroyOwned()
/external/pytorch/aten/src/ATen/test/
Dlazy_tensor_test.cpp7 c10::make_intrusive<c10::TensorImpl, c10::UndefinedTensorImpl>( in LazyTensorTest()
Dxla_tensor_test.cpp34 auto tensor_impl = c10::make_intrusive<TensorImpl, UndefinedTensorImpl>( in TEST()
Dundefined_tensor_test.cpp72 ASSERT_EQ(to_move.unsafeGetTensorImpl(), UndefinedTensorImpl::singleton()); in TEST()
Dextension_backend_test.cpp21 auto tensor_impl = c10::make_intrusive<TensorImpl, UndefinedTensorImpl>( in empty_override()
/external/pytorch/aten/src/ATen/
DCachedTensorUtils.cpp9 using weakref_type = c10::weak_intrusive_ptr<TensorImpl, UndefinedTensorImpl>;
Dautocast_mode.cpp36 using weakref_type = c10::weak_intrusive_ptr<TensorImpl, UndefinedTensorImpl>;
/external/pytorch/test/cpp_extensions/
Dmaia_extension.cpp9 auto tensor_impl = c10::make_intrusive<TensorImpl, UndefinedTensorImpl>( in get_tensor()
/external/pytorch/aten/src/ATen/templates/
DTensorBody.h107 c10::intrusive_ptr<TensorImpl, UndefinedTensorImpl> tensor_impl) in Tensor()
119 c10::intrusive_ptr<TensorImpl, UndefinedTensorImpl> tensor_impl) { in wrap_tensor_impl()
/external/executorch/extension/tensor/
Dtensor_impl_ptr.h43 c10::intrusive_ptr<executorch::aten::TensorImpl, at::UndefinedTensorImpl>;
/external/pytorch/torch/csrc/api/include/torch/optim/
Dserialize.h274 at::UndefinedTensorImpl::singleton())) { \
/external/pytorch/functorch/csrc/dim/
Darena.h246 … c10::intrusive_ptr<at::TensorImpl, at::UndefinedTensorImpl>::reclaim(t->unsafeGetTensorImpl());
/external/pytorch/torch/csrc/
DPyInterpreter.cpp198 c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>::
937 Tensor(c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>:: in reset_backward_hooks()
/external/pytorch/torch/csrc/jit/python/
Dinit.cpp1598 c10::make_intrusive<at::TensorImpl, at::UndefinedTensorImpl>( in initJITBindings()
1630 c10::make_intrusive<at::TensorImpl, at::UndefinedTensorImpl>( in initJITBindings()
/external/pytorch/torch/csrc/autograd/
Dpython_variable.cpp2346 auto p = c10::intrusive_ptr<c10::TensorImpl, at::UndefinedTensorImpl>:: in initTensorImplConversion()