{"id":15700304,"url":"https://github.com/soumik12345/libtorch-examples","last_synced_at":"2025-11-09T01:02:07.413Z","repository":{"id":48892881,"uuid":"380033741","full_name":"soumik12345/libtorch-examples","owner":"soumik12345","description":"Basic Deep Learning examples using LibTorch C++ frontend","archived":false,"fork":false,"pushed_at":"2021-07-10T11:29:11.000Z","size":69,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T13:13:01.155Z","etag":null,"topics":["cpp","deep-learning","libtorch","torch"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soumik12345.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-24T19:43:17.000Z","updated_at":"2024-12-14T13:39:10.000Z","dependencies_parsed_at":"2022-09-17T04:24:36.905Z","dependency_job_id":null,"html_url":"https://github.com/soumik12345/libtorch-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soumik12345%2Flibtorch-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soumik12345%2Flibtorch-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soumik12345%2Flibtorch-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soumik12345%2Flibtorch-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soumik12345","download_url":"https://codeload.github.com/soumik12345/libtorch-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253745195,"owners_count":21957319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","deep-learning","libtorch","torch"],"created_at":"2024-10-03T19:47:43.719Z","updated_at":"2025-11-09T01:02:07.287Z","avatar_url":"https://github.com/soumik12345.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LibTorch Examples [WIP]\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003eMacOSX (Clang 12.0)\u003c/th\u003e\n    \u003cth\u003eLinux (Cuda 11)\u003c/th\u003e\n    \u003cth\u003eLinux (gcc 9.3)\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"https://github.com/soumik12345/libtorch-examples/workflows/build-cmake-macos/badge.svg\" alt=\"build-failing\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"https://img.shields.io/badge/build-passing-brightgreen\" alt=\"build-failing\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"https://github.com/soumik12345/libtorch-examples/workflows/build-cmake-linux/badge.svg\" alt=\"build-failing\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## Instructions\n\n### Build and Compile\n\n1. `git clone https://github.com/soumik12345/libtorch-examples --recursive`\n\n2. `cmake -DINSTALL_TORCH=true -DCUDA=true -DINSTALL_PYTHON_DEPENDENCIES=true -DDOWNLOAD_MNIST=true ../`\n\n    - `-DINSTALL_TORCH` -\u003e Automatically download and install libtorch during build.\n    - `-DCUDA` -\u003e Download GPU Version of LibTorch.\n    - `-DINSTALL_PYTHON_DEPENDENCIES` -\u003e Install Python Dependencies during build.\n    - `-DDOWNLOAD_MNIST` -\u003e Download the MNIST Dataset during build.\n    \n3. `make`\n\n### Run Executables\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003cth\u003eImplementation\u003c/th\u003e\n        \u003cth\u003eRun Instructions\u003c/th\u003e\n        \u003cth\u003eMNIST\u003c/th\u003e\n        \u003cth\u003eCIFAR10\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003ca href=\"./libtorch-examples/linear-regression\"\u003eLinear Regression\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\n            \u003col\u003e\n                \u003cli\u003e\u003ccode\u003ecd build\u003c/code\u003e\u003c/li\u003e\n                \u003cli\u003e\u003ccode\u003e./libtorch-examples/linear-regression/linear-regression\u003c/code\u003e\u003c/li\u003e\n            \u003c/ol\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\u0026#10060;\u003c/td\u003e\n        \u003ctd\u003e\u0026#10060;\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003ca href=\"./libtorch-examples/logistic-regression\"\u003eLogistic Regression\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\n            \u003col\u003e\n                \u003cli\u003e\u003ccode\u003ecd ./build/libtorch-examples/logistic-regression\u003c/code\u003e\u003c/li\u003e\n                \u003cli\u003e\u003ccode\u003e./logistic-regression\u003c/code\u003e\u003c/li\u003e\n            \u003c/ol\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\u0026#9989;\u003c/td\u003e\n        \u003ctd\u003e\u0026#9202;\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003ca href=\"./libtorch-examples/multi-layered-perceptron\"\u003eMulti-Layered Perceptron\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\n            \u003col\u003e\n                \u003cli\u003e\u003ccode\u003ecd ./build/libtorch-examples/multi-layered-perceptron\u003c/code\u003e\u003c/li\u003e\n                \u003cli\u003e\u003ccode\u003e./multi-layered-perceptron\u003c/code\u003e\u003c/li\u003e\n            \u003c/ol\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\u0026#9989;\u003c/td\u003e\n        \u003ctd\u003e\u0026#9202;\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\u003ca href=\"./libtorch-examples/convnet\"\u003eConvolutional Neural Network\u003c/a\u003e\u003c/td\u003e\n        \u003ctd\u003e\n            \u003col\u003e\n                \u003cli\u003e\u003ccode\u003ecd ./build/libtorch-examples/convnet\u003c/code\u003e\u003c/li\u003e\n                \u003cli\u003e\u003ccode\u003e./convnet\u003c/code\u003e\u003c/li\u003e\n            \u003c/ol\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\u0026#9989;\u003c/td\u003e\n        \u003ctd\u003e\u0026#9202;\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoumik12345%2Flibtorch-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoumik12345%2Flibtorch-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoumik12345%2Flibtorch-examples/lists"}