淘先锋技术网

首页 1 2 3 4 5 6 7
//aten\src\ATen\templates\TensorBody.h
Tensor: TensorBase
//aten\src\ATen\core\TensorBase.h
TensorBase{
c10::intrusive_ptr<TensorImpl, UndefinedTensorImpl> impl_;
}
//c10\core\TensorImpl.h
struct C10_API TensorImpl : public c10::intrusive_ptr_target{
Storage storage_;
}
//c10\core\Storage.h
struct C10_API Storage{
c10::intrusive_ptr<StorageImpl> storage_impl_;
}
//c10\core\StorageImpl.h
struct C10_API StorageImpl : public c10::intrusive_ptr_target{//应该是最底层的了
}