{"id":61445,"library":"torch-th","title":"Torch TH","description":"Torch's TH library provides core tensor and mathematical operations for the Torch framework.","status":"deprecated","version":"2019-04-19","language":"cpp","source_language":null,"source_url":null,"tags":["tensor","math","deprecated","torch"],"install":[{"cmd":"vcpkg install torch-th","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(torch_th CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE torch::TH)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"TH/TH.h","correct":"#include <TH/TH.h>"}],"quickstart":{"code":"#include <TH/TH.h>\nint main() {\n    THLongTensor *tensor = THLongTensor_newWithSize1d(10);\n    THLongTensor_free(tensor);\n    return 0;\n}","lang":"cpp","description":"Create and free a 1D long tensor"},"warnings":[{"fix":"Migrate to ATen or libtorch.","message":"TH is deprecated in favor of ATen and c10; no longer maintained.","severity":"breaking","affected_versions":">=2019-04-19"}],"env_vars":null,"search_vec":"'core':8 'deprec':19 'framework':16 'librari':6 'math':18 'mathemat':11 'oper':12 'provid':7 'tensor':9,17 'th':2,5 'torch':1,3,15,20","created_at":"2026-06-17T04:50:59.801910+00:00","updated_at":"2026-06-17T04:50:59.801910+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}