/
usr
/
local
/
lib64
/
python3.6
/
site-packages
/
torch
/
include
/
c10
/
core
/
/usr/local/lib64/python3.6/site-packages/torch/include/c10/core
mkdir
upload
Name
Size
Mode
Actions
impl/
-
0755
rm
Allocator.h
8725
0644
edit
dl
rm
AutogradState.h
994
0644
edit
dl
rm
Backend.h
8487
0644
edit
dl
rm
CompileTimeFunctionPointer.h
1677
0644
edit
dl
rm
CopyBytes.h
1229
0644
edit
dl
rm
CPUAllocator.h
2267
0644
edit
dl
rm
DefaultDtype.h
394
0644
edit
dl
rm
DefaultTensorOptions.h
1032
0644
edit
dl
rm
Device.h
5396
0644
edit
dl
rm
DeviceGuard.h
7555
0644
edit
dl
rm
DeviceType.h
2994
0644
edit
dl
rm
DispatchKey.h
18069
0644
edit
dl
rm
DispatchKeySet.h
12951
0644
edit
dl
rm
Event.h
4169
0644
edit
dl
rm
GeneratorImpl.h
3713
0644
edit
dl
rm
GradMode.h
1261
0644
edit
dl
rm
InferenceMode.h
3471
0644
edit
dl
rm
Layout.h
1225
0644
edit
dl
rm
MemoryFormat.h
8571
0644
edit
dl
rm
OptionalRef.h
521
0644
edit
dl
rm
QEngine.h
861
0644
edit
dl
rm
QScheme.h
1562
0644
edit
dl
rm
Scalar.h
6019
0644
edit
dl
rm
ScalarType.h
17073
0644
edit
dl
rm
ScalarTypeToTypeMeta.h
1365
0644
edit
dl
rm
Storage.h
4369
0644
edit
dl
rm
StorageImpl.h
5610
0644
edit
dl
rm
Stream.h
7373
0644
edit
dl
rm
StreamGuard.h
6315
0644
edit
dl
rm
TensorImpl.h
96152
0644
edit
dl
rm
TensorOptions.h
27593
0644
edit
dl
rm
thread_pool.h
2992
0644
edit
dl
rm
UndefinedTensorImpl.h
911
0644
edit
dl
rm
WrapDimMinimal.h
805
0644
edit
dl
rm
Edit:
/usr/local/lib64/python3.6/site-packages/torch/include/c10/core/CopyBytes.h
(1229B)
#pragma once #include <c10/core/Device.h> 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
Save
cmd:
run