/usr/local/lib64/python3.6/site-packages/torch/include/c10/core
NameSizeModeActions
impl/-0755rm
Allocator.h87250644editdlrm
AutogradState.h9940644editdlrm
Backend.h84870644editdlrm
CompileTimeFunctionPointer.h16770644editdlrm
CopyBytes.h12290644editdlrm
CPUAllocator.h22670644editdlrm
DefaultDtype.h3940644editdlrm
DefaultTensorOptions.h10320644editdlrm
Device.h53960644editdlrm
DeviceGuard.h75550644editdlrm
DeviceType.h29940644editdlrm
DispatchKey.h180690644editdlrm
DispatchKeySet.h129510644editdlrm
Event.h41690644editdlrm
GeneratorImpl.h37130644editdlrm
GradMode.h12610644editdlrm
InferenceMode.h34710644editdlrm
Layout.h12250644editdlrm
MemoryFormat.h85710644editdlrm
OptionalRef.h5210644editdlrm
QEngine.h8610644editdlrm
QScheme.h15620644editdlrm
Scalar.h60190644editdlrm
ScalarType.h170730644editdlrm
ScalarTypeToTypeMeta.h13650644editdlrm
Storage.h43690644editdlrm
StorageImpl.h56100644editdlrm
Stream.h73730644editdlrm
StreamGuard.h63150644editdlrm
TensorImpl.h961520644editdlrm
TensorOptions.h275930644editdlrm
thread_pool.h29920644editdlrm
UndefinedTensorImpl.h9110644editdlrm
WrapDimMinimal.h8050644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/c10/core/CopyBytes.h (1229B)
#pragma once #include namespace c10 { using CopyBytesFunction = void (*)( size_t nbytes, const void* src, Device src_device, void* dst, Device dst_device); struct C10_API _CopyBytesFunctionRegisterer { _CopyBytesFunctionRegisterer( DeviceType from, DeviceType to, CopyBytesFunction func_sync, CopyBytesFunction func_async = nullptr); }; #define REGISTER_COPY_BYTES_FUNCTION(from, to, ...) \ namespace { \ static _CopyBytesFunctionRegisterer C10_ANONYMOUS_VARIABLE( \ g_copy_function)(from, to, __VA_ARGS__); \ } /* * WARNING: Implementations for this function are currently registered from * ATen and caffe2, not yet from c10. Don't use this if not either ATen * or caffe2 is present as well. * We can't move them yet, because the CUDA implementations aren't unified yet * between ATen and caffe2. * We're planning to move the implementations into c10/backend/xxx * to make c10 self contained again. */ C10_API void CopyBytes( size_t nbytes, const void* src, Device src_device, void* dst, Device dst_device, bool async); } // namespace c10