Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- videollama2/lib/python3.10/site-packages/cmake_modules/FindAWSSDKAlt.cmake +50 -0
- videollama2/lib/python3.10/site-packages/cmake_modules/FindBrotliAlt.cmake +165 -0
- videollama2/lib/python3.10/site-packages/cmake_modules/FindClangTools.cmake +122 -0
- videollama2/lib/python3.10/site-packages/cmake_modules/FindLLVMAlt.cmake +133 -0
- videollama2/lib/python3.10/site-packages/cmake_modules/FindProtobufAlt.cmake +54 -0
- videollama2/lib/python3.10/site-packages/cmake_modules/FindRapidJSONAlt.cmake +94 -0
- videollama2/lib/python3.10/site-packages/cmake_modules/Findlz4Alt.cmake +106 -0
- videollama2/lib/python3.10/site-packages/cmake_modules/FindorcAlt.cmake +75 -0
- videollama2/lib/python3.10/site-packages/cmake_modules/Findre2Alt.cmake +93 -0
- videollama2/lib/python3.10/site-packages/cmake_modules/FindzstdAlt.cmake +142 -0
- videollama2/lib/python3.10/site-packages/sklearn/datasets/images/china.jpg +3 -0
- videollama2/lib/python3.10/site-packages/sklearn/datasets/tests/data/openml/id_61/api-v1-jd-61.json.gz +3 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_amp_update_scale_native.h +24 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_embedding_bag_backward_cuda_dispatch.h +24 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_foreach_ceil_native.h +25 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_foreach_log10_compositeexplicitautograd_dispatch.h +26 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_foreach_tanh_compositeexplicitautograd_dispatch.h +26 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_jagged_to_padded_dense_forward_cuda_dispatch.h +24 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_linalg_solve_ex_native.h +23 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_padded_dense_to_jagged_forward.h +47 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_sparse_log_softmax.h +49 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_sparse_softmax_backward_data_ops.h +39 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_validate_sparse_bsc_tensor_args_compositeimplicitautograd_dispatch.h +23 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/adaptive_avg_pool3d_backward.h +34 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/addr.h +39 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/bilinear_native.h +21 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/bmm_cpu_dispatch.h +25 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/ccol_indices_copy_ops.h +39 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/coalesce.h +26 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/cross_entropy_loss.h +47 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/cudnn_convolution_add_relu_cuda_dispatch.h +24 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/cummin_ops.h +61 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/cumprod_meta.h +27 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/div_compositeexplicitautograd_dispatch.h +30 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/embedding_bag_compositeimplicitautograd_dispatch.h +24 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/empty_quantized_native.h +22 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/expand_as_ops.h +28 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/exponential.h +39 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/fbgemm_linear_fp16_weight_ops.h +28 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/fft_fft2_ops.h +39 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/fft_rfftfreq.h +43 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/gather_cpu_dispatch.h +25 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/hardshrink_backward_meta.h +27 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/is_complex_native.h +21 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/lgamma_meta.h +27 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/linalg_matrix_rank_compositeimplicitautograd_dispatch.h +34 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/linalg_vecdot_compositeimplicitautograd_dispatch.h +25 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/linear_compositeexplicitautograd_dispatch.h +24 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/log10_cuda_dispatch.h +26 -0
- vllm/lib/python3.10/site-packages/torch/include/ATen/ops/log10_native.h +23 -0
videollama2/lib/python3.10/site-packages/cmake_modules/FindAWSSDKAlt.cmake
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Licensed to the Apache Software Foundation (ASF) under one
|
| 2 |
+
# or more contributor license agreements. See the NOTICE file
|
| 3 |
+
# distributed with this work for additional information
|
| 4 |
+
# regarding copyright ownership. The ASF licenses this file
|
| 5 |
+
# to you under the Apache License, Version 2.0 (the
|
| 6 |
+
# "License"); you may not use this file except in compliance
|
| 7 |
+
# with the License. You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing,
|
| 12 |
+
# software distributed under the License is distributed on an
|
| 13 |
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
| 14 |
+
# KIND, either express or implied. See the License for the
|
| 15 |
+
# specific language governing permissions and limitations
|
| 16 |
+
# under the License.
|
| 17 |
+
|
| 18 |
+
set(find_package_args)
|
| 19 |
+
if(AWSSDKAlt_FIND_VERSION)
|
| 20 |
+
list(APPEND find_package_args ${AWSSDKAlt_FIND_VERSION})
|
| 21 |
+
endif()
|
| 22 |
+
if(AWSSDKAlt_FIND_QUIETLY)
|
| 23 |
+
list(APPEND find_package_args QUIET)
|
| 24 |
+
endif()
|
| 25 |
+
# See https://aws.amazon.com/blogs/developer/developer-experience-of-the-aws-sdk-for-c-now-simplified-by-cmake/
|
| 26 |
+
# Workaround to force AWS CMake configuration to look for shared libraries
|
| 27 |
+
if(DEFINED ENV{CONDA_PREFIX})
|
| 28 |
+
if(DEFINED BUILD_SHARED_LIBS)
|
| 29 |
+
set(BUILD_SHARED_LIBS_WAS_SET TRUE)
|
| 30 |
+
set(BUILD_SHARED_LIBS_KEEP ${BUILD_SHARED_LIBS})
|
| 31 |
+
else()
|
| 32 |
+
set(BUILD_SHARED_LIBS_WAS_SET FALSE)
|
| 33 |
+
endif()
|
| 34 |
+
set(BUILD_SHARED_LIBS ON)
|
| 35 |
+
endif()
|
| 36 |
+
find_package(AWSSDK ${find_package_args}
|
| 37 |
+
COMPONENTS config
|
| 38 |
+
s3
|
| 39 |
+
transfer
|
| 40 |
+
identity-management
|
| 41 |
+
sts)
|
| 42 |
+
# Restore previous value of BUILD_SHARED_LIBS
|
| 43 |
+
if(DEFINED ENV{CONDA_PREFIX})
|
| 44 |
+
if(BUILD_SHARED_LIBS_WAS_SET)
|
| 45 |
+
set(BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS_KEEP})
|
| 46 |
+
else()
|
| 47 |
+
unset(BUILD_SHARED_LIBS)
|
| 48 |
+
endif()
|
| 49 |
+
endif()
|
| 50 |
+
set(AWSSDKAlt_FOUND ${AWSSDK_FOUND})
|
videollama2/lib/python3.10/site-packages/cmake_modules/FindBrotliAlt.cmake
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 3 |
+
# you may not use this file except in compliance with the License.
|
| 4 |
+
# You may obtain a copy of the License at
|
| 5 |
+
#
|
| 6 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 7 |
+
#
|
| 8 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 9 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 10 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 11 |
+
# See the License for the specific language governing permissions and
|
| 12 |
+
# limitations under the License.
|
| 13 |
+
#
|
| 14 |
+
# Tries to find Brotli headers and libraries.
|
| 15 |
+
#
|
| 16 |
+
# Usage of this module as follows:
|
| 17 |
+
#
|
| 18 |
+
# find_package(BrotliAlt)
|
| 19 |
+
|
| 20 |
+
if(BrotliAlt_FOUND)
|
| 21 |
+
return()
|
| 22 |
+
endif()
|
| 23 |
+
|
| 24 |
+
if(ARROW_PACKAGE_KIND STREQUAL "vcpkg" OR ARROW_PACKAGE_KIND STREQUAL "conan")
|
| 25 |
+
set(find_package_args "")
|
| 26 |
+
if(BrotliAlt_FIND_VERSION)
|
| 27 |
+
list(APPEND find_package_args ${BrotliAlt_FIND_VERSION})
|
| 28 |
+
endif()
|
| 29 |
+
if(BrotliAlt_FIND_QUIETLY)
|
| 30 |
+
list(APPEND find_package_args QUIET)
|
| 31 |
+
endif()
|
| 32 |
+
if(BrotliAlt_FIND_REQUIRED)
|
| 33 |
+
list(APPEND find_package_args REQUIRED)
|
| 34 |
+
endif()
|
| 35 |
+
if(ARROW_PACKAGE_KIND STREQUAL "vcpkg")
|
| 36 |
+
find_package(BrotliAlt NAMES unofficial-brotli ${find_package_args})
|
| 37 |
+
else()
|
| 38 |
+
find_package(BrotliAlt NAMES brotli ${find_package_args})
|
| 39 |
+
endif()
|
| 40 |
+
set(Brotli_FOUND ${BrotliAlt_FOUND})
|
| 41 |
+
if(BrotliAlt_FOUND)
|
| 42 |
+
if(ARROW_PACKAGE_KIND STREQUAL "vcpkg")
|
| 43 |
+
add_library(Brotli::brotlicommon ALIAS unofficial::brotli::brotlicommon)
|
| 44 |
+
add_library(Brotli::brotlienc ALIAS unofficial::brotli::brotlienc)
|
| 45 |
+
add_library(Brotli::brotlidec ALIAS unofficial::brotli::brotlidec)
|
| 46 |
+
else()
|
| 47 |
+
add_library(Brotli::brotlicommon ALIAS brotli::brotlicommon)
|
| 48 |
+
add_library(Brotli::brotlienc ALIAS brotli::brotlienc)
|
| 49 |
+
add_library(Brotli::brotlidec ALIAS brotli::brotlidec)
|
| 50 |
+
endif()
|
| 51 |
+
return()
|
| 52 |
+
endif()
|
| 53 |
+
endif()
|
| 54 |
+
|
| 55 |
+
if(ARROW_BROTLI_USE_SHARED)
|
| 56 |
+
set(BROTLI_COMMON_LIB_NAMES
|
| 57 |
+
brotlicommon
|
| 58 |
+
${CMAKE_SHARED_LIBRARY_PREFIX}brotlicommon${CMAKE_SHARED_LIBRARY_SUFFIX})
|
| 59 |
+
|
| 60 |
+
set(BROTLI_ENC_LIB_NAMES
|
| 61 |
+
brotlienc ${CMAKE_SHARED_LIBRARY_PREFIX}brotlienc${CMAKE_SHARED_LIBRARY_SUFFIX})
|
| 62 |
+
|
| 63 |
+
set(BROTLI_DEC_LIB_NAMES
|
| 64 |
+
brotlidec ${CMAKE_SHARED_LIBRARY_PREFIX}brotlidec${CMAKE_SHARED_LIBRARY_SUFFIX})
|
| 65 |
+
else()
|
| 66 |
+
set(BROTLI_COMMON_LIB_NAMES
|
| 67 |
+
brotlicommon-static
|
| 68 |
+
${CMAKE_STATIC_LIBRARY_PREFIX}brotlicommon-static${CMAKE_STATIC_LIBRARY_SUFFIX}
|
| 69 |
+
${CMAKE_STATIC_LIBRARY_PREFIX}brotlicommon_static${CMAKE_STATIC_LIBRARY_SUFFIX}
|
| 70 |
+
${CMAKE_STATIC_LIBRARY_PREFIX}brotlicommon${CMAKE_STATIC_LIBRARY_SUFFIX})
|
| 71 |
+
|
| 72 |
+
set(BROTLI_ENC_LIB_NAMES
|
| 73 |
+
brotlienc-static
|
| 74 |
+
${CMAKE_STATIC_LIBRARY_PREFIX}brotlienc-static${CMAKE_STATIC_LIBRARY_SUFFIX}
|
| 75 |
+
${CMAKE_STATIC_LIBRARY_PREFIX}brotlienc_static${CMAKE_STATIC_LIBRARY_SUFFIX}
|
| 76 |
+
${CMAKE_STATIC_LIBRARY_PREFIX}brotlienc${CMAKE_STATIC_LIBRARY_SUFFIX})
|
| 77 |
+
|
| 78 |
+
set(BROTLI_DEC_LIB_NAMES
|
| 79 |
+
brotlidec-static
|
| 80 |
+
${CMAKE_STATIC_LIBRARY_PREFIX}brotlidec-static${CMAKE_STATIC_LIBRARY_SUFFIX}
|
| 81 |
+
${CMAKE_STATIC_LIBRARY_PREFIX}brotlidec_static${CMAKE_STATIC_LIBRARY_SUFFIX}
|
| 82 |
+
${CMAKE_STATIC_LIBRARY_PREFIX}brotlidec${CMAKE_STATIC_LIBRARY_SUFFIX})
|
| 83 |
+
endif()
|
| 84 |
+
|
| 85 |
+
if(BROTLI_ROOT)
|
| 86 |
+
find_library(BROTLI_COMMON_LIBRARY
|
| 87 |
+
NAMES ${BROTLI_COMMON_LIB_NAMES}
|
| 88 |
+
PATHS ${BROTLI_ROOT}
|
| 89 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES}
|
| 90 |
+
NO_DEFAULT_PATH)
|
| 91 |
+
find_library(BROTLI_ENC_LIBRARY
|
| 92 |
+
NAMES ${BROTLI_ENC_LIB_NAMES}
|
| 93 |
+
PATHS ${BROTLI_ROOT}
|
| 94 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES}
|
| 95 |
+
NO_DEFAULT_PATH)
|
| 96 |
+
find_library(BROTLI_DEC_LIBRARY
|
| 97 |
+
NAMES ${BROTLI_DEC_LIB_NAMES}
|
| 98 |
+
PATHS ${BROTLI_ROOT}
|
| 99 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES}
|
| 100 |
+
NO_DEFAULT_PATH)
|
| 101 |
+
find_path(BROTLI_INCLUDE_DIR
|
| 102 |
+
NAMES brotli/decode.h
|
| 103 |
+
PATHS ${BROTLI_ROOT}
|
| 104 |
+
PATH_SUFFIXES ${ARROW_INCLUDE_PATH_SUFFIXES}
|
| 105 |
+
NO_DEFAULT_PATH)
|
| 106 |
+
else()
|
| 107 |
+
find_package(PkgConfig QUIET)
|
| 108 |
+
pkg_check_modules(BROTLI_PC libbrotlicommon libbrotlienc libbrotlidec)
|
| 109 |
+
if(BROTLI_PC_FOUND)
|
| 110 |
+
set(BROTLI_INCLUDE_DIR "${BROTLI_PC_libbrotlicommon_INCLUDEDIR}")
|
| 111 |
+
|
| 112 |
+
# Some systems (e.g. Fedora) don't fill Brotli_LIBRARY_DIRS, so add the other dirs here.
|
| 113 |
+
list(APPEND BROTLI_PC_LIBRARY_DIRS "${BROTLI_PC_libbrotlicommon_LIBDIR}")
|
| 114 |
+
list(APPEND BROTLI_PC_LIBRARY_DIRS "${BROTLI_PC_libbrotlienc_LIBDIR}")
|
| 115 |
+
list(APPEND BROTLI_PC_LIBRARY_DIRS "${BROTLI_PC_libbrotlidec_LIBDIR}")
|
| 116 |
+
|
| 117 |
+
find_library(BROTLI_COMMON_LIBRARY
|
| 118 |
+
NAMES ${BROTLI_COMMON_LIB_NAMES}
|
| 119 |
+
PATHS ${BROTLI_PC_LIBRARY_DIRS}
|
| 120 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES}
|
| 121 |
+
NO_DEFAULT_PATH)
|
| 122 |
+
find_library(BROTLI_ENC_LIBRARY
|
| 123 |
+
NAMES ${BROTLI_ENC_LIB_NAMES}
|
| 124 |
+
PATHS ${BROTLI_PC_LIBRARY_DIRS}
|
| 125 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES}
|
| 126 |
+
NO_DEFAULT_PATH)
|
| 127 |
+
find_library(BROTLI_DEC_LIBRARY
|
| 128 |
+
NAMES ${BROTLI_DEC_LIB_NAMES}
|
| 129 |
+
PATHS ${BROTLI_PC_LIBRARY_DIRS}
|
| 130 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES}
|
| 131 |
+
NO_DEFAULT_PATH)
|
| 132 |
+
else()
|
| 133 |
+
find_library(BROTLI_COMMON_LIBRARY
|
| 134 |
+
NAMES ${BROTLI_COMMON_LIB_NAMES}
|
| 135 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES})
|
| 136 |
+
find_library(BROTLI_ENC_LIBRARY
|
| 137 |
+
NAMES ${BROTLI_ENC_LIB_NAMES}
|
| 138 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES})
|
| 139 |
+
find_library(BROTLI_DEC_LIBRARY
|
| 140 |
+
NAMES ${BROTLI_DEC_LIB_NAMES}
|
| 141 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES})
|
| 142 |
+
find_path(BROTLI_INCLUDE_DIR
|
| 143 |
+
NAMES brotli/decode.h
|
| 144 |
+
PATH_SUFFIXES ${ARROW_INCLUDE_PATH_SUFFIXES})
|
| 145 |
+
endif()
|
| 146 |
+
endif()
|
| 147 |
+
|
| 148 |
+
find_package_handle_standard_args(
|
| 149 |
+
BrotliAlt REQUIRED_VARS BROTLI_COMMON_LIBRARY BROTLI_ENC_LIBRARY BROTLI_DEC_LIBRARY
|
| 150 |
+
BROTLI_INCLUDE_DIR)
|
| 151 |
+
set(Brotli_FOUND ${BrotliAlt_FOUND})
|
| 152 |
+
if(BrotliAlt_FOUND)
|
| 153 |
+
add_library(Brotli::brotlicommon UNKNOWN IMPORTED)
|
| 154 |
+
set_target_properties(Brotli::brotlicommon
|
| 155 |
+
PROPERTIES IMPORTED_LOCATION "${BROTLI_COMMON_LIBRARY}"
|
| 156 |
+
INTERFACE_INCLUDE_DIRECTORIES "${BROTLI_INCLUDE_DIR}")
|
| 157 |
+
add_library(Brotli::brotlienc UNKNOWN IMPORTED)
|
| 158 |
+
set_target_properties(Brotli::brotlienc
|
| 159 |
+
PROPERTIES IMPORTED_LOCATION "${BROTLI_ENC_LIBRARY}"
|
| 160 |
+
INTERFACE_INCLUDE_DIRECTORIES "${BROTLI_INCLUDE_DIR}")
|
| 161 |
+
add_library(Brotli::brotlidec UNKNOWN IMPORTED)
|
| 162 |
+
set_target_properties(Brotli::brotlidec
|
| 163 |
+
PROPERTIES IMPORTED_LOCATION "${BROTLI_DEC_LIBRARY}"
|
| 164 |
+
INTERFACE_INCLUDE_DIRECTORIES "${BROTLI_INCLUDE_DIR}")
|
| 165 |
+
endif()
|
videollama2/lib/python3.10/site-packages/cmake_modules/FindClangTools.cmake
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 3 |
+
# you may not use this file except in compliance with the License.
|
| 4 |
+
# You may obtain a copy of the License at
|
| 5 |
+
#
|
| 6 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 7 |
+
#
|
| 8 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 9 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 10 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 11 |
+
# See the License for the specific language governing permissions and
|
| 12 |
+
# limitations under the License.
|
| 13 |
+
#
|
| 14 |
+
# Tries to find the clang-tidy and clang-format modules
|
| 15 |
+
#
|
| 16 |
+
# Usage of this module as follows:
|
| 17 |
+
#
|
| 18 |
+
# find_package(ClangTools)
|
| 19 |
+
#
|
| 20 |
+
# Variables used by this module which can change the default behaviour and need
|
| 21 |
+
# to be set before calling find_package:
|
| 22 |
+
#
|
| 23 |
+
# CLANG_FORMAT_VERSION -
|
| 24 |
+
# The version of clang-format to find. If this is not specified, clang-format
|
| 25 |
+
# will not be searched for.
|
| 26 |
+
#
|
| 27 |
+
# ClangTools_PATH -
|
| 28 |
+
# When set, this path is inspected in addition to standard library binary locations
|
| 29 |
+
# to find clang-tidy and clang-format
|
| 30 |
+
#
|
| 31 |
+
# This module defines
|
| 32 |
+
# CLANG_TIDY_BIN, The path to the clang tidy binary
|
| 33 |
+
# CLANG_TIDY_FOUND, Whether clang tidy was found
|
| 34 |
+
# CLANG_FORMAT_BIN, The path to the clang format binary
|
| 35 |
+
# CLANG_FORMAT_FOUND, Whether clang format was found
|
| 36 |
+
|
| 37 |
+
set(CLANG_TOOLS_SEARCH_PATHS
|
| 38 |
+
${ClangTools_PATH}
|
| 39 |
+
$ENV{CLANG_TOOLS_PATH}
|
| 40 |
+
/usr/local/bin
|
| 41 |
+
/usr/bin
|
| 42 |
+
"C:/Program Files/LLVM/bin" # Windows, non-conda
|
| 43 |
+
"$ENV{CONDA_PREFIX}/Library/bin" # Windows, conda
|
| 44 |
+
"$ENV{CONDA_PREFIX}/bin") # Unix, conda
|
| 45 |
+
if(APPLE)
|
| 46 |
+
find_program(BREW brew)
|
| 47 |
+
if(BREW)
|
| 48 |
+
execute_process(COMMAND ${BREW} --prefix "llvm@${ARROW_CLANG_TOOLS_VERSION_MAJOR}"
|
| 49 |
+
OUTPUT_VARIABLE CLANG_TOOLS_BREW_PREFIX
|
| 50 |
+
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
| 51 |
+
if(NOT CLANG_TOOLS_BREW_PREFIX)
|
| 52 |
+
execute_process(COMMAND ${BREW} --prefix llvm
|
| 53 |
+
OUTPUT_VARIABLE CLANG_TOOLS_BREW_PREFIX
|
| 54 |
+
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
| 55 |
+
endif()
|
| 56 |
+
if(CLANG_TOOLS_BREW_PREFIX)
|
| 57 |
+
list(APPEND CLANG_TOOLS_SEARCH_PATHS "${CLANG_TOOLS_BREW_PREFIX}/bin")
|
| 58 |
+
endif()
|
| 59 |
+
endif()
|
| 60 |
+
endif()
|
| 61 |
+
|
| 62 |
+
function(FIND_CLANG_TOOL NAME OUTPUT VERSION_CHECK_PATTERN)
|
| 63 |
+
unset(CLANG_TOOL_BIN CACHE)
|
| 64 |
+
find_program(CLANG_TOOL_BIN
|
| 65 |
+
NAMES ${NAME}-${ARROW_CLANG_TOOLS_VERSION}
|
| 66 |
+
${NAME}-${ARROW_CLANG_TOOLS_VERSION_MAJOR}
|
| 67 |
+
PATHS ${CLANG_TOOLS_SEARCH_PATHS}
|
| 68 |
+
NO_DEFAULT_PATH)
|
| 69 |
+
if(NOT CLANG_TOOL_BIN)
|
| 70 |
+
# try searching for non-versioned tool and check the version
|
| 71 |
+
find_program(CLANG_TOOL_BIN
|
| 72 |
+
NAMES ${NAME}
|
| 73 |
+
PATHS ${CLANG_TOOLS_SEARCH_PATHS}
|
| 74 |
+
NO_DEFAULT_PATH)
|
| 75 |
+
if(CLANG_TOOL_BIN)
|
| 76 |
+
unset(CLANG_TOOL_VERSION_MESSAGE)
|
| 77 |
+
execute_process(COMMAND ${CLANG_TOOL_BIN} "-version"
|
| 78 |
+
OUTPUT_VARIABLE CLANG_TOOL_VERSION_MESSAGE
|
| 79 |
+
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
| 80 |
+
if(NOT (${CLANG_TOOL_VERSION_MESSAGE} MATCHES ${VERSION_CHECK_PATTERN}))
|
| 81 |
+
message(STATUS "${NAME} found, but version did not match \"${VERSION_CHECK_PATTERN}\""
|
| 82 |
+
)
|
| 83 |
+
set(CLANG_TOOL_BIN "CLANG_TOOL_BIN-NOTFOUND")
|
| 84 |
+
endif()
|
| 85 |
+
endif()
|
| 86 |
+
endif()
|
| 87 |
+
if(CLANG_TOOL_BIN)
|
| 88 |
+
set(${OUTPUT}
|
| 89 |
+
${CLANG_TOOL_BIN}
|
| 90 |
+
PARENT_SCOPE)
|
| 91 |
+
else()
|
| 92 |
+
set(${OUTPUT}
|
| 93 |
+
"${OUTPUT}-NOTFOUND"
|
| 94 |
+
PARENT_SCOPE)
|
| 95 |
+
endif()
|
| 96 |
+
endfunction()
|
| 97 |
+
|
| 98 |
+
string(REGEX REPLACE "\\." "\\\\." ARROW_CLANG_TOOLS_VERSION_ESCAPED
|
| 99 |
+
"${ARROW_CLANG_TOOLS_VERSION}")
|
| 100 |
+
|
| 101 |
+
find_clang_tool(clang-tidy CLANG_TIDY_BIN
|
| 102 |
+
"LLVM version ${ARROW_CLANG_TOOLS_VERSION_ESCAPED}")
|
| 103 |
+
if(CLANG_TIDY_BIN)
|
| 104 |
+
set(CLANG_TIDY_FOUND 1)
|
| 105 |
+
message(STATUS "clang-tidy found at ${CLANG_TIDY_BIN}")
|
| 106 |
+
else()
|
| 107 |
+
set(CLANG_TIDY_FOUND 0)
|
| 108 |
+
message(STATUS "clang-tidy ${ARROW_CLANG_TOOLS_VERSION} not found")
|
| 109 |
+
endif()
|
| 110 |
+
|
| 111 |
+
find_clang_tool(clang-format CLANG_FORMAT_BIN
|
| 112 |
+
"clang-format version ${ARROW_CLANG_TOOLS_VERSION_ESCAPED}")
|
| 113 |
+
if(CLANG_FORMAT_BIN)
|
| 114 |
+
set(CLANG_FORMAT_FOUND 1)
|
| 115 |
+
message(STATUS "clang-format found at ${CLANG_FORMAT_BIN}")
|
| 116 |
+
else()
|
| 117 |
+
set(CLANG_FORMAT_FOUND 0)
|
| 118 |
+
message(STATUS "clang-format ${ARROW_CLANG_TOOLS_VERSION} not found")
|
| 119 |
+
endif()
|
| 120 |
+
|
| 121 |
+
find_package_handle_standard_args(ClangTools REQUIRED_VARS CLANG_FORMAT_BIN
|
| 122 |
+
CLANG_TIDY_BIN)
|
videollama2/lib/python3.10/site-packages/cmake_modules/FindLLVMAlt.cmake
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Licensed to the Apache Software Foundation (ASF) under one
|
| 2 |
+
# or more contributor license agreements. See the NOTICE file
|
| 3 |
+
# distributed with this work for additional information
|
| 4 |
+
# regarding copyright ownership. The ASF licenses this file
|
| 5 |
+
# to you under the Apache License, Version 2.0 (the
|
| 6 |
+
# "License"); you may not use this file except in compliance
|
| 7 |
+
# with the License. You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing,
|
| 12 |
+
# software distributed under the License is distributed on an
|
| 13 |
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
| 14 |
+
# KIND, either express or implied. See the License for the
|
| 15 |
+
# specific language governing permissions and limitations
|
| 16 |
+
# under the License.
|
| 17 |
+
#
|
| 18 |
+
# Usage of this module as follows:
|
| 19 |
+
#
|
| 20 |
+
# find_package(LLVMAlt)
|
| 21 |
+
|
| 22 |
+
if(LLVMAlt_FOUND)
|
| 23 |
+
return()
|
| 24 |
+
endif()
|
| 25 |
+
|
| 26 |
+
if(DEFINED LLVM_ROOT)
|
| 27 |
+
# if llvm source is set to conda then prefer conda llvm over system llvm even
|
| 28 |
+
# if the system one is newer
|
| 29 |
+
foreach(ARROW_LLVM_VERSION ${ARROW_LLVM_VERSIONS})
|
| 30 |
+
find_package(LLVM
|
| 31 |
+
${ARROW_LLVM_VERSION}
|
| 32 |
+
CONFIG
|
| 33 |
+
NO_DEFAULT_PATH
|
| 34 |
+
HINTS
|
| 35 |
+
${LLVM_ROOT})
|
| 36 |
+
if(LLVM_FOUND)
|
| 37 |
+
break()
|
| 38 |
+
endif()
|
| 39 |
+
endforeach()
|
| 40 |
+
endif()
|
| 41 |
+
|
| 42 |
+
if(NOT LLVM_FOUND)
|
| 43 |
+
foreach(ARROW_LLVM_VERSION ${ARROW_LLVM_VERSIONS})
|
| 44 |
+
set(LLVM_HINTS ${LLVM_ROOT} ${LLVM_DIR} /usr/lib /usr/share)
|
| 45 |
+
|
| 46 |
+
if(APPLE)
|
| 47 |
+
find_program(BREW brew)
|
| 48 |
+
if(BREW)
|
| 49 |
+
string(REGEX REPLACE "^([0-9]+)(\\..+)?" "\\1" ARROW_LLVM_VERSION_MAJOR
|
| 50 |
+
"${ARROW_LLVM_VERSION}")
|
| 51 |
+
execute_process(COMMAND ${BREW} --prefix "llvm@${ARROW_LLVM_VERSION_MAJOR}"
|
| 52 |
+
OUTPUT_VARIABLE LLVM_BREW_PREFIX
|
| 53 |
+
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
| 54 |
+
list(APPEND LLVM_HINTS ${LLVM_BREW_PREFIX})
|
| 55 |
+
endif()
|
| 56 |
+
endif()
|
| 57 |
+
|
| 58 |
+
find_package(LLVM
|
| 59 |
+
${ARROW_LLVM_VERSION}
|
| 60 |
+
CONFIG
|
| 61 |
+
HINTS
|
| 62 |
+
${LLVM_HINTS})
|
| 63 |
+
|
| 64 |
+
if(LLVM_FOUND)
|
| 65 |
+
break()
|
| 66 |
+
endif()
|
| 67 |
+
endforeach()
|
| 68 |
+
endif()
|
| 69 |
+
|
| 70 |
+
if(LLVM_FOUND)
|
| 71 |
+
find_program(LLVM_LINK_EXECUTABLE llvm-link HINTS ${LLVM_TOOLS_BINARY_DIR})
|
| 72 |
+
|
| 73 |
+
find_program(CLANG_EXECUTABLE
|
| 74 |
+
NAMES clang-${LLVM_PACKAGE_VERSION}
|
| 75 |
+
clang-${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}
|
| 76 |
+
clang-${LLVM_VERSION_MAJOR} clang
|
| 77 |
+
HINTS ${LLVM_TOOLS_BINARY_DIR})
|
| 78 |
+
|
| 79 |
+
add_library(LLVM::LLVM_HEADERS INTERFACE IMPORTED)
|
| 80 |
+
set_target_properties(LLVM::LLVM_HEADERS
|
| 81 |
+
PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${LLVM_INCLUDE_DIRS}"
|
| 82 |
+
INTERFACE_COMPILE_FLAGS "${LLVM_DEFINITIONS}")
|
| 83 |
+
|
| 84 |
+
add_library(LLVM::LLVM_LIBS INTERFACE IMPORTED)
|
| 85 |
+
if(ARROW_LLVM_USE_SHARED)
|
| 86 |
+
target_link_libraries(LLVM::LLVM_LIBS INTERFACE LLVM)
|
| 87 |
+
else()
|
| 88 |
+
# Find the libraries that correspond to the LLVM components
|
| 89 |
+
set(LLVM_TARGET_COMPONENTS
|
| 90 |
+
analysis
|
| 91 |
+
bitreader
|
| 92 |
+
core
|
| 93 |
+
debuginfodwarf
|
| 94 |
+
ipo
|
| 95 |
+
linker
|
| 96 |
+
native
|
| 97 |
+
orcjit
|
| 98 |
+
target)
|
| 99 |
+
if(LLVM_VERSION_MAJOR GREATER_EQUAL 14)
|
| 100 |
+
list(APPEND LLVM_TARGET_COMPONENTS passes)
|
| 101 |
+
endif()
|
| 102 |
+
llvm_map_components_to_libnames(LLVM_LIBS ${LLVM_TARGET_COMPONENTS})
|
| 103 |
+
target_link_libraries(LLVM::LLVM_LIBS INTERFACE ${LLVM_LIBS})
|
| 104 |
+
|
| 105 |
+
if(TARGET LLVMSupport AND NOT ARROW_ZSTD_USE_SHARED)
|
| 106 |
+
get_target_property(LLVM_SUPPORT_INTERFACE_LINK_LIBRARIES LLVMSupport
|
| 107 |
+
INTERFACE_LINK_LIBRARIES)
|
| 108 |
+
list(FIND LLVM_SUPPORT_INTERFACE_LINK_LIBRARIES zstd::libzstd_shared
|
| 109 |
+
LLVM_SUPPORT_LIBZSTD_INDEX)
|
| 110 |
+
if(NOT LLVM_SUPPORT_LIBZSTD_INDEX EQUAL -1)
|
| 111 |
+
list(REMOVE_AT LLVM_SUPPORT_INTERFACE_LINK_LIBRARIES
|
| 112 |
+
${LLVM_SUPPORT_LIBZSTD_INDEX})
|
| 113 |
+
list(INSERT LLVM_SUPPORT_INTERFACE_LINK_LIBRARIES ${LLVM_SUPPORT_LIBZSTD_INDEX}
|
| 114 |
+
zstd::libzstd_static)
|
| 115 |
+
endif()
|
| 116 |
+
set_target_properties(LLVMSupport
|
| 117 |
+
PROPERTIES INTERFACE_LINK_LIBRARIES
|
| 118 |
+
"${LLVM_SUPPORT_INTERFACE_LINK_LIBRARIES}")
|
| 119 |
+
endif()
|
| 120 |
+
endif()
|
| 121 |
+
endif()
|
| 122 |
+
|
| 123 |
+
mark_as_advanced(CLANG_EXECUTABLE LLVM_LINK_EXECUTABLE)
|
| 124 |
+
|
| 125 |
+
find_package_handle_standard_args(
|
| 126 |
+
LLVMAlt
|
| 127 |
+
REQUIRED_VARS # The first variable is used for display.
|
| 128 |
+
LLVM_PACKAGE_VERSION CLANG_EXECUTABLE LLVM_FOUND LLVM_LINK_EXECUTABLE)
|
| 129 |
+
if(LLVMAlt_FOUND)
|
| 130 |
+
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
|
| 131 |
+
message(STATUS "Found llvm-link ${LLVM_LINK_EXECUTABLE}")
|
| 132 |
+
message(STATUS "Found clang ${CLANG_EXECUTABLE}")
|
| 133 |
+
endif()
|
videollama2/lib/python3.10/site-packages/cmake_modules/FindProtobufAlt.cmake
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Licensed to the Apache Software Foundation (ASF) under one
|
| 2 |
+
# or more contributor license agreements. See the NOTICE file
|
| 3 |
+
# distributed with this work for additional information
|
| 4 |
+
# regarding copyright ownership. The ASF licenses this file
|
| 5 |
+
# to you under the Apache License, Version 2.0 (the
|
| 6 |
+
# "License"); you may not use this file except in compliance
|
| 7 |
+
# with the License. You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing,
|
| 12 |
+
# software distributed under the License is distributed on an
|
| 13 |
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
| 14 |
+
# KIND, either express or implied. See the License for the
|
| 15 |
+
# specific language governing permissions and limitations
|
| 16 |
+
# under the License.
|
| 17 |
+
|
| 18 |
+
if(ARROW_PROTOBUF_USE_SHARED)
|
| 19 |
+
set(Protobuf_USE_STATIC_LIBS OFF)
|
| 20 |
+
else()
|
| 21 |
+
set(Protobuf_USE_STATIC_LIBS ON)
|
| 22 |
+
endif()
|
| 23 |
+
|
| 24 |
+
set(find_package_args)
|
| 25 |
+
if(ProtobufAlt_FIND_VERSION)
|
| 26 |
+
list(APPEND find_package_args ${ProtobufAlt_FIND_VERSION})
|
| 27 |
+
endif()
|
| 28 |
+
if(ProtobufAlt_FIND_QUIETLY)
|
| 29 |
+
list(APPEND find_package_args QUIET)
|
| 30 |
+
endif()
|
| 31 |
+
find_package(protobuf CONFIG ${find_package_args})
|
| 32 |
+
set(ProtobufAlt_FOUND ${protobuf_FOUND})
|
| 33 |
+
if(ProtobufAlt_FOUND)
|
| 34 |
+
if(Protobuf_PROTOC_EXECUTABLE)
|
| 35 |
+
# work around https://github.com/protocolbuffers/protobuf/issues/14576
|
| 36 |
+
set_target_properties(protobuf::protoc PROPERTIES IMPORTED_LOCATION_RELEASE
|
| 37 |
+
"${Protobuf_PROTOC_EXECUTABLE}")
|
| 38 |
+
endif()
|
| 39 |
+
set(ProtobufAlt_VERSION ${protobuf_VERSION})
|
| 40 |
+
set(ProtobufAlt_VERSION_MAJOR ${protobuf_VERSION_MAJOR})
|
| 41 |
+
set(ProtobufAlt_VERSION_MINOR ${protobuf_VERSION_MINOR})
|
| 42 |
+
set(ProtobufAlt_VERSION_PATCH ${protobuf_VERSION_PATCH})
|
| 43 |
+
set(ProtobufAlt_VERSION_TWEEK ${protobuf_VERSION_TWEEK})
|
| 44 |
+
else()
|
| 45 |
+
find_package(Protobuf ${find_package_args})
|
| 46 |
+
set(ProtobufAlt_FOUND ${Protobuf_FOUND})
|
| 47 |
+
if(ProtobufAlt_FOUND)
|
| 48 |
+
set(ProtobufAlt_VERSION ${Protobuf_VERSION})
|
| 49 |
+
set(ProtobufAlt_VERSION_MAJOR ${Protobuf_VERSION_MAJOR})
|
| 50 |
+
set(ProtobufAlt_VERSION_MINOR ${Protobuf_VERSION_MINOR})
|
| 51 |
+
set(ProtobufAlt_VERSION_PATCH ${Protobuf_VERSION_PATCH})
|
| 52 |
+
set(ProtobufAlt_VERSION_TWEEK ${Protobuf_VERSION_TWEEK})
|
| 53 |
+
endif()
|
| 54 |
+
endif()
|
videollama2/lib/python3.10/site-packages/cmake_modules/FindRapidJSONAlt.cmake
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Licensed to the Apache Software Foundation (ASF) under one
|
| 2 |
+
# or more contributor license agreements. See the NOTICE file
|
| 3 |
+
# distributed with this work for additional information
|
| 4 |
+
# regarding copyright ownership. The ASF licenses this file
|
| 5 |
+
# to you under the Apache License, Version 2.0 (the
|
| 6 |
+
# "License"); you may not use this file except in compliance
|
| 7 |
+
# with the License. You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing,
|
| 12 |
+
# software distributed under the License is distributed on an
|
| 13 |
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
| 14 |
+
# KIND, either express or implied. See the License for the
|
| 15 |
+
# specific language governing permissions and limitations
|
| 16 |
+
# under the License.
|
| 17 |
+
|
| 18 |
+
if(RapidJSONAlt_FOUND)
|
| 19 |
+
return()
|
| 20 |
+
endif()
|
| 21 |
+
|
| 22 |
+
set(find_package_args)
|
| 23 |
+
if(RapidJSONAlt_FIND_VERSION)
|
| 24 |
+
list(APPEND find_package_args ${RapidJSONAlt_FIND_VERSION})
|
| 25 |
+
endif()
|
| 26 |
+
if(RapidJSONAlt_FIND_QUIETLY)
|
| 27 |
+
list(APPEND find_package_args QUIET)
|
| 28 |
+
endif()
|
| 29 |
+
find_package(RapidJSON ${find_package_args})
|
| 30 |
+
if(RapidJSON_FOUND)
|
| 31 |
+
set(RapidJSONAlt_FOUND TRUE)
|
| 32 |
+
if(NOT TARGET RapidJSON)
|
| 33 |
+
add_library(RapidJSON INTERFACE IMPORTED)
|
| 34 |
+
if(RapidJSON_INCLUDE_DIRS)
|
| 35 |
+
target_include_directories(RapidJSON INTERFACE "${RapidJSON_INCLUDE_DIRS}")
|
| 36 |
+
else()
|
| 37 |
+
target_include_directories(RapidJSON INTERFACE "${RAPIDJSON_INCLUDE_DIRS}")
|
| 38 |
+
endif()
|
| 39 |
+
endif()
|
| 40 |
+
return()
|
| 41 |
+
endif()
|
| 42 |
+
|
| 43 |
+
if(RapidJSON_ROOT)
|
| 44 |
+
find_path(RAPIDJSON_INCLUDE_DIR
|
| 45 |
+
NAMES rapidjson/rapidjson.h
|
| 46 |
+
PATHS ${RapidJSON_ROOT}
|
| 47 |
+
NO_DEFAULT_PATH
|
| 48 |
+
PATH_SUFFIXES "include")
|
| 49 |
+
else()
|
| 50 |
+
find_path(RAPIDJSON_INCLUDE_DIR
|
| 51 |
+
NAMES rapidjson/rapidjson.h
|
| 52 |
+
PATH_SUFFIXES "include")
|
| 53 |
+
endif()
|
| 54 |
+
|
| 55 |
+
if(RAPIDJSON_INCLUDE_DIR)
|
| 56 |
+
file(READ "${RAPIDJSON_INCLUDE_DIR}/rapidjson/rapidjson.h" RAPIDJSON_H_CONTENT)
|
| 57 |
+
string(REGEX MATCH "#define RAPIDJSON_MAJOR_VERSION ([0-9]+)"
|
| 58 |
+
RAPIDJSON_MAJOR_VERSION_DEFINITION "${RAPIDJSON_H_CONTENT}")
|
| 59 |
+
string(REGEX REPLACE "^.+ ([0-9]+)$" "\\1" RAPIDJSON_MAJOR_VERSION
|
| 60 |
+
"${RAPIDJSON_MAJOR_VERSION_DEFINITION}")
|
| 61 |
+
string(REGEX MATCH "#define RAPIDJSON_MINOR_VERSION ([0-9]+)"
|
| 62 |
+
RAPIDJSON_MINOR_VERSION_DEFINITION "${RAPIDJSON_H_CONTENT}")
|
| 63 |
+
string(REGEX REPLACE "^.+ ([0-9]+)$" "\\1" RAPIDJSON_MINOR_VERSION
|
| 64 |
+
"${RAPIDJSON_MINOR_VERSION_DEFINITION}")
|
| 65 |
+
string(REGEX MATCH "#define RAPIDJSON_PATCH_VERSION ([0-9]+)"
|
| 66 |
+
RAPIDJSON_PATCH_VERSION_DEFINITION "${RAPIDJSON_H_CONTENT}")
|
| 67 |
+
string(REGEX REPLACE "^.+ ([0-9]+)$" "\\1" RAPIDJSON_PATCH_VERSION
|
| 68 |
+
"${RAPIDJSON_PATCH_VERSION_DEFINITION}")
|
| 69 |
+
if("${RAPIDJSON_MAJOR_VERSION}" STREQUAL ""
|
| 70 |
+
OR "${RAPIDJSON_MINOR_VERSION}" STREQUAL ""
|
| 71 |
+
OR "${RAPIDJSON_PATCH_VERSION}" STREQUAL "")
|
| 72 |
+
set(RAPIDJSON_VERSION "0.0.0")
|
| 73 |
+
else()
|
| 74 |
+
set(RAPIDJSON_VERSION
|
| 75 |
+
"${RAPIDJSON_MAJOR_VERSION}.${RAPIDJSON_MINOR_VERSION}.${RAPIDJSON_PATCH_VERSION}"
|
| 76 |
+
)
|
| 77 |
+
endif()
|
| 78 |
+
endif()
|
| 79 |
+
|
| 80 |
+
find_package_handle_standard_args(
|
| 81 |
+
RapidJSONAlt
|
| 82 |
+
REQUIRED_VARS RAPIDJSON_INCLUDE_DIR
|
| 83 |
+
VERSION_VAR RAPIDJSON_VERSION)
|
| 84 |
+
|
| 85 |
+
if(RapidJSONAlt_FOUND)
|
| 86 |
+
if(WIN32 AND "${RAPIDJSON_INCLUDE_DIR}" MATCHES "^/")
|
| 87 |
+
# MSYS2
|
| 88 |
+
execute_process(COMMAND "cygpath" "--windows" "${RAPIDJSON_INCLUDE_DIR}"
|
| 89 |
+
OUTPUT_VARIABLE RAPIDJSON_INCLUDE_DIR
|
| 90 |
+
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
| 91 |
+
endif()
|
| 92 |
+
add_library(RapidJSON INTERFACE IMPORTED)
|
| 93 |
+
target_include_directories(RapidJSON INTERFACE "${RAPIDJSON_INCLUDE_DIR}")
|
| 94 |
+
endif()
|
videollama2/lib/python3.10/site-packages/cmake_modules/Findlz4Alt.cmake
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Licensed to the Apache Software Foundation (ASF) under one
|
| 2 |
+
# or more contributor license agreements. See the NOTICE file
|
| 3 |
+
# distributed with this work for additional information
|
| 4 |
+
# regarding copyright ownership. The ASF licenses this file
|
| 5 |
+
# to you under the Apache License, Version 2.0 (the
|
| 6 |
+
# "License"); you may not use this file except in compliance
|
| 7 |
+
# with the License. You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing,
|
| 12 |
+
# software distributed under the License is distributed on an
|
| 13 |
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
| 14 |
+
# KIND, either express or implied. See the License for the
|
| 15 |
+
# specific language governing permissions and limitations
|
| 16 |
+
# under the License.
|
| 17 |
+
|
| 18 |
+
if(lz4Alt_FOUND)
|
| 19 |
+
return()
|
| 20 |
+
endif()
|
| 21 |
+
|
| 22 |
+
set(find_package_args)
|
| 23 |
+
if(lz4Alt_FIND_VERSION)
|
| 24 |
+
list(APPEND find_package_args ${lz4Alt_FIND_VERSION})
|
| 25 |
+
endif()
|
| 26 |
+
if(lz4Alt_FIND_QUIETLY)
|
| 27 |
+
list(APPEND find_package_args QUIET)
|
| 28 |
+
endif()
|
| 29 |
+
find_package(lz4 ${find_package_args})
|
| 30 |
+
if(lz4_FOUND)
|
| 31 |
+
set(lz4Alt_FOUND TRUE)
|
| 32 |
+
# Conan uses lz4::lz4 not LZ4::lz4
|
| 33 |
+
if(NOT TARGET LZ4::lz4 AND TARGET lz4::lz4)
|
| 34 |
+
add_library(LZ4::lz4 ALIAS lz4::lz4)
|
| 35 |
+
endif()
|
| 36 |
+
return()
|
| 37 |
+
endif()
|
| 38 |
+
|
| 39 |
+
if(MSVC_TOOLCHAIN AND NOT DEFINED LZ4_MSVC_LIB_PREFIX)
|
| 40 |
+
set(LZ4_MSVC_LIB_PREFIX "lib")
|
| 41 |
+
endif()
|
| 42 |
+
set(LZ4_LIB_NAME_BASE "${LZ4_MSVC_LIB_PREFIX}lz4")
|
| 43 |
+
|
| 44 |
+
if(ARROW_LZ4_USE_SHARED)
|
| 45 |
+
set(LZ4_LIB_NAMES)
|
| 46 |
+
if(CMAKE_IMPORT_LIBRARY_SUFFIX)
|
| 47 |
+
list(APPEND
|
| 48 |
+
LZ4_LIB_NAMES
|
| 49 |
+
"${CMAKE_IMPORT_LIBRARY_PREFIX}${LZ4_LIB_NAME_BASE}${CMAKE_IMPORT_LIBRARY_SUFFIX}"
|
| 50 |
+
)
|
| 51 |
+
endif()
|
| 52 |
+
list(APPEND LZ4_LIB_NAMES
|
| 53 |
+
"${CMAKE_SHARED_LIBRARY_PREFIX}${LZ4_LIB_NAME_BASE}${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
| 54 |
+
else()
|
| 55 |
+
if(MSVC AND NOT DEFINED LZ4_MSVC_STATIC_LIB_SUFFIX)
|
| 56 |
+
set(LZ4_MSVC_STATIC_LIB_SUFFIX "_static")
|
| 57 |
+
endif()
|
| 58 |
+
set(LZ4_STATIC_LIB_SUFFIX "${LZ4_MSVC_STATIC_LIB_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
| 59 |
+
set(LZ4_LIB_NAMES
|
| 60 |
+
"${CMAKE_STATIC_LIBRARY_PREFIX}${LZ4_LIB_NAME_BASE}${LZ4_STATIC_LIB_SUFFIX}")
|
| 61 |
+
endif()
|
| 62 |
+
|
| 63 |
+
if(LZ4_ROOT)
|
| 64 |
+
find_library(LZ4_LIB
|
| 65 |
+
NAMES ${LZ4_LIB_NAMES}
|
| 66 |
+
PATHS ${LZ4_ROOT}
|
| 67 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES}
|
| 68 |
+
NO_DEFAULT_PATH)
|
| 69 |
+
find_path(LZ4_INCLUDE_DIR
|
| 70 |
+
NAMES lz4.h
|
| 71 |
+
PATHS ${LZ4_ROOT}
|
| 72 |
+
NO_DEFAULT_PATH
|
| 73 |
+
PATH_SUFFIXES ${ARROW_INCLUDE_PATH_SUFFIXES})
|
| 74 |
+
|
| 75 |
+
else()
|
| 76 |
+
find_package(PkgConfig QUIET)
|
| 77 |
+
pkg_check_modules(LZ4_PC liblz4)
|
| 78 |
+
if(LZ4_PC_FOUND)
|
| 79 |
+
set(LZ4_INCLUDE_DIR "${LZ4_PC_INCLUDEDIR}")
|
| 80 |
+
|
| 81 |
+
list(APPEND LZ4_PC_LIBRARY_DIRS "${LZ4_PC_LIBDIR}")
|
| 82 |
+
find_library(LZ4_LIB
|
| 83 |
+
NAMES ${LZ4_LIB_NAMES}
|
| 84 |
+
PATHS ${LZ4_PC_LIBRARY_DIRS}
|
| 85 |
+
NO_DEFAULT_PATH
|
| 86 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES})
|
| 87 |
+
else()
|
| 88 |
+
find_library(LZ4_LIB
|
| 89 |
+
NAMES ${LZ4_LIB_NAMES}
|
| 90 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES})
|
| 91 |
+
find_path(LZ4_INCLUDE_DIR
|
| 92 |
+
NAMES lz4.h
|
| 93 |
+
PATH_SUFFIXES ${ARROW_INCLUDE_PATH_SUFFIXES})
|
| 94 |
+
endif()
|
| 95 |
+
endif()
|
| 96 |
+
|
| 97 |
+
find_package_handle_standard_args(lz4Alt REQUIRED_VARS LZ4_LIB LZ4_INCLUDE_DIR)
|
| 98 |
+
|
| 99 |
+
if(lz4Alt_FOUND)
|
| 100 |
+
if(NOT TARGET LZ4::lz4)
|
| 101 |
+
add_library(LZ4::lz4 UNKNOWN IMPORTED)
|
| 102 |
+
set_target_properties(LZ4::lz4
|
| 103 |
+
PROPERTIES IMPORTED_LOCATION "${LZ4_LIB}"
|
| 104 |
+
INTERFACE_INCLUDE_DIRECTORIES "${LZ4_INCLUDE_DIR}")
|
| 105 |
+
endif()
|
| 106 |
+
endif()
|
videollama2/lib/python3.10/site-packages/cmake_modules/FindorcAlt.cmake
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Licensed to the Apache Software Foundation (ASF) under one
|
| 2 |
+
# or more contributor license agreements. See the NOTICE file
|
| 3 |
+
# distributed with this work for additional information
|
| 4 |
+
# regarding copyright ownership. The ASF licenses this file
|
| 5 |
+
# to you under the Apache License, Version 2.0 (the
|
| 6 |
+
# "License"); you may not use this file except in compliance
|
| 7 |
+
# with the License. You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing,
|
| 12 |
+
# software distributed under the License is distributed on an
|
| 13 |
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
| 14 |
+
# KIND, either express or implied. See the License for the
|
| 15 |
+
# specific language governing permissions and limitations
|
| 16 |
+
# under the License.
|
| 17 |
+
|
| 18 |
+
if(orcAlt_FOUND)
|
| 19 |
+
return()
|
| 20 |
+
endif()
|
| 21 |
+
|
| 22 |
+
set(find_package_args)
|
| 23 |
+
if(orcAlt_FIND_VERSION)
|
| 24 |
+
list(APPEND find_package_args ${orcAlt_FIND_VERSION})
|
| 25 |
+
endif()
|
| 26 |
+
if(orcAlt_FIND_QUIETLY)
|
| 27 |
+
list(APPEND find_package_args QUIET)
|
| 28 |
+
endif()
|
| 29 |
+
find_package(orc ${find_package_args})
|
| 30 |
+
if(orc_FOUND)
|
| 31 |
+
set(orcAlt_FOUND TRUE)
|
| 32 |
+
set(orcAlt_VERSION ${orc_VERSION})
|
| 33 |
+
return()
|
| 34 |
+
endif()
|
| 35 |
+
|
| 36 |
+
if(ORC_ROOT)
|
| 37 |
+
find_library(ORC_STATIC_LIB
|
| 38 |
+
NAMES orc
|
| 39 |
+
PATHS ${ORC_ROOT}
|
| 40 |
+
NO_DEFAULT_PATH
|
| 41 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES})
|
| 42 |
+
find_path(ORC_INCLUDE_DIR
|
| 43 |
+
NAMES orc/orc-config.hh
|
| 44 |
+
PATHS ${ORC_ROOT}
|
| 45 |
+
NO_DEFAULT_PATH
|
| 46 |
+
PATH_SUFFIXES ${ARROW_INCLUDE_PATH_SUFFIXES})
|
| 47 |
+
else()
|
| 48 |
+
find_library(ORC_STATIC_LIB
|
| 49 |
+
NAMES orc
|
| 50 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES})
|
| 51 |
+
find_path(ORC_INCLUDE_DIR
|
| 52 |
+
NAMES orc/orc-config.hh
|
| 53 |
+
PATH_SUFFIXES ${ARROW_INCLUDE_PATH_SUFFIXES})
|
| 54 |
+
endif()
|
| 55 |
+
if(ORC_INCLUDE_DIR)
|
| 56 |
+
file(READ "${ORC_INCLUDE_DIR}/orc/orc-config.hh" ORC_CONFIG_HH_CONTENT)
|
| 57 |
+
string(REGEX MATCH "#define ORC_VERSION \"[0-9.]+\"" ORC_VERSION_DEFINITION
|
| 58 |
+
"${ORC_CONFIG_HH_CONTENT}")
|
| 59 |
+
string(REGEX MATCH "[0-9.]+" ORC_VERSION "${ORC_VERSION_DEFINITION}")
|
| 60 |
+
endif()
|
| 61 |
+
|
| 62 |
+
find_package_handle_standard_args(
|
| 63 |
+
orcAlt
|
| 64 |
+
REQUIRED_VARS ORC_STATIC_LIB ORC_INCLUDE_DIR
|
| 65 |
+
VERSION_VAR ORC_VERSION)
|
| 66 |
+
|
| 67 |
+
if(orcAlt_FOUND)
|
| 68 |
+
if(NOT TARGET orc::orc)
|
| 69 |
+
add_library(orc::orc STATIC IMPORTED)
|
| 70 |
+
set_target_properties(orc::orc
|
| 71 |
+
PROPERTIES IMPORTED_LOCATION "${ORC_STATIC_LIB}"
|
| 72 |
+
INTERFACE_INCLUDE_DIRECTORIES "${ORC_INCLUDE_DIR}")
|
| 73 |
+
endif()
|
| 74 |
+
set(orcAlt_VERSION ${ORC_VERSION})
|
| 75 |
+
endif()
|
videollama2/lib/python3.10/site-packages/cmake_modules/Findre2Alt.cmake
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Licensed to the Apache Software Foundation (ASF) under one
|
| 2 |
+
# or more contributor license agreements. See the NOTICE file
|
| 3 |
+
# distributed with this work for additional information
|
| 4 |
+
# regarding copyright ownership. The ASF licenses this file
|
| 5 |
+
# to you under the Apache License, Version 2.0 (the
|
| 6 |
+
# "License"); you may not use this file except in compliance
|
| 7 |
+
# with the License. You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing,
|
| 12 |
+
# software distributed under the License is distributed on an
|
| 13 |
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
| 14 |
+
# KIND, either express or implied. See the License for the
|
| 15 |
+
# specific language governing permissions and limitations
|
| 16 |
+
# under the License.
|
| 17 |
+
|
| 18 |
+
if(re2Alt_FOUND)
|
| 19 |
+
return()
|
| 20 |
+
endif()
|
| 21 |
+
|
| 22 |
+
set(find_package_args)
|
| 23 |
+
if(re2Alt_FIND_VERSION)
|
| 24 |
+
list(APPEND find_package_args ${re2Alt_FIND_VERSION})
|
| 25 |
+
endif()
|
| 26 |
+
if(re2Alt_FIND_QUIETLY)
|
| 27 |
+
list(APPEND find_package_args QUIET)
|
| 28 |
+
endif()
|
| 29 |
+
find_package(re2 ${find_package_args})
|
| 30 |
+
if(re2_FOUND)
|
| 31 |
+
set(re2Alt_FOUND TRUE)
|
| 32 |
+
return()
|
| 33 |
+
endif()
|
| 34 |
+
|
| 35 |
+
if(re2_ROOT)
|
| 36 |
+
find_library(RE2_LIB
|
| 37 |
+
NAMES re2_static
|
| 38 |
+
re2
|
| 39 |
+
"${CMAKE_STATIC_LIBRARY_PREFIX}re2${RE2_MSVC_STATIC_LIB_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
| 40 |
+
"${CMAKE_SHARED_LIBRARY_PREFIX}re2${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
| 41 |
+
PATHS ${re2_ROOT}
|
| 42 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES}
|
| 43 |
+
NO_DEFAULT_PATH)
|
| 44 |
+
find_path(RE2_INCLUDE_DIR
|
| 45 |
+
NAMES re2/re2.h
|
| 46 |
+
PATHS ${re2_ROOT}
|
| 47 |
+
NO_DEFAULT_PATH
|
| 48 |
+
PATH_SUFFIXES ${ARROW_INCLUDE_PATH_SUFFIXES})
|
| 49 |
+
else()
|
| 50 |
+
find_package(PkgConfig QUIET)
|
| 51 |
+
pkg_check_modules(RE2_PC re2)
|
| 52 |
+
if(RE2_PC_FOUND)
|
| 53 |
+
set(RE2_INCLUDE_DIR "${RE2_PC_INCLUDEDIR}")
|
| 54 |
+
|
| 55 |
+
list(APPEND RE2_PC_LIBRARY_DIRS "${RE2_PC_LIBDIR}")
|
| 56 |
+
find_library(RE2_LIB re2
|
| 57 |
+
PATHS ${RE2_PC_LIBRARY_DIRS}
|
| 58 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES}
|
| 59 |
+
NO_DEFAULT_PATH)
|
| 60 |
+
|
| 61 |
+
# On Fedora, the reported prefix is wrong. As users likely run into this,
|
| 62 |
+
# workaround.
|
| 63 |
+
# https://bugzilla.redhat.com/show_bug.cgi?id=1652589
|
| 64 |
+
if(UNIX
|
| 65 |
+
AND NOT APPLE
|
| 66 |
+
AND NOT RE2_LIB)
|
| 67 |
+
if(RE2_PC_PREFIX STREQUAL "/usr/local")
|
| 68 |
+
find_library(RE2_LIB re2)
|
| 69 |
+
endif()
|
| 70 |
+
endif()
|
| 71 |
+
else()
|
| 72 |
+
find_library(RE2_LIB
|
| 73 |
+
NAMES re2_static
|
| 74 |
+
re2
|
| 75 |
+
"${CMAKE_STATIC_LIBRARY_PREFIX}re2${RE2_MSVC_STATIC_LIB_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
| 76 |
+
"${CMAKE_SHARED_LIBRARY_PREFIX}re2${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
| 77 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES})
|
| 78 |
+
find_path(RE2_INCLUDE_DIR
|
| 79 |
+
NAMES re2/re2.h
|
| 80 |
+
PATH_SUFFIXES ${ARROW_INCLUDE_PATH_SUFFIXES})
|
| 81 |
+
endif()
|
| 82 |
+
endif()
|
| 83 |
+
|
| 84 |
+
find_package_handle_standard_args(re2Alt REQUIRED_VARS RE2_LIB RE2_INCLUDE_DIR)
|
| 85 |
+
|
| 86 |
+
if(re2Alt_FOUND)
|
| 87 |
+
if(NOT TARGET re2::re2)
|
| 88 |
+
add_library(re2::re2 UNKNOWN IMPORTED)
|
| 89 |
+
set_target_properties(re2::re2
|
| 90 |
+
PROPERTIES IMPORTED_LOCATION "${RE2_LIB}"
|
| 91 |
+
INTERFACE_INCLUDE_DIRECTORIES "${RE2_INCLUDE_DIR}")
|
| 92 |
+
endif()
|
| 93 |
+
endif()
|
videollama2/lib/python3.10/site-packages/cmake_modules/FindzstdAlt.cmake
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Licensed to the Apache Software Foundation (ASF) under one
|
| 2 |
+
# or more contributor license agreements. See the NOTICE file
|
| 3 |
+
# distributed with this work for additional information
|
| 4 |
+
# regarding copyright ownership. The ASF licenses this file
|
| 5 |
+
# to you under the Apache License, Version 2.0 (the
|
| 6 |
+
# "License"); you may not use this file except in compliance
|
| 7 |
+
# with the License. You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing,
|
| 12 |
+
# software distributed under the License is distributed on an
|
| 13 |
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
| 14 |
+
# KIND, either express or implied. See the License for the
|
| 15 |
+
# specific language governing permissions and limitations
|
| 16 |
+
# under the License.
|
| 17 |
+
|
| 18 |
+
if(zstdAlt_FOUND)
|
| 19 |
+
return()
|
| 20 |
+
endif()
|
| 21 |
+
|
| 22 |
+
set(find_package_args)
|
| 23 |
+
if(zstdAlt_FIND_VERSION)
|
| 24 |
+
list(APPEND find_package_args ${zstdAlt_FIND_VERSION})
|
| 25 |
+
endif()
|
| 26 |
+
if(zstdAlt_FIND_QUIETLY)
|
| 27 |
+
list(APPEND find_package_args QUIET)
|
| 28 |
+
endif()
|
| 29 |
+
find_package(zstd ${find_package_args})
|
| 30 |
+
if(zstd_FOUND)
|
| 31 |
+
set(zstdAlt_FOUND TRUE)
|
| 32 |
+
return()
|
| 33 |
+
endif()
|
| 34 |
+
|
| 35 |
+
if(MSVC AND NOT DEFINED ZSTD_MSVC_LIB_PREFIX)
|
| 36 |
+
set(ZSTD_MSVC_LIB_PREFIX "lib")
|
| 37 |
+
endif()
|
| 38 |
+
set(ZSTD_LIB_NAME_BASE "${ZSTD_MSVC_LIB_PREFIX}zstd")
|
| 39 |
+
|
| 40 |
+
if(ARROW_ZSTD_USE_SHARED)
|
| 41 |
+
set(ZSTD_LIB_NAMES)
|
| 42 |
+
if(CMAKE_IMPORT_LIBRARY_SUFFIX)
|
| 43 |
+
list(APPEND
|
| 44 |
+
ZSTD_LIB_NAMES
|
| 45 |
+
"${CMAKE_IMPORT_LIBRARY_PREFIX}${ZSTD_LIB_NAME_BASE}${CMAKE_IMPORT_LIBRARY_SUFFIX}"
|
| 46 |
+
)
|
| 47 |
+
endif()
|
| 48 |
+
list(APPEND ZSTD_LIB_NAMES
|
| 49 |
+
"${CMAKE_SHARED_LIBRARY_PREFIX}${ZSTD_LIB_NAME_BASE}${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
| 50 |
+
)
|
| 51 |
+
else()
|
| 52 |
+
if(MSVC AND NOT DEFINED ZSTD_MSVC_STATIC_LIB_SUFFIX)
|
| 53 |
+
set(ZSTD_MSVC_STATIC_LIB_SUFFIX "_static")
|
| 54 |
+
endif()
|
| 55 |
+
set(ZSTD_STATIC_LIB_SUFFIX
|
| 56 |
+
"${ZSTD_MSVC_STATIC_LIB_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
| 57 |
+
set(ZSTD_LIB_NAMES
|
| 58 |
+
"${CMAKE_STATIC_LIBRARY_PREFIX}${ZSTD_LIB_NAME_BASE}${ZSTD_STATIC_LIB_SUFFIX}")
|
| 59 |
+
endif()
|
| 60 |
+
|
| 61 |
+
# First, find via if specified ZSTD_ROOT
|
| 62 |
+
if(ZSTD_ROOT)
|
| 63 |
+
message(STATUS "Using ZSTD_ROOT: ${ZSTD_ROOT}")
|
| 64 |
+
find_library(ZSTD_LIB
|
| 65 |
+
NAMES ${ZSTD_LIB_NAMES}
|
| 66 |
+
PATHS ${ZSTD_ROOT}
|
| 67 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES}
|
| 68 |
+
NO_DEFAULT_PATH)
|
| 69 |
+
find_path(ZSTD_INCLUDE_DIR
|
| 70 |
+
NAMES zstd.h
|
| 71 |
+
PATHS ${ZSTD_ROOT}
|
| 72 |
+
NO_DEFAULT_PATH
|
| 73 |
+
PATH_SUFFIXES ${ARROW_INCLUDE_PATH_SUFFIXES})
|
| 74 |
+
|
| 75 |
+
else()
|
| 76 |
+
# Second, find via pkg_check_modules
|
| 77 |
+
find_package(PkgConfig QUIET)
|
| 78 |
+
pkg_check_modules(ZSTD_PC libzstd)
|
| 79 |
+
if(ZSTD_PC_FOUND)
|
| 80 |
+
set(zstdAlt_VERSION "${ZSTD_PC_VERSION}")
|
| 81 |
+
set(ZSTD_INCLUDE_DIR "${ZSTD_PC_INCLUDEDIR}")
|
| 82 |
+
|
| 83 |
+
list(APPEND ZSTD_PC_LIBRARY_DIRS "${ZSTD_PC_LIBDIR}")
|
| 84 |
+
find_library(ZSTD_LIB
|
| 85 |
+
NAMES ${ZSTD_LIB_NAMES}
|
| 86 |
+
PATHS ${ZSTD_PC_LIBRARY_DIRS}
|
| 87 |
+
NO_DEFAULT_PATH
|
| 88 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES})
|
| 89 |
+
else()
|
| 90 |
+
# Third, check all other CMake paths
|
| 91 |
+
find_library(ZSTD_LIB
|
| 92 |
+
NAMES ${ZSTD_LIB_NAMES}
|
| 93 |
+
PATH_SUFFIXES ${ARROW_LIBRARY_PATH_SUFFIXES})
|
| 94 |
+
find_path(ZSTD_INCLUDE_DIR
|
| 95 |
+
NAMES zstd.h
|
| 96 |
+
PATH_SUFFIXES ${ARROW_INCLUDE_PATH_SUFFIXES})
|
| 97 |
+
endif()
|
| 98 |
+
endif()
|
| 99 |
+
|
| 100 |
+
if("${zstdAlt_VERSION}" STREQUAL "" AND ZSTD_INCLUDE_DIR)
|
| 101 |
+
file(READ "${ZSTD_INCLUDE_DIR}/zstd.h" ZSTD_H_CONTENT)
|
| 102 |
+
string(REGEX MATCH "#define ZSTD_VERSION_MAJOR +([0-9]+)" ZSTD_VERSION_MAJOR_DEFINITION
|
| 103 |
+
"${ZSTD_H_CONTENT}")
|
| 104 |
+
string(REGEX REPLACE "^.+ ([0-9]+)$" "\\1" ZSTD_VERSION_MAJOR
|
| 105 |
+
"${ZSTD_VERSION_MAJOR_DEFINITION}")
|
| 106 |
+
string(REGEX MATCH "#define ZSTD_VERSION_MINOR +([0-9]+)" ZSTD_VERSION_MINOR_DEFINITION
|
| 107 |
+
"${ZSTD_H_CONTENT}")
|
| 108 |
+
string(REGEX REPLACE "^.+ ([0-9]+)$" "\\1" ZSTD_VERSION_MINOR
|
| 109 |
+
"${ZSTD_VERSION_MINOR_DEFINITION}")
|
| 110 |
+
string(REGEX MATCH "#define ZSTD_VERSION_RELEASE +([0-9]+)"
|
| 111 |
+
ZSTD_VERSION_RELEASE_DEFINITION "${ZSTD_H_CONTENT}")
|
| 112 |
+
string(REGEX REPLACE "^.+ ([0-9]+)$" "\\1" ZSTD_VERSION_RELEASE
|
| 113 |
+
"${ZSTD_VERSION_RELEASE_DEFINITION}")
|
| 114 |
+
if("${ZSTD_VERSION_MAJOR}" STREQUAL ""
|
| 115 |
+
OR "${ZSTD_VERSION_MINOR}" STREQUAL ""
|
| 116 |
+
OR "${ZSTD_VERSION_RELEASE}" STREQUAL "")
|
| 117 |
+
set(zstdAlt_VERSION "0.0.0")
|
| 118 |
+
else()
|
| 119 |
+
set(zstdAlt_VERSION
|
| 120 |
+
"${ZSTD_VERSION_MAJOR}.${ZSTD_VERSION_MINOR}.${ZSTD_VERSION_RELEASE}")
|
| 121 |
+
endif()
|
| 122 |
+
endif()
|
| 123 |
+
|
| 124 |
+
find_package_handle_standard_args(
|
| 125 |
+
zstdAlt
|
| 126 |
+
REQUIRED_VARS ZSTD_LIB ZSTD_INCLUDE_DIR
|
| 127 |
+
VERSION_VAR zstdAlt_VERSION)
|
| 128 |
+
|
| 129 |
+
if(zstdAlt_FOUND)
|
| 130 |
+
if(ARROW_ZSTD_USE_SHARED)
|
| 131 |
+
set(zstd_TARGET zstd::libzstd_shared)
|
| 132 |
+
add_library(${zstd_TARGET} SHARED IMPORTED)
|
| 133 |
+
else()
|
| 134 |
+
set(zstd_TARGET zstd::libzstd_static)
|
| 135 |
+
add_library(${zstd_TARGET} STATIC IMPORTED)
|
| 136 |
+
endif()
|
| 137 |
+
set_target_properties(${zstd_TARGET}
|
| 138 |
+
PROPERTIES IMPORTED_LOCATION "${ZSTD_LIB}"
|
| 139 |
+
INTERFACE_INCLUDE_DIRECTORIES "${ZSTD_INCLUDE_DIR}")
|
| 140 |
+
message(STATUS "Zstandard library: ${ZSTD_LIB}")
|
| 141 |
+
message(STATUS "Zstandard include directory: ${ZSTD_INCLUDE_DIR}")
|
| 142 |
+
endif()
|
videollama2/lib/python3.10/site-packages/sklearn/datasets/images/china.jpg
ADDED
|
Git LFS Details
|
videollama2/lib/python3.10/site-packages/sklearn/datasets/tests/data/openml/id_61/api-v1-jd-61.json.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5c7e79aa41ef580838fb9fc1906280f076c47be1741fddd5004ddb500eb57fe
|
| 3 |
+
size 898
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_amp_update_scale_native.h
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from NativeFunction.h
|
| 4 |
+
|
| 5 |
+
#include <c10/core/Scalar.h>
|
| 6 |
+
#include <c10/core/Storage.h>
|
| 7 |
+
#include <c10/core/TensorOptions.h>
|
| 8 |
+
#include <c10/util/Deprecated.h>
|
| 9 |
+
#include <optional>
|
| 10 |
+
#include <c10/core/QScheme.h>
|
| 11 |
+
#include <ATen/core/Reduction.h>
|
| 12 |
+
#include <ATen/core/Tensor.h>
|
| 13 |
+
#include <tuple>
|
| 14 |
+
#include <vector>
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
namespace at {
|
| 18 |
+
namespace native {
|
| 19 |
+
TORCH_API ::std::tuple<at::Tensor,at::Tensor> _amp_update_scale(const at::Tensor & self, const at::Tensor & growth_tracker, const at::Tensor & found_inf, double scale_growth_factor, double scale_backoff_factor, int64_t growth_interval);
|
| 20 |
+
TORCH_API at::Tensor & _amp_update_scale_out(const at::Tensor & self, at::Tensor & growth_tracker, const at::Tensor & found_inf, double scale_growth_factor, double scale_backoff_factor, int64_t growth_interval, at::Tensor & out);
|
| 21 |
+
TORCH_API at::Tensor & _amp_update_scale_cpu_(at::Tensor & self, at::Tensor & growth_tracker, const at::Tensor & found_inf, double scale_growth_factor, double scale_backoff_factor, int64_t growth_interval);
|
| 22 |
+
TORCH_API at::Tensor & _amp_update_scale_cuda_(at::Tensor & self, at::Tensor & growth_tracker, const at::Tensor & found_inf, double scale_growth_factor, double scale_backoff_factor, int64_t growth_interval);
|
| 23 |
+
} // namespace native
|
| 24 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_embedding_bag_backward_cuda_dispatch.h
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// @generated by torchgen/gen.py from DispatchKeyFunction.h
|
| 3 |
+
|
| 4 |
+
// NB: The implementing C++ file is RegisterDispatchKey.cpp
|
| 5 |
+
|
| 6 |
+
// The only #includes we need are for custom classes that have defaults in the C++ API
|
| 7 |
+
#include <c10/core/MemoryFormat.h>
|
| 8 |
+
#include <c10/core/Scalar.h>
|
| 9 |
+
#include <ATen/core/Reduction.h>
|
| 10 |
+
|
| 11 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 12 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 13 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 14 |
+
#include <ATen/core/ATen_fwd.h>
|
| 15 |
+
|
| 16 |
+
namespace at {
|
| 17 |
+
|
| 18 |
+
namespace cuda {
|
| 19 |
+
|
| 20 |
+
TORCH_API at::Tensor _embedding_bag_backward(const at::Tensor & grad, const at::Tensor & indices, const at::Tensor & offsets, const at::Tensor & offset2bag, const at::Tensor & bag_size, const at::Tensor & maximum_indices, int64_t num_weights, bool scale_grad_by_freq, int64_t mode, bool sparse, const ::std::optional<at::Tensor> & per_sample_weights, int64_t padding_idx=-1);
|
| 21 |
+
TORCH_API at::Tensor _embedding_bag_backward_symint(const at::Tensor & grad, const at::Tensor & indices, const at::Tensor & offsets, const at::Tensor & offset2bag, const at::Tensor & bag_size, const at::Tensor & maximum_indices, c10::SymInt num_weights, bool scale_grad_by_freq, int64_t mode, bool sparse, const ::std::optional<at::Tensor> & per_sample_weights, int64_t padding_idx=-1);
|
| 22 |
+
|
| 23 |
+
} // namespace cuda
|
| 24 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_foreach_ceil_native.h
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from NativeFunction.h
|
| 4 |
+
|
| 5 |
+
#include <c10/core/Scalar.h>
|
| 6 |
+
#include <c10/core/Storage.h>
|
| 7 |
+
#include <c10/core/TensorOptions.h>
|
| 8 |
+
#include <c10/util/Deprecated.h>
|
| 9 |
+
#include <optional>
|
| 10 |
+
#include <c10/core/QScheme.h>
|
| 11 |
+
#include <ATen/core/Reduction.h>
|
| 12 |
+
#include <ATen/core/Tensor.h>
|
| 13 |
+
#include <tuple>
|
| 14 |
+
#include <vector>
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
namespace at {
|
| 18 |
+
namespace native {
|
| 19 |
+
TORCH_API ::std::vector<at::Tensor> foreach_tensor_ceil_slow(at::TensorList self);
|
| 20 |
+
TORCH_API void _foreach_ceil_out(at::TensorList self, at::TensorList out);
|
| 21 |
+
TORCH_API void foreach_tensor_ceil_slow_(at::TensorList self);
|
| 22 |
+
TORCH_API ::std::vector<at::Tensor> foreach_tensor_ceil_cuda(at::TensorList self);
|
| 23 |
+
TORCH_API void foreach_tensor_ceil_cuda_(at::TensorList self);
|
| 24 |
+
} // namespace native
|
| 25 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_foreach_log10_compositeexplicitautograd_dispatch.h
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// @generated by torchgen/gen.py from DispatchKeyFunction.h
|
| 3 |
+
|
| 4 |
+
// NB: The implementing C++ file is RegisterDispatchKey.cpp
|
| 5 |
+
|
| 6 |
+
// The only #includes we need are for custom classes that have defaults in the C++ API
|
| 7 |
+
#include <c10/core/MemoryFormat.h>
|
| 8 |
+
#include <c10/core/Scalar.h>
|
| 9 |
+
#include <ATen/core/Reduction.h>
|
| 10 |
+
|
| 11 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 12 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 13 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 14 |
+
#include <ATen/core/ATen_fwd.h>
|
| 15 |
+
|
| 16 |
+
namespace at {
|
| 17 |
+
|
| 18 |
+
namespace compositeexplicitautograd {
|
| 19 |
+
|
| 20 |
+
TORCH_API ::std::vector<at::Tensor> _foreach_log10(at::TensorList self);
|
| 21 |
+
TORCH_API void _foreach_log10_out(at::TensorList out, at::TensorList self);
|
| 22 |
+
TORCH_API void _foreach_log10_outf(at::TensorList self, at::TensorList out);
|
| 23 |
+
TORCH_API void _foreach_log10_(at::TensorList self);
|
| 24 |
+
|
| 25 |
+
} // namespace compositeexplicitautograd
|
| 26 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_foreach_tanh_compositeexplicitautograd_dispatch.h
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// @generated by torchgen/gen.py from DispatchKeyFunction.h
|
| 3 |
+
|
| 4 |
+
// NB: The implementing C++ file is RegisterDispatchKey.cpp
|
| 5 |
+
|
| 6 |
+
// The only #includes we need are for custom classes that have defaults in the C++ API
|
| 7 |
+
#include <c10/core/MemoryFormat.h>
|
| 8 |
+
#include <c10/core/Scalar.h>
|
| 9 |
+
#include <ATen/core/Reduction.h>
|
| 10 |
+
|
| 11 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 12 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 13 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 14 |
+
#include <ATen/core/ATen_fwd.h>
|
| 15 |
+
|
| 16 |
+
namespace at {
|
| 17 |
+
|
| 18 |
+
namespace compositeexplicitautograd {
|
| 19 |
+
|
| 20 |
+
TORCH_API ::std::vector<at::Tensor> _foreach_tanh(at::TensorList self);
|
| 21 |
+
TORCH_API void _foreach_tanh_out(at::TensorList out, at::TensorList self);
|
| 22 |
+
TORCH_API void _foreach_tanh_outf(at::TensorList self, at::TensorList out);
|
| 23 |
+
TORCH_API void _foreach_tanh_(at::TensorList self);
|
| 24 |
+
|
| 25 |
+
} // namespace compositeexplicitautograd
|
| 26 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_jagged_to_padded_dense_forward_cuda_dispatch.h
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// @generated by torchgen/gen.py from DispatchKeyFunction.h
|
| 3 |
+
|
| 4 |
+
// NB: The implementing C++ file is RegisterDispatchKey.cpp
|
| 5 |
+
|
| 6 |
+
// The only #includes we need are for custom classes that have defaults in the C++ API
|
| 7 |
+
#include <c10/core/MemoryFormat.h>
|
| 8 |
+
#include <c10/core/Scalar.h>
|
| 9 |
+
#include <ATen/core/Reduction.h>
|
| 10 |
+
|
| 11 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 12 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 13 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 14 |
+
#include <ATen/core/ATen_fwd.h>
|
| 15 |
+
|
| 16 |
+
namespace at {
|
| 17 |
+
|
| 18 |
+
namespace cuda {
|
| 19 |
+
|
| 20 |
+
TORCH_API at::Tensor _jagged_to_padded_dense_forward(const at::Tensor & values, at::TensorList offsets, at::IntArrayRef max_lengths, double padding_value=0.0);
|
| 21 |
+
TORCH_API at::Tensor _jagged_to_padded_dense_forward_symint(const at::Tensor & values, at::TensorList offsets, c10::SymIntArrayRef max_lengths, double padding_value=0.0);
|
| 22 |
+
|
| 23 |
+
} // namespace cuda
|
| 24 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_linalg_solve_ex_native.h
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from NativeFunction.h
|
| 4 |
+
|
| 5 |
+
#include <c10/core/Scalar.h>
|
| 6 |
+
#include <c10/core/Storage.h>
|
| 7 |
+
#include <c10/core/TensorOptions.h>
|
| 8 |
+
#include <c10/util/Deprecated.h>
|
| 9 |
+
#include <optional>
|
| 10 |
+
#include <c10/core/QScheme.h>
|
| 11 |
+
#include <ATen/core/Reduction.h>
|
| 12 |
+
#include <ATen/core/Tensor.h>
|
| 13 |
+
#include <tuple>
|
| 14 |
+
#include <vector>
|
| 15 |
+
#include <ATen/ops/_linalg_solve_ex_meta.h>
|
| 16 |
+
|
| 17 |
+
namespace at {
|
| 18 |
+
namespace native {
|
| 19 |
+
struct TORCH_API structured__linalg_solve_ex_out : public at::meta::structured__linalg_solve_ex {
|
| 20 |
+
void impl(const at::Tensor & A, const at::Tensor & B, bool left, bool check_errors, const at::Tensor & result, const at::Tensor & LU, const at::Tensor & pivots, const at::Tensor & info);
|
| 21 |
+
};
|
| 22 |
+
} // namespace native
|
| 23 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_padded_dense_to_jagged_forward.h
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Function.h
|
| 4 |
+
|
| 5 |
+
#include <ATen/Context.h>
|
| 6 |
+
#include <ATen/DeviceGuard.h>
|
| 7 |
+
#include <ATen/TensorUtils.h>
|
| 8 |
+
#include <ATen/TracerMode.h>
|
| 9 |
+
#include <ATen/core/Generator.h>
|
| 10 |
+
#include <ATen/core/Reduction.h>
|
| 11 |
+
#include <ATen/core/Tensor.h>
|
| 12 |
+
#include <c10/core/Scalar.h>
|
| 13 |
+
#include <c10/core/Storage.h>
|
| 14 |
+
#include <c10/core/TensorOptions.h>
|
| 15 |
+
#include <c10/util/Deprecated.h>
|
| 16 |
+
#include <optional>
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#include <ATen/ops/_padded_dense_to_jagged_forward_ops.h>
|
| 21 |
+
|
| 22 |
+
namespace at {
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
// aten::_padded_dense_to_jagged_forward(Tensor dense, Tensor[] offsets, SymInt? total_L=None) -> Tensor
|
| 26 |
+
inline at::Tensor _padded_dense_to_jagged_forward(const at::Tensor & dense, at::TensorList offsets, ::std::optional<int64_t> total_L=::std::nullopt) {
|
| 27 |
+
return at::_ops::_padded_dense_to_jagged_forward::call(dense, offsets, total_L.has_value() ? ::std::make_optional(c10::SymInt(*total_L)) : ::std::nullopt);
|
| 28 |
+
}
|
| 29 |
+
namespace symint {
|
| 30 |
+
template <typename T, typename = std::enable_if_t<std::is_same<T, int64_t>::value>>
|
| 31 |
+
at::Tensor _padded_dense_to_jagged_forward(const at::Tensor & dense, at::TensorList offsets, ::std::optional<int64_t> total_L=::std::nullopt) {
|
| 32 |
+
return at::_ops::_padded_dense_to_jagged_forward::call(dense, offsets, total_L.has_value() ? ::std::make_optional(c10::SymInt(*total_L)) : ::std::nullopt);
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
// aten::_padded_dense_to_jagged_forward(Tensor dense, Tensor[] offsets, SymInt? total_L=None) -> Tensor
|
| 37 |
+
inline at::Tensor _padded_dense_to_jagged_forward_symint(const at::Tensor & dense, at::TensorList offsets, ::std::optional<c10::SymInt> total_L=::std::nullopt) {
|
| 38 |
+
return at::_ops::_padded_dense_to_jagged_forward::call(dense, offsets, total_L);
|
| 39 |
+
}
|
| 40 |
+
namespace symint {
|
| 41 |
+
template <typename T, typename = std::enable_if_t<std::is_same<T, c10::SymInt>::value>>
|
| 42 |
+
at::Tensor _padded_dense_to_jagged_forward(const at::Tensor & dense, at::TensorList offsets, ::std::optional<c10::SymInt> total_L=::std::nullopt) {
|
| 43 |
+
return at::_ops::_padded_dense_to_jagged_forward::call(dense, offsets, total_L);
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
}
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_sparse_log_softmax.h
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Function.h
|
| 4 |
+
|
| 5 |
+
#include <ATen/Context.h>
|
| 6 |
+
#include <ATen/DeviceGuard.h>
|
| 7 |
+
#include <ATen/TensorUtils.h>
|
| 8 |
+
#include <ATen/TracerMode.h>
|
| 9 |
+
#include <ATen/core/Generator.h>
|
| 10 |
+
#include <ATen/core/Reduction.h>
|
| 11 |
+
#include <ATen/core/Tensor.h>
|
| 12 |
+
#include <c10/core/Scalar.h>
|
| 13 |
+
#include <c10/core/Storage.h>
|
| 14 |
+
#include <c10/core/TensorOptions.h>
|
| 15 |
+
#include <c10/util/Deprecated.h>
|
| 16 |
+
#include <optional>
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#include <ATen/ops/_sparse_log_softmax_ops.h>
|
| 21 |
+
|
| 22 |
+
namespace at {
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
// aten::_sparse_log_softmax.int(Tensor self, int dim, ScalarType? dtype=None) -> Tensor
|
| 26 |
+
inline at::Tensor _sparse_log_softmax(const at::Tensor & self, int64_t dim, ::std::optional<at::ScalarType> dtype=::std::nullopt) {
|
| 27 |
+
return at::_ops::_sparse_log_softmax_int::call(self, dim, dtype);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
// aten::_sparse_log_softmax.Dimname(Tensor self, Dimname dim, *, ScalarType? dtype=None) -> Tensor
|
| 31 |
+
inline at::Tensor _sparse_log_softmax(const at::Tensor & self, at::Dimname dim, ::std::optional<at::ScalarType> dtype=::std::nullopt) {
|
| 32 |
+
return at::_ops::_sparse_log_softmax_Dimname::call(self, dim, dtype);
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
// aten::_sparse_log_softmax(Tensor self, int dim, bool half_to_float) -> Tensor
|
| 36 |
+
inline at::Tensor _sparse_log_softmax(const at::Tensor & self, int64_t dim, bool half_to_float) {
|
| 37 |
+
return at::_ops::_sparse_log_softmax::call(self, dim, half_to_float);
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
// aten::_sparse_log_softmax.out(Tensor self, int dim, bool half_to_float, *, Tensor(a!) out) -> Tensor(a!)
|
| 41 |
+
inline at::Tensor & _sparse_log_softmax_out(at::Tensor & out, const at::Tensor & self, int64_t dim, bool half_to_float) {
|
| 42 |
+
return at::_ops::_sparse_log_softmax_out::call(self, dim, half_to_float, out);
|
| 43 |
+
}
|
| 44 |
+
// aten::_sparse_log_softmax.out(Tensor self, int dim, bool half_to_float, *, Tensor(a!) out) -> Tensor(a!)
|
| 45 |
+
inline at::Tensor & _sparse_log_softmax_outf(const at::Tensor & self, int64_t dim, bool half_to_float, at::Tensor & out) {
|
| 46 |
+
return at::_ops::_sparse_log_softmax_out::call(self, dim, half_to_float, out);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
}
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_sparse_softmax_backward_data_ops.h
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Operator.h
|
| 4 |
+
|
| 5 |
+
#include <tuple>
|
| 6 |
+
#include <vector>
|
| 7 |
+
|
| 8 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 9 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 10 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 11 |
+
#include <ATen/core/ATen_fwd.h>
|
| 12 |
+
|
| 13 |
+
namespace at {
|
| 14 |
+
namespace _ops {
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
struct TORCH_API _sparse_softmax_backward_data {
|
| 18 |
+
using schema = at::Tensor (const at::Tensor &, const at::Tensor &, int64_t, const at::Tensor &);
|
| 19 |
+
using ptr_schema = schema*;
|
| 20 |
+
// See Note [static constexpr char* members for windows NVCC]
|
| 21 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_sparse_softmax_backward_data")
|
| 22 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "")
|
| 23 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_sparse_softmax_backward_data(Tensor grad_output, Tensor output, int dim, Tensor self) -> Tensor")
|
| 24 |
+
static at::Tensor call(const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, const at::Tensor & self);
|
| 25 |
+
static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, const at::Tensor & self);
|
| 26 |
+
};
|
| 27 |
+
|
| 28 |
+
struct TORCH_API _sparse_softmax_backward_data_out {
|
| 29 |
+
using schema = at::Tensor & (const at::Tensor &, const at::Tensor &, int64_t, const at::Tensor &, at::Tensor &);
|
| 30 |
+
using ptr_schema = schema*;
|
| 31 |
+
// See Note [static constexpr char* members for windows NVCC]
|
| 32 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_sparse_softmax_backward_data")
|
| 33 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out")
|
| 34 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_sparse_softmax_backward_data.out(Tensor grad_output, Tensor output, int dim, Tensor self, *, Tensor(a!) out) -> Tensor(a!)")
|
| 35 |
+
static at::Tensor & call(const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, const at::Tensor & self, at::Tensor & out);
|
| 36 |
+
static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & grad_output, const at::Tensor & output, int64_t dim, const at::Tensor & self, at::Tensor & out);
|
| 37 |
+
};
|
| 38 |
+
|
| 39 |
+
}} // namespace at::_ops
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/_validate_sparse_bsc_tensor_args_compositeimplicitautograd_dispatch.h
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// @generated by torchgen/gen.py from DispatchKeyFunction.h
|
| 3 |
+
|
| 4 |
+
// NB: The implementing C++ file is RegisterDispatchKey.cpp
|
| 5 |
+
|
| 6 |
+
// The only #includes we need are for custom classes that have defaults in the C++ API
|
| 7 |
+
#include <c10/core/MemoryFormat.h>
|
| 8 |
+
#include <c10/core/Scalar.h>
|
| 9 |
+
#include <ATen/core/Reduction.h>
|
| 10 |
+
|
| 11 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 12 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 13 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 14 |
+
#include <ATen/core/ATen_fwd.h>
|
| 15 |
+
|
| 16 |
+
namespace at {
|
| 17 |
+
|
| 18 |
+
namespace compositeimplicitautograd {
|
| 19 |
+
|
| 20 |
+
TORCH_API void _validate_sparse_bsc_tensor_args(const at::Tensor & ccol_indices, const at::Tensor & row_indices, const at::Tensor & values, at::IntArrayRef size);
|
| 21 |
+
|
| 22 |
+
} // namespace compositeimplicitautograd
|
| 23 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/adaptive_avg_pool3d_backward.h
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Function.h
|
| 4 |
+
|
| 5 |
+
#include <ATen/Context.h>
|
| 6 |
+
#include <ATen/DeviceGuard.h>
|
| 7 |
+
#include <ATen/TensorUtils.h>
|
| 8 |
+
#include <ATen/TracerMode.h>
|
| 9 |
+
#include <ATen/core/Generator.h>
|
| 10 |
+
#include <ATen/core/Reduction.h>
|
| 11 |
+
#include <ATen/core/Tensor.h>
|
| 12 |
+
#include <c10/core/Scalar.h>
|
| 13 |
+
#include <c10/core/Storage.h>
|
| 14 |
+
#include <c10/core/TensorOptions.h>
|
| 15 |
+
#include <c10/util/Deprecated.h>
|
| 16 |
+
#include <optional>
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#include <ATen/ops/adaptive_avg_pool3d_backward_ops.h>
|
| 21 |
+
|
| 22 |
+
namespace at {
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
// aten::adaptive_avg_pool3d_backward.grad_input(Tensor grad_output, Tensor self, *, Tensor(a!) grad_input) -> Tensor(a!)
|
| 26 |
+
inline at::Tensor & adaptive_avg_pool3d_backward_out(at::Tensor & grad_input, const at::Tensor & grad_output, const at::Tensor & self) {
|
| 27 |
+
return at::_ops::adaptive_avg_pool3d_backward_grad_input::call(grad_output, self, grad_input);
|
| 28 |
+
}
|
| 29 |
+
// aten::adaptive_avg_pool3d_backward.grad_input(Tensor grad_output, Tensor self, *, Tensor(a!) grad_input) -> Tensor(a!)
|
| 30 |
+
inline at::Tensor & adaptive_avg_pool3d_backward_outf(const at::Tensor & grad_output, const at::Tensor & self, at::Tensor & grad_input) {
|
| 31 |
+
return at::_ops::adaptive_avg_pool3d_backward_grad_input::call(grad_output, self, grad_input);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
}
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/addr.h
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Function.h
|
| 4 |
+
|
| 5 |
+
#include <ATen/Context.h>
|
| 6 |
+
#include <ATen/DeviceGuard.h>
|
| 7 |
+
#include <ATen/TensorUtils.h>
|
| 8 |
+
#include <ATen/TracerMode.h>
|
| 9 |
+
#include <ATen/core/Generator.h>
|
| 10 |
+
#include <ATen/core/Reduction.h>
|
| 11 |
+
#include <ATen/core/Tensor.h>
|
| 12 |
+
#include <c10/core/Scalar.h>
|
| 13 |
+
#include <c10/core/Storage.h>
|
| 14 |
+
#include <c10/core/TensorOptions.h>
|
| 15 |
+
#include <c10/util/Deprecated.h>
|
| 16 |
+
#include <optional>
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#include <ATen/ops/addr_ops.h>
|
| 21 |
+
|
| 22 |
+
namespace at {
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
// aten::addr(Tensor self, Tensor vec1, Tensor vec2, *, Scalar beta=1, Scalar alpha=1) -> Tensor
|
| 26 |
+
inline at::Tensor addr(const at::Tensor & self, const at::Tensor & vec1, const at::Tensor & vec2, const at::Scalar & beta=1, const at::Scalar & alpha=1) {
|
| 27 |
+
return at::_ops::addr::call(self, vec1, vec2, beta, alpha);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
// aten::addr.out(Tensor self, Tensor vec1, Tensor vec2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!)
|
| 31 |
+
inline at::Tensor & addr_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & vec1, const at::Tensor & vec2, const at::Scalar & beta=1, const at::Scalar & alpha=1) {
|
| 32 |
+
return at::_ops::addr_out::call(self, vec1, vec2, beta, alpha, out);
|
| 33 |
+
}
|
| 34 |
+
// aten::addr.out(Tensor self, Tensor vec1, Tensor vec2, *, Scalar beta=1, Scalar alpha=1, Tensor(a!) out) -> Tensor(a!)
|
| 35 |
+
inline at::Tensor & addr_outf(const at::Tensor & self, const at::Tensor & vec1, const at::Tensor & vec2, const at::Scalar & beta, const at::Scalar & alpha, at::Tensor & out) {
|
| 36 |
+
return at::_ops::addr_out::call(self, vec1, vec2, beta, alpha, out);
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
}
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/bilinear_native.h
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from NativeFunction.h
|
| 4 |
+
|
| 5 |
+
#include <c10/core/Scalar.h>
|
| 6 |
+
#include <c10/core/Storage.h>
|
| 7 |
+
#include <c10/core/TensorOptions.h>
|
| 8 |
+
#include <c10/util/Deprecated.h>
|
| 9 |
+
#include <optional>
|
| 10 |
+
#include <c10/core/QScheme.h>
|
| 11 |
+
#include <ATen/core/Reduction.h>
|
| 12 |
+
#include <ATen/core/Tensor.h>
|
| 13 |
+
#include <tuple>
|
| 14 |
+
#include <vector>
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
namespace at {
|
| 18 |
+
namespace native {
|
| 19 |
+
TORCH_API at::Tensor bilinear(const at::Tensor & input1, const at::Tensor & input2, const at::Tensor & weight, const ::std::optional<at::Tensor> & bias={});
|
| 20 |
+
} // namespace native
|
| 21 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/bmm_cpu_dispatch.h
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// @generated by torchgen/gen.py from DispatchKeyFunction.h
|
| 3 |
+
|
| 4 |
+
// NB: The implementing C++ file is RegisterDispatchKey.cpp
|
| 5 |
+
|
| 6 |
+
// The only #includes we need are for custom classes that have defaults in the C++ API
|
| 7 |
+
#include <c10/core/MemoryFormat.h>
|
| 8 |
+
#include <c10/core/Scalar.h>
|
| 9 |
+
#include <ATen/core/Reduction.h>
|
| 10 |
+
|
| 11 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 12 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 13 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 14 |
+
#include <ATen/core/ATen_fwd.h>
|
| 15 |
+
|
| 16 |
+
namespace at {
|
| 17 |
+
|
| 18 |
+
namespace cpu {
|
| 19 |
+
|
| 20 |
+
TORCH_API at::Tensor bmm(const at::Tensor & self, const at::Tensor & mat2);
|
| 21 |
+
TORCH_API at::Tensor & bmm_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & mat2);
|
| 22 |
+
TORCH_API at::Tensor & bmm_outf(const at::Tensor & self, const at::Tensor & mat2, at::Tensor & out);
|
| 23 |
+
|
| 24 |
+
} // namespace cpu
|
| 25 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/ccol_indices_copy_ops.h
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Operator.h
|
| 4 |
+
|
| 5 |
+
#include <tuple>
|
| 6 |
+
#include <vector>
|
| 7 |
+
|
| 8 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 9 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 10 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 11 |
+
#include <ATen/core/ATen_fwd.h>
|
| 12 |
+
|
| 13 |
+
namespace at {
|
| 14 |
+
namespace _ops {
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
struct TORCH_API ccol_indices_copy {
|
| 18 |
+
using schema = at::Tensor (const at::Tensor &);
|
| 19 |
+
using ptr_schema = schema*;
|
| 20 |
+
// See Note [static constexpr char* members for windows NVCC]
|
| 21 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::ccol_indices_copy")
|
| 22 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "")
|
| 23 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "ccol_indices_copy(Tensor self) -> Tensor")
|
| 24 |
+
static at::Tensor call(const at::Tensor & self);
|
| 25 |
+
static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self);
|
| 26 |
+
};
|
| 27 |
+
|
| 28 |
+
struct TORCH_API ccol_indices_copy_out {
|
| 29 |
+
using schema = at::Tensor & (const at::Tensor &, at::Tensor &);
|
| 30 |
+
using ptr_schema = schema*;
|
| 31 |
+
// See Note [static constexpr char* members for windows NVCC]
|
| 32 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::ccol_indices_copy")
|
| 33 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out")
|
| 34 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "ccol_indices_copy.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!)")
|
| 35 |
+
static at::Tensor & call(const at::Tensor & self, at::Tensor & out);
|
| 36 |
+
static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Tensor & out);
|
| 37 |
+
};
|
| 38 |
+
|
| 39 |
+
}} // namespace at::_ops
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/coalesce.h
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Function.h
|
| 4 |
+
|
| 5 |
+
#include <ATen/Context.h>
|
| 6 |
+
#include <ATen/DeviceGuard.h>
|
| 7 |
+
#include <ATen/TensorUtils.h>
|
| 8 |
+
#include <ATen/TracerMode.h>
|
| 9 |
+
#include <ATen/core/Generator.h>
|
| 10 |
+
#include <ATen/core/Reduction.h>
|
| 11 |
+
#include <ATen/core/Tensor.h>
|
| 12 |
+
#include <c10/core/Scalar.h>
|
| 13 |
+
#include <c10/core/Storage.h>
|
| 14 |
+
#include <c10/core/TensorOptions.h>
|
| 15 |
+
#include <c10/util/Deprecated.h>
|
| 16 |
+
#include <optional>
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#include <ATen/ops/coalesce_ops.h>
|
| 21 |
+
|
| 22 |
+
namespace at {
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
}
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/cross_entropy_loss.h
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Function.h
|
| 4 |
+
|
| 5 |
+
#include <ATen/Context.h>
|
| 6 |
+
#include <ATen/DeviceGuard.h>
|
| 7 |
+
#include <ATen/TensorUtils.h>
|
| 8 |
+
#include <ATen/TracerMode.h>
|
| 9 |
+
#include <ATen/core/Generator.h>
|
| 10 |
+
#include <ATen/core/Reduction.h>
|
| 11 |
+
#include <ATen/core/Tensor.h>
|
| 12 |
+
#include <c10/core/Scalar.h>
|
| 13 |
+
#include <c10/core/Storage.h>
|
| 14 |
+
#include <c10/core/TensorOptions.h>
|
| 15 |
+
#include <c10/util/Deprecated.h>
|
| 16 |
+
#include <optional>
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#include <ATen/ops/cross_entropy_loss_ops.h>
|
| 21 |
+
|
| 22 |
+
namespace at {
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
// aten::cross_entropy_loss(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100, float label_smoothing=0.0) -> Tensor
|
| 26 |
+
inline at::Tensor cross_entropy_loss(const at::Tensor & self, const at::Tensor & target, const ::std::optional<at::Tensor> & weight={}, int64_t reduction=at::Reduction::Mean, int64_t ignore_index=-100, double label_smoothing=0.0) {
|
| 27 |
+
return at::_ops::cross_entropy_loss::call(self, target, weight, reduction, ignore_index, label_smoothing);
|
| 28 |
+
}
|
| 29 |
+
namespace symint {
|
| 30 |
+
template <typename T, typename = std::enable_if_t<std::is_same<T, int64_t>::value>>
|
| 31 |
+
at::Tensor cross_entropy_loss(const at::Tensor & self, const at::Tensor & target, const ::std::optional<at::Tensor> & weight={}, int64_t reduction=at::Reduction::Mean, int64_t ignore_index=-100, double label_smoothing=0.0) {
|
| 32 |
+
return at::_ops::cross_entropy_loss::call(self, target, weight, reduction, ignore_index, label_smoothing);
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
// aten::cross_entropy_loss(Tensor self, Tensor target, Tensor? weight=None, int reduction=Mean, SymInt ignore_index=-100, float label_smoothing=0.0) -> Tensor
|
| 37 |
+
inline at::Tensor cross_entropy_loss_symint(const at::Tensor & self, const at::Tensor & target, const ::std::optional<at::Tensor> & weight={}, int64_t reduction=at::Reduction::Mean, c10::SymInt ignore_index=-100, double label_smoothing=0.0) {
|
| 38 |
+
return at::_ops::cross_entropy_loss::call(self, target, weight, reduction, ignore_index, label_smoothing);
|
| 39 |
+
}
|
| 40 |
+
namespace symint {
|
| 41 |
+
template <typename T, typename = std::enable_if_t<std::is_same<T, c10::SymInt>::value>>
|
| 42 |
+
at::Tensor cross_entropy_loss(const at::Tensor & self, const at::Tensor & target, const ::std::optional<at::Tensor> & weight={}, int64_t reduction=at::Reduction::Mean, c10::SymInt ignore_index=-100, double label_smoothing=0.0) {
|
| 43 |
+
return at::_ops::cross_entropy_loss::call(self, target, weight, reduction, ignore_index, label_smoothing);
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
}
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/cudnn_convolution_add_relu_cuda_dispatch.h
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// @generated by torchgen/gen.py from DispatchKeyFunction.h
|
| 3 |
+
|
| 4 |
+
// NB: The implementing C++ file is RegisterDispatchKey.cpp
|
| 5 |
+
|
| 6 |
+
// The only #includes we need are for custom classes that have defaults in the C++ API
|
| 7 |
+
#include <c10/core/MemoryFormat.h>
|
| 8 |
+
#include <c10/core/Scalar.h>
|
| 9 |
+
#include <ATen/core/Reduction.h>
|
| 10 |
+
|
| 11 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 12 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 13 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 14 |
+
#include <ATen/core/ATen_fwd.h>
|
| 15 |
+
|
| 16 |
+
namespace at {
|
| 17 |
+
|
| 18 |
+
namespace cuda {
|
| 19 |
+
|
| 20 |
+
TORCH_API at::Tensor cudnn_convolution_add_relu(const at::Tensor & self, const at::Tensor & weight, const at::Tensor & z, const ::std::optional<at::Scalar> & alpha, const ::std::optional<at::Tensor> & bias, at::IntArrayRef stride, at::IntArrayRef padding, at::IntArrayRef dilation, int64_t groups);
|
| 21 |
+
TORCH_API at::Tensor cudnn_convolution_add_relu_symint(const at::Tensor & self, const at::Tensor & weight, const at::Tensor & z, const ::std::optional<at::Scalar> & alpha, const ::std::optional<at::Tensor> & bias, c10::SymIntArrayRef stride, c10::SymIntArrayRef padding, c10::SymIntArrayRef dilation, c10::SymInt groups);
|
| 22 |
+
|
| 23 |
+
} // namespace cuda
|
| 24 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/cummin_ops.h
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Operator.h
|
| 4 |
+
|
| 5 |
+
#include <tuple>
|
| 6 |
+
#include <vector>
|
| 7 |
+
|
| 8 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 9 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 10 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 11 |
+
#include <ATen/core/ATen_fwd.h>
|
| 12 |
+
|
| 13 |
+
namespace at {
|
| 14 |
+
namespace _ops {
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
struct TORCH_API cummin {
|
| 18 |
+
using schema = ::std::tuple<at::Tensor,at::Tensor> (const at::Tensor &, int64_t);
|
| 19 |
+
using ptr_schema = schema*;
|
| 20 |
+
// See Note [static constexpr char* members for windows NVCC]
|
| 21 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::cummin")
|
| 22 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "")
|
| 23 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "cummin(Tensor self, int dim) -> (Tensor values, Tensor indices)")
|
| 24 |
+
static ::std::tuple<at::Tensor,at::Tensor> call(const at::Tensor & self, int64_t dim);
|
| 25 |
+
static ::std::tuple<at::Tensor,at::Tensor> redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim);
|
| 26 |
+
};
|
| 27 |
+
|
| 28 |
+
struct TORCH_API cummin_out {
|
| 29 |
+
using schema = ::std::tuple<at::Tensor &,at::Tensor &> (const at::Tensor &, int64_t, at::Tensor &, at::Tensor &);
|
| 30 |
+
using ptr_schema = schema*;
|
| 31 |
+
// See Note [static constexpr char* members for windows NVCC]
|
| 32 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::cummin")
|
| 33 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out")
|
| 34 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "cummin.out(Tensor self, int dim, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices)")
|
| 35 |
+
static ::std::tuple<at::Tensor &,at::Tensor &> call(const at::Tensor & self, int64_t dim, at::Tensor & values, at::Tensor & indices);
|
| 36 |
+
static ::std::tuple<at::Tensor &,at::Tensor &> redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t dim, at::Tensor & values, at::Tensor & indices);
|
| 37 |
+
};
|
| 38 |
+
|
| 39 |
+
struct TORCH_API cummin_dimname {
|
| 40 |
+
using schema = ::std::tuple<at::Tensor,at::Tensor> (const at::Tensor &, at::Dimname);
|
| 41 |
+
using ptr_schema = schema*;
|
| 42 |
+
// See Note [static constexpr char* members for windows NVCC]
|
| 43 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::cummin")
|
| 44 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "dimname")
|
| 45 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "cummin.dimname(Tensor self, Dimname dim) -> (Tensor values, Tensor indices)")
|
| 46 |
+
static ::std::tuple<at::Tensor,at::Tensor> call(const at::Tensor & self, at::Dimname dim);
|
| 47 |
+
static ::std::tuple<at::Tensor,at::Tensor> redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim);
|
| 48 |
+
};
|
| 49 |
+
|
| 50 |
+
struct TORCH_API cummin_dimname_out {
|
| 51 |
+
using schema = ::std::tuple<at::Tensor &,at::Tensor &> (const at::Tensor &, at::Dimname, at::Tensor &, at::Tensor &);
|
| 52 |
+
using ptr_schema = schema*;
|
| 53 |
+
// See Note [static constexpr char* members for windows NVCC]
|
| 54 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::cummin")
|
| 55 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "dimname_out")
|
| 56 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "cummin.dimname_out(Tensor self, Dimname dim, *, Tensor(a!) values, Tensor(b!) indices) -> (Tensor(a!) values, Tensor(b!) indices)")
|
| 57 |
+
static ::std::tuple<at::Tensor &,at::Tensor &> call(const at::Tensor & self, at::Dimname dim, at::Tensor & values, at::Tensor & indices);
|
| 58 |
+
static ::std::tuple<at::Tensor &,at::Tensor &> redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::Dimname dim, at::Tensor & values, at::Tensor & indices);
|
| 59 |
+
};
|
| 60 |
+
|
| 61 |
+
}} // namespace at::_ops
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/cumprod_meta.h
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from NativeMetaFunction.h
|
| 4 |
+
|
| 5 |
+
#include <c10/core/Scalar.h>
|
| 6 |
+
#include <c10/core/Storage.h>
|
| 7 |
+
#include <c10/core/TensorOptions.h>
|
| 8 |
+
#include <c10/util/Deprecated.h>
|
| 9 |
+
#include <optional>
|
| 10 |
+
#include <c10/core/QScheme.h>
|
| 11 |
+
#include <ATen/core/Reduction.h>
|
| 12 |
+
#include <ATen/TensorIterator.h>
|
| 13 |
+
#include <ATen/TensorMeta.h>
|
| 14 |
+
#include <tuple>
|
| 15 |
+
#include <vector>
|
| 16 |
+
|
| 17 |
+
namespace at {
|
| 18 |
+
namespace meta {
|
| 19 |
+
|
| 20 |
+
struct TORCH_API structured_cumprod : public at::impl::MetaBase {
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
void meta(const at::Tensor & self, int64_t dim, ::std::optional<at::ScalarType> dtype);
|
| 24 |
+
};
|
| 25 |
+
|
| 26 |
+
} // namespace native
|
| 27 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/div_compositeexplicitautograd_dispatch.h
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// @generated by torchgen/gen.py from DispatchKeyFunction.h
|
| 3 |
+
|
| 4 |
+
// NB: The implementing C++ file is RegisterDispatchKey.cpp
|
| 5 |
+
|
| 6 |
+
// The only #includes we need are for custom classes that have defaults in the C++ API
|
| 7 |
+
#include <c10/core/MemoryFormat.h>
|
| 8 |
+
#include <c10/core/Scalar.h>
|
| 9 |
+
#include <ATen/core/Reduction.h>
|
| 10 |
+
|
| 11 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 12 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 13 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 14 |
+
#include <ATen/core/ATen_fwd.h>
|
| 15 |
+
|
| 16 |
+
namespace at {
|
| 17 |
+
|
| 18 |
+
namespace compositeexplicitautograd {
|
| 19 |
+
|
| 20 |
+
TORCH_API at::Tensor div(const at::Tensor & self, const at::Scalar & other);
|
| 21 |
+
TORCH_API at::Tensor & div_out(at::Tensor & out, const at::Tensor & self, const at::Scalar & other);
|
| 22 |
+
TORCH_API at::Tensor & div_outf(const at::Tensor & self, const at::Scalar & other, at::Tensor & out);
|
| 23 |
+
TORCH_API at::Tensor & div_(at::Tensor & self, const at::Scalar & other);
|
| 24 |
+
TORCH_API at::Tensor div(const at::Tensor & self, const at::Scalar & other, ::std::optional<c10::string_view> rounding_mode);
|
| 25 |
+
TORCH_API at::Tensor & div_out(at::Tensor & out, const at::Tensor & self, const at::Scalar & other, ::std::optional<c10::string_view> rounding_mode);
|
| 26 |
+
TORCH_API at::Tensor & div_outf(const at::Tensor & self, const at::Scalar & other, ::std::optional<c10::string_view> rounding_mode, at::Tensor & out);
|
| 27 |
+
TORCH_API at::Tensor & div_(at::Tensor & self, const at::Scalar & other, ::std::optional<c10::string_view> rounding_mode);
|
| 28 |
+
|
| 29 |
+
} // namespace compositeexplicitautograd
|
| 30 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/embedding_bag_compositeimplicitautograd_dispatch.h
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// @generated by torchgen/gen.py from DispatchKeyFunction.h
|
| 3 |
+
|
| 4 |
+
// NB: The implementing C++ file is RegisterDispatchKey.cpp
|
| 5 |
+
|
| 6 |
+
// The only #includes we need are for custom classes that have defaults in the C++ API
|
| 7 |
+
#include <c10/core/MemoryFormat.h>
|
| 8 |
+
#include <c10/core/Scalar.h>
|
| 9 |
+
#include <ATen/core/Reduction.h>
|
| 10 |
+
|
| 11 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 12 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 13 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 14 |
+
#include <ATen/core/ATen_fwd.h>
|
| 15 |
+
|
| 16 |
+
namespace at {
|
| 17 |
+
|
| 18 |
+
namespace compositeimplicitautograd {
|
| 19 |
+
|
| 20 |
+
TORCH_API ::std::tuple<at::Tensor,at::Tensor,at::Tensor,at::Tensor> embedding_bag(const at::Tensor & weight, const at::Tensor & indices, const at::Tensor & offsets, bool scale_grad_by_freq=false, int64_t mode=0, bool sparse=false, const ::std::optional<at::Tensor> & per_sample_weights={}, bool include_last_offset=false);
|
| 21 |
+
TORCH_API ::std::tuple<at::Tensor,at::Tensor,at::Tensor,at::Tensor> embedding_bag(const at::Tensor & weight, const at::Tensor & indices, const at::Tensor & offsets, bool scale_grad_by_freq, int64_t mode, bool sparse, const ::std::optional<at::Tensor> & per_sample_weights, bool include_last_offset, ::std::optional<int64_t> padding_idx);
|
| 22 |
+
|
| 23 |
+
} // namespace compositeimplicitautograd
|
| 24 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/empty_quantized_native.h
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from NativeFunction.h
|
| 4 |
+
|
| 5 |
+
#include <c10/core/Scalar.h>
|
| 6 |
+
#include <c10/core/Storage.h>
|
| 7 |
+
#include <c10/core/TensorOptions.h>
|
| 8 |
+
#include <c10/util/Deprecated.h>
|
| 9 |
+
#include <optional>
|
| 10 |
+
#include <c10/core/QScheme.h>
|
| 11 |
+
#include <ATen/core/Reduction.h>
|
| 12 |
+
#include <ATen/core/Tensor.h>
|
| 13 |
+
#include <tuple>
|
| 14 |
+
#include <vector>
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
namespace at {
|
| 18 |
+
namespace native {
|
| 19 |
+
TORCH_API at::Tensor & empty_quantized_out(at::IntArrayRef size, const at::Tensor & qtensor, ::std::optional<at::MemoryFormat> memory_format, at::Tensor & out);
|
| 20 |
+
TORCH_API at::Tensor empty_quantized(at::IntArrayRef size, const at::Tensor & qtensor, ::std::optional<at::ScalarType> dtype={}, ::std::optional<at::Layout> layout={}, ::std::optional<at::Device> device={}, ::std::optional<bool> pin_memory={}, ::std::optional<at::MemoryFormat> memory_format=::std::nullopt);
|
| 21 |
+
} // namespace native
|
| 22 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/expand_as_ops.h
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Operator.h
|
| 4 |
+
|
| 5 |
+
#include <tuple>
|
| 6 |
+
#include <vector>
|
| 7 |
+
|
| 8 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 9 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 10 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 11 |
+
#include <ATen/core/ATen_fwd.h>
|
| 12 |
+
|
| 13 |
+
namespace at {
|
| 14 |
+
namespace _ops {
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
struct TORCH_API expand_as {
|
| 18 |
+
using schema = at::Tensor (const at::Tensor &, const at::Tensor &);
|
| 19 |
+
using ptr_schema = schema*;
|
| 20 |
+
// See Note [static constexpr char* members for windows NVCC]
|
| 21 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::expand_as")
|
| 22 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "")
|
| 23 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "expand_as(Tensor(a) self, Tensor other) -> Tensor(a)")
|
| 24 |
+
static at::Tensor call(const at::Tensor & self, const at::Tensor & other);
|
| 25 |
+
static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & other);
|
| 26 |
+
};
|
| 27 |
+
|
| 28 |
+
}} // namespace at::_ops
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/exponential.h
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Function.h
|
| 4 |
+
|
| 5 |
+
#include <ATen/Context.h>
|
| 6 |
+
#include <ATen/DeviceGuard.h>
|
| 7 |
+
#include <ATen/TensorUtils.h>
|
| 8 |
+
#include <ATen/TracerMode.h>
|
| 9 |
+
#include <ATen/core/Generator.h>
|
| 10 |
+
#include <ATen/core/Reduction.h>
|
| 11 |
+
#include <ATen/core/Tensor.h>
|
| 12 |
+
#include <c10/core/Scalar.h>
|
| 13 |
+
#include <c10/core/Storage.h>
|
| 14 |
+
#include <c10/core/TensorOptions.h>
|
| 15 |
+
#include <c10/util/Deprecated.h>
|
| 16 |
+
#include <optional>
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#include <ATen/ops/exponential_ops.h>
|
| 21 |
+
|
| 22 |
+
namespace at {
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
// aten::exponential.out(Tensor self, float lambd=1, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!)
|
| 26 |
+
inline at::Tensor & exponential_out(at::Tensor & out, const at::Tensor & self, double lambd=1, ::std::optional<at::Generator> generator=::std::nullopt) {
|
| 27 |
+
return at::_ops::exponential_out::call(self, lambd, generator, out);
|
| 28 |
+
}
|
| 29 |
+
// aten::exponential.out(Tensor self, float lambd=1, *, Generator? generator=None, Tensor(a!) out) -> Tensor(a!)
|
| 30 |
+
inline at::Tensor & exponential_outf(const at::Tensor & self, double lambd, ::std::optional<at::Generator> generator, at::Tensor & out) {
|
| 31 |
+
return at::_ops::exponential_out::call(self, lambd, generator, out);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
// aten::exponential(Tensor self, float lambd=1, *, Generator? generator=None) -> Tensor
|
| 35 |
+
inline at::Tensor exponential(const at::Tensor & self, double lambd=1, ::std::optional<at::Generator> generator=::std::nullopt) {
|
| 36 |
+
return at::_ops::exponential::call(self, lambd, generator);
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
}
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/fbgemm_linear_fp16_weight_ops.h
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Operator.h
|
| 4 |
+
|
| 5 |
+
#include <tuple>
|
| 6 |
+
#include <vector>
|
| 7 |
+
|
| 8 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 9 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 10 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 11 |
+
#include <ATen/core/ATen_fwd.h>
|
| 12 |
+
|
| 13 |
+
namespace at {
|
| 14 |
+
namespace _ops {
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
struct TORCH_API fbgemm_linear_fp16_weight {
|
| 18 |
+
using schema = at::Tensor (const at::Tensor &, const at::Tensor &, const at::Tensor &);
|
| 19 |
+
using ptr_schema = schema*;
|
| 20 |
+
// See Note [static constexpr char* members for windows NVCC]
|
| 21 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::fbgemm_linear_fp16_weight")
|
| 22 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "")
|
| 23 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "fbgemm_linear_fp16_weight(Tensor input, Tensor packed_weight, Tensor bias) -> Tensor")
|
| 24 |
+
static at::Tensor call(const at::Tensor & input, const at::Tensor & packed_weight, const at::Tensor & bias);
|
| 25 |
+
static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & input, const at::Tensor & packed_weight, const at::Tensor & bias);
|
| 26 |
+
};
|
| 27 |
+
|
| 28 |
+
}} // namespace at::_ops
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/fft_fft2_ops.h
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Operator.h
|
| 4 |
+
|
| 5 |
+
#include <tuple>
|
| 6 |
+
#include <vector>
|
| 7 |
+
|
| 8 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 9 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 10 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 11 |
+
#include <ATen/core/ATen_fwd.h>
|
| 12 |
+
|
| 13 |
+
namespace at {
|
| 14 |
+
namespace _ops {
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
struct TORCH_API fft_fft2 {
|
| 18 |
+
using schema = at::Tensor (const at::Tensor &, at::OptionalSymIntArrayRef, at::IntArrayRef, ::std::optional<c10::string_view>);
|
| 19 |
+
using ptr_schema = schema*;
|
| 20 |
+
// See Note [static constexpr char* members for windows NVCC]
|
| 21 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::fft_fft2")
|
| 22 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "")
|
| 23 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "fft_fft2(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None) -> Tensor")
|
| 24 |
+
static at::Tensor call(const at::Tensor & self, at::OptionalSymIntArrayRef s, at::IntArrayRef dim, ::std::optional<c10::string_view> norm);
|
| 25 |
+
static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s, at::IntArrayRef dim, ::std::optional<c10::string_view> norm);
|
| 26 |
+
};
|
| 27 |
+
|
| 28 |
+
struct TORCH_API fft_fft2_out {
|
| 29 |
+
using schema = at::Tensor & (const at::Tensor &, at::OptionalSymIntArrayRef, at::IntArrayRef, ::std::optional<c10::string_view>, at::Tensor &);
|
| 30 |
+
using ptr_schema = schema*;
|
| 31 |
+
// See Note [static constexpr char* members for windows NVCC]
|
| 32 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::fft_fft2")
|
| 33 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out")
|
| 34 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "fft_fft2.out(Tensor self, SymInt[1]? s=None, int[1] dim=[-2,-1], str? norm=None, *, Tensor(a!) out) -> Tensor(a!)")
|
| 35 |
+
static at::Tensor & call(const at::Tensor & self, at::OptionalSymIntArrayRef s, at::IntArrayRef dim, ::std::optional<c10::string_view> norm, at::Tensor & out);
|
| 36 |
+
static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, at::OptionalSymIntArrayRef s, at::IntArrayRef dim, ::std::optional<c10::string_view> norm, at::Tensor & out);
|
| 37 |
+
};
|
| 38 |
+
|
| 39 |
+
}} // namespace at::_ops
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/fft_rfftfreq.h
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Function.h
|
| 4 |
+
|
| 5 |
+
#include <ATen/Context.h>
|
| 6 |
+
#include <ATen/DeviceGuard.h>
|
| 7 |
+
#include <ATen/TensorUtils.h>
|
| 8 |
+
#include <ATen/TracerMode.h>
|
| 9 |
+
#include <ATen/core/Generator.h>
|
| 10 |
+
#include <ATen/core/Reduction.h>
|
| 11 |
+
#include <ATen/core/Tensor.h>
|
| 12 |
+
#include <c10/core/Scalar.h>
|
| 13 |
+
#include <c10/core/Storage.h>
|
| 14 |
+
#include <c10/core/TensorOptions.h>
|
| 15 |
+
#include <c10/util/Deprecated.h>
|
| 16 |
+
#include <optional>
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#include <ATen/ops/fft_rfftfreq_ops.h>
|
| 21 |
+
|
| 22 |
+
namespace at {
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
// aten::fft_rfftfreq(int n, float d=1.0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor
|
| 26 |
+
inline at::Tensor fft_rfftfreq(int64_t n, double d=1.0, at::TensorOptions options={}) {
|
| 27 |
+
return at::_ops::fft_rfftfreq::call(n, d, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt());
|
| 28 |
+
}
|
| 29 |
+
// aten::fft_rfftfreq(int n, float d=1.0, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor
|
| 30 |
+
inline at::Tensor fft_rfftfreq(int64_t n, double d, ::std::optional<at::ScalarType> dtype, ::std::optional<at::Layout> layout, ::std::optional<at::Device> device, ::std::optional<bool> pin_memory) {
|
| 31 |
+
return at::_ops::fft_rfftfreq::call(n, d, dtype, layout, device, pin_memory);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
// aten::fft_rfftfreq.out(int n, float d=1.0, *, Tensor(a!) out) -> Tensor(a!)
|
| 35 |
+
inline at::Tensor & fft_rfftfreq_out(at::Tensor & out, int64_t n, double d=1.0) {
|
| 36 |
+
return at::_ops::fft_rfftfreq_out::call(n, d, out);
|
| 37 |
+
}
|
| 38 |
+
// aten::fft_rfftfreq.out(int n, float d=1.0, *, Tensor(a!) out) -> Tensor(a!)
|
| 39 |
+
inline at::Tensor & fft_rfftfreq_outf(int64_t n, double d, at::Tensor & out) {
|
| 40 |
+
return at::_ops::fft_rfftfreq_out::call(n, d, out);
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
}
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/gather_cpu_dispatch.h
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// @generated by torchgen/gen.py from DispatchKeyFunction.h
|
| 3 |
+
|
| 4 |
+
// NB: The implementing C++ file is RegisterDispatchKey.cpp
|
| 5 |
+
|
| 6 |
+
// The only #includes we need are for custom classes that have defaults in the C++ API
|
| 7 |
+
#include <c10/core/MemoryFormat.h>
|
| 8 |
+
#include <c10/core/Scalar.h>
|
| 9 |
+
#include <ATen/core/Reduction.h>
|
| 10 |
+
|
| 11 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 12 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 13 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 14 |
+
#include <ATen/core/ATen_fwd.h>
|
| 15 |
+
|
| 16 |
+
namespace at {
|
| 17 |
+
|
| 18 |
+
namespace cpu {
|
| 19 |
+
|
| 20 |
+
TORCH_API at::Tensor gather(const at::Tensor & self, int64_t dim, const at::Tensor & index, bool sparse_grad=false);
|
| 21 |
+
TORCH_API at::Tensor & gather_out(at::Tensor & out, const at::Tensor & self, int64_t dim, const at::Tensor & index, bool sparse_grad=false);
|
| 22 |
+
TORCH_API at::Tensor & gather_outf(const at::Tensor & self, int64_t dim, const at::Tensor & index, bool sparse_grad, at::Tensor & out);
|
| 23 |
+
|
| 24 |
+
} // namespace cpu
|
| 25 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/hardshrink_backward_meta.h
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from NativeMetaFunction.h
|
| 4 |
+
|
| 5 |
+
#include <c10/core/Scalar.h>
|
| 6 |
+
#include <c10/core/Storage.h>
|
| 7 |
+
#include <c10/core/TensorOptions.h>
|
| 8 |
+
#include <c10/util/Deprecated.h>
|
| 9 |
+
#include <optional>
|
| 10 |
+
#include <c10/core/QScheme.h>
|
| 11 |
+
#include <ATen/core/Reduction.h>
|
| 12 |
+
#include <ATen/TensorIterator.h>
|
| 13 |
+
#include <ATen/TensorMeta.h>
|
| 14 |
+
#include <tuple>
|
| 15 |
+
#include <vector>
|
| 16 |
+
|
| 17 |
+
namespace at {
|
| 18 |
+
namespace meta {
|
| 19 |
+
|
| 20 |
+
struct TORCH_API structured_hardshrink_backward : public TensorIteratorBase {
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
void meta(const at::Tensor & grad_out, const at::Tensor & self, const at::Scalar & lambd);
|
| 24 |
+
};
|
| 25 |
+
|
| 26 |
+
} // namespace native
|
| 27 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/is_complex_native.h
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from NativeFunction.h
|
| 4 |
+
|
| 5 |
+
#include <c10/core/Scalar.h>
|
| 6 |
+
#include <c10/core/Storage.h>
|
| 7 |
+
#include <c10/core/TensorOptions.h>
|
| 8 |
+
#include <c10/util/Deprecated.h>
|
| 9 |
+
#include <optional>
|
| 10 |
+
#include <c10/core/QScheme.h>
|
| 11 |
+
#include <ATen/core/Reduction.h>
|
| 12 |
+
#include <ATen/core/Tensor.h>
|
| 13 |
+
#include <tuple>
|
| 14 |
+
#include <vector>
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
namespace at {
|
| 18 |
+
namespace native {
|
| 19 |
+
TORCH_API bool is_complex(const at::Tensor & self);
|
| 20 |
+
} // namespace native
|
| 21 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/lgamma_meta.h
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from NativeMetaFunction.h
|
| 4 |
+
|
| 5 |
+
#include <c10/core/Scalar.h>
|
| 6 |
+
#include <c10/core/Storage.h>
|
| 7 |
+
#include <c10/core/TensorOptions.h>
|
| 8 |
+
#include <c10/util/Deprecated.h>
|
| 9 |
+
#include <optional>
|
| 10 |
+
#include <c10/core/QScheme.h>
|
| 11 |
+
#include <ATen/core/Reduction.h>
|
| 12 |
+
#include <ATen/TensorIterator.h>
|
| 13 |
+
#include <ATen/TensorMeta.h>
|
| 14 |
+
#include <tuple>
|
| 15 |
+
#include <vector>
|
| 16 |
+
|
| 17 |
+
namespace at {
|
| 18 |
+
namespace meta {
|
| 19 |
+
|
| 20 |
+
struct TORCH_API structured_lgamma : public TensorIteratorBase {
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
void meta(const at::Tensor & self);
|
| 24 |
+
};
|
| 25 |
+
|
| 26 |
+
} // namespace native
|
| 27 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/linalg_matrix_rank_compositeimplicitautograd_dispatch.h
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// @generated by torchgen/gen.py from DispatchKeyFunction.h
|
| 3 |
+
|
| 4 |
+
// NB: The implementing C++ file is RegisterDispatchKey.cpp
|
| 5 |
+
|
| 6 |
+
// The only #includes we need are for custom classes that have defaults in the C++ API
|
| 7 |
+
#include <c10/core/MemoryFormat.h>
|
| 8 |
+
#include <c10/core/Scalar.h>
|
| 9 |
+
#include <ATen/core/Reduction.h>
|
| 10 |
+
|
| 11 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 12 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 13 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 14 |
+
#include <ATen/core/ATen_fwd.h>
|
| 15 |
+
|
| 16 |
+
namespace at {
|
| 17 |
+
|
| 18 |
+
namespace compositeimplicitautograd {
|
| 19 |
+
|
| 20 |
+
TORCH_API at::Tensor linalg_matrix_rank(const at::Tensor & input, const ::std::optional<at::Tensor> & atol={}, const ::std::optional<at::Tensor> & rtol={}, bool hermitian=false);
|
| 21 |
+
TORCH_API at::Tensor & linalg_matrix_rank_out(at::Tensor & out, const at::Tensor & input, const ::std::optional<at::Tensor> & atol={}, const ::std::optional<at::Tensor> & rtol={}, bool hermitian=false);
|
| 22 |
+
TORCH_API at::Tensor & linalg_matrix_rank_outf(const at::Tensor & input, const ::std::optional<at::Tensor> & atol, const ::std::optional<at::Tensor> & rtol, bool hermitian, at::Tensor & out);
|
| 23 |
+
TORCH_API at::Tensor linalg_matrix_rank(const at::Tensor & self, ::std::optional<double> atol, ::std::optional<double> rtol, bool hermitian=false);
|
| 24 |
+
TORCH_API at::Tensor & linalg_matrix_rank_out(at::Tensor & out, const at::Tensor & self, ::std::optional<double> atol, ::std::optional<double> rtol, bool hermitian=false);
|
| 25 |
+
TORCH_API at::Tensor & linalg_matrix_rank_outf(const at::Tensor & self, ::std::optional<double> atol, ::std::optional<double> rtol, bool hermitian, at::Tensor & out);
|
| 26 |
+
TORCH_API at::Tensor linalg_matrix_rank(const at::Tensor & self, double tol, bool hermitian=false);
|
| 27 |
+
TORCH_API at::Tensor & linalg_matrix_rank_out(at::Tensor & out, const at::Tensor & self, double tol, bool hermitian=false);
|
| 28 |
+
TORCH_API at::Tensor & linalg_matrix_rank_outf(const at::Tensor & self, double tol, bool hermitian, at::Tensor & out);
|
| 29 |
+
TORCH_API at::Tensor linalg_matrix_rank(const at::Tensor & input, const at::Tensor & tol, bool hermitian=false);
|
| 30 |
+
TORCH_API at::Tensor & linalg_matrix_rank_out(at::Tensor & out, const at::Tensor & input, const at::Tensor & tol, bool hermitian=false);
|
| 31 |
+
TORCH_API at::Tensor & linalg_matrix_rank_outf(const at::Tensor & input, const at::Tensor & tol, bool hermitian, at::Tensor & out);
|
| 32 |
+
|
| 33 |
+
} // namespace compositeimplicitautograd
|
| 34 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/linalg_vecdot_compositeimplicitautograd_dispatch.h
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// @generated by torchgen/gen.py from DispatchKeyFunction.h
|
| 3 |
+
|
| 4 |
+
// NB: The implementing C++ file is RegisterDispatchKey.cpp
|
| 5 |
+
|
| 6 |
+
// The only #includes we need are for custom classes that have defaults in the C++ API
|
| 7 |
+
#include <c10/core/MemoryFormat.h>
|
| 8 |
+
#include <c10/core/Scalar.h>
|
| 9 |
+
#include <ATen/core/Reduction.h>
|
| 10 |
+
|
| 11 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 12 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 13 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 14 |
+
#include <ATen/core/ATen_fwd.h>
|
| 15 |
+
|
| 16 |
+
namespace at {
|
| 17 |
+
|
| 18 |
+
namespace compositeimplicitautograd {
|
| 19 |
+
|
| 20 |
+
TORCH_API at::Tensor linalg_vecdot(const at::Tensor & x, const at::Tensor & y, int64_t dim=-1);
|
| 21 |
+
TORCH_API at::Tensor & linalg_vecdot_out(at::Tensor & out, const at::Tensor & x, const at::Tensor & y, int64_t dim=-1);
|
| 22 |
+
TORCH_API at::Tensor & linalg_vecdot_outf(const at::Tensor & x, const at::Tensor & y, int64_t dim, at::Tensor & out);
|
| 23 |
+
|
| 24 |
+
} // namespace compositeimplicitautograd
|
| 25 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/linear_compositeexplicitautograd_dispatch.h
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// @generated by torchgen/gen.py from DispatchKeyFunction.h
|
| 3 |
+
|
| 4 |
+
// NB: The implementing C++ file is RegisterDispatchKey.cpp
|
| 5 |
+
|
| 6 |
+
// The only #includes we need are for custom classes that have defaults in the C++ API
|
| 7 |
+
#include <c10/core/MemoryFormat.h>
|
| 8 |
+
#include <c10/core/Scalar.h>
|
| 9 |
+
#include <ATen/core/Reduction.h>
|
| 10 |
+
|
| 11 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 12 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 13 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 14 |
+
#include <ATen/core/ATen_fwd.h>
|
| 15 |
+
|
| 16 |
+
namespace at {
|
| 17 |
+
|
| 18 |
+
namespace compositeexplicitautograd {
|
| 19 |
+
|
| 20 |
+
TORCH_API at::Tensor & linear_out(at::Tensor & out, const at::Tensor & input, const at::Tensor & weight, const ::std::optional<at::Tensor> & bias={});
|
| 21 |
+
TORCH_API at::Tensor & linear_outf(const at::Tensor & input, const at::Tensor & weight, const ::std::optional<at::Tensor> & bias, at::Tensor & out);
|
| 22 |
+
|
| 23 |
+
} // namespace compositeexplicitautograd
|
| 24 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/log10_cuda_dispatch.h
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// @generated by torchgen/gen.py from DispatchKeyFunction.h
|
| 3 |
+
|
| 4 |
+
// NB: The implementing C++ file is RegisterDispatchKey.cpp
|
| 5 |
+
|
| 6 |
+
// The only #includes we need are for custom classes that have defaults in the C++ API
|
| 7 |
+
#include <c10/core/MemoryFormat.h>
|
| 8 |
+
#include <c10/core/Scalar.h>
|
| 9 |
+
#include <ATen/core/Reduction.h>
|
| 10 |
+
|
| 11 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 12 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 13 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 14 |
+
#include <ATen/core/ATen_fwd.h>
|
| 15 |
+
|
| 16 |
+
namespace at {
|
| 17 |
+
|
| 18 |
+
namespace cuda {
|
| 19 |
+
|
| 20 |
+
TORCH_API at::Tensor log10(const at::Tensor & self);
|
| 21 |
+
TORCH_API at::Tensor & log10_out(at::Tensor & out, const at::Tensor & self);
|
| 22 |
+
TORCH_API at::Tensor & log10_outf(const at::Tensor & self, at::Tensor & out);
|
| 23 |
+
TORCH_API at::Tensor & log10_(at::Tensor & self);
|
| 24 |
+
|
| 25 |
+
} // namespace cuda
|
| 26 |
+
} // namespace at
|
vllm/lib/python3.10/site-packages/torch/include/ATen/ops/log10_native.h
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from NativeFunction.h
|
| 4 |
+
|
| 5 |
+
#include <c10/core/Scalar.h>
|
| 6 |
+
#include <c10/core/Storage.h>
|
| 7 |
+
#include <c10/core/TensorOptions.h>
|
| 8 |
+
#include <c10/util/Deprecated.h>
|
| 9 |
+
#include <optional>
|
| 10 |
+
#include <c10/core/QScheme.h>
|
| 11 |
+
#include <ATen/core/Reduction.h>
|
| 12 |
+
#include <ATen/core/Tensor.h>
|
| 13 |
+
#include <tuple>
|
| 14 |
+
#include <vector>
|
| 15 |
+
#include <ATen/ops/log10_meta.h>
|
| 16 |
+
|
| 17 |
+
namespace at {
|
| 18 |
+
namespace native {
|
| 19 |
+
struct TORCH_API structured_log10_out : public at::meta::structured_log10 {
|
| 20 |
+
void impl(const at::Tensor & self, const at::Tensor & out);
|
| 21 |
+
};
|
| 22 |
+
} // namespace native
|
| 23 |
+
} // namespace at
|