#pragma once // STOP!!! Thinking of including this header directly? Please // read Note [TH abstraction violation] #include // Should work with THStorageClass #include #include #include #include #include THC_API THCStorage* THCStorage_new(THCState* state, caffe2::TypeMeta); THC_API void THCStorage_retain(THCState *state, THCStorage *storage); THC_API void THCStorage_resize(THCState *state, THCStorage *storage, ptrdiff_t size); THC_API int THCStorage_getDevice(THCState* state, const THCStorage* storage); THC_API THCStorage* THCStorage_newWithDataAndAllocator( THCState *state, at::ScalarType scalar_type, at::DataPtr&& data, ptrdiff_t size, at::Allocator* allocator);