Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions
c10::C10Tensor Class Referencefinal

This is a minimal Tensor class for use in c10 code. More...

#include <Tensor.h>

Public Member Functions

 C10Tensor (TensorImplPtr impl) noexcept
 
 C10Tensor (const C10Tensor &)=default
 
 C10Tensor (C10Tensor &&) noexcept=default
 
C10Tensoroperator= (const C10Tensor &)=default
 
C10Tensoroperator= (C10Tensor &&) noexcept=default
 
const TensorImplPtrimpl () const &noexcept
 
TensorImplPtr && impl ()&&noexcept
 
TensorTypeId type_id () const
 

Detailed Description

This is a minimal Tensor class for use in c10 code.

The plan on record is to eventually merge at::Tensor and caffe2::Tensor and move that merged class to c10, replacing this one.

At time of writing this, we couldn't do that yet, because their APIs are not clean enough to make it in c10 and because they have dependencies we want to avoid, for example at::Tensor depends on at::Type.

Definition at line 18 of file Tensor.h.


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