/usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/utils
NameSizeModeActions
auto_gil.h10340644editdlrm
byte_order.h24840644editdlrm
crash_handler.h11460644editdlrm
cuda_enabled.h1540644editdlrm
cuda_lazy_init.h9740644editdlrm
disable_torch_function.h8630644editdlrm
disallow_copy.h1030644editdlrm
init.h3240644editdlrm
invalid_arguments.h3020644editdlrm
memory.h11730644editdlrm
numpy_stub.h3990644editdlrm
object_ptr.h13290644editdlrm
out_types.h2940644editdlrm
pybind.h79660644editdlrm
pycfunction_helpers.h2090644editdlrm
python_arg_parser.h307530644editdlrm
python_compat.h29040644editdlrm
python_dispatch.h1740644editdlrm
python_numbers.h50640644editdlrm
python_scalars.h29280644editdlrm
python_strings.h45920644editdlrm
python_stub.h560644editdlrm
python_tuples.h6840644editdlrm
six.h14250644editdlrm
structseq.h1530644editdlrm
tensor_apply.h4310644editdlrm
tensor_dtypes.h2440644editdlrm
tensor_flatten.h27800644editdlrm
tensor_layouts.h1070644editdlrm
tensor_list.h1960644editdlrm
tensor_memoryformats.h1130644editdlrm
tensor_new.h18070644editdlrm
tensor_numpy.h5420644editdlrm
tensor_qschemes.h1860644editdlrm
tensor_types.h4910644editdlrm
throughput_benchmark-inl.h52100644editdlrm
throughput_benchmark.h68680644editdlrm
variadic.h43940644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/utils/byte_order.h (2484B)
#pragma once #include #include #include #include #include namespace torch { namespace utils { enum THPByteOrder { THP_LITTLE_ENDIAN = 0, THP_BIG_ENDIAN = 1 }; TORCH_API THPByteOrder THP_nativeByteOrder(); TORCH_API void THP_decodeInt16Buffer( int16_t* dst, const uint8_t* src, THPByteOrder order, size_t len); TORCH_API void THP_decodeInt32Buffer( int32_t* dst, const uint8_t* src, THPByteOrder order, size_t len); TORCH_API void THP_decodeInt64Buffer( int64_t* dst, const uint8_t* src, THPByteOrder order, size_t len); TORCH_API void THP_decodeHalfBuffer( THHalf* dst, const uint8_t* src, THPByteOrder order, size_t len); TORCH_API void THP_decodeFloatBuffer( float* dst, const uint8_t* src, THPByteOrder order, size_t len); TORCH_API void THP_decodeDoubleBuffer( double* dst, const uint8_t* src, THPByteOrder order, size_t len); TORCH_API void THP_decodeBoolBuffer( bool* dst, const uint8_t* src, THPByteOrder order, size_t len); TORCH_API void THP_decodeBFloat16Buffer( at::BFloat16* dst, const uint8_t* src, THPByteOrder order, size_t len); TORCH_API void THP_decodeComplexFloatBuffer( c10::complex* dst, const uint8_t* src, THPByteOrder order, size_t len); TORCH_API void THP_decodeComplexDoubleBuffer( c10::complex* dst, const uint8_t* src, THPByteOrder order, size_t len); TORCH_API void THP_encodeInt16Buffer( uint8_t* dst, const int16_t* src, THPByteOrder order, size_t len); TORCH_API void THP_encodeInt32Buffer( uint8_t* dst, const int32_t* src, THPByteOrder order, size_t len); TORCH_API void THP_encodeInt64Buffer( uint8_t* dst, const int64_t* src, THPByteOrder order, size_t len); TORCH_API void THP_encodeFloatBuffer( uint8_t* dst, const float* src, THPByteOrder order, size_t len); TORCH_API void THP_encodeDoubleBuffer( uint8_t* dst, const double* src, THPByteOrder order, size_t len); TORCH_API void THP_encodeComplexloatBuffer( uint8_t* dst, const c10::complex* src, THPByteOrder order, size_t len); TORCH_API void THP_encodeComplexDoubleBuffer( uint8_t* dst, const c10::complex* src, THPByteOrder order, size_t len); } // namespace utils } // namespace torch