{"id":26278507,"url":"https://github.com/smoke-y/athena","last_synced_at":"2026-03-01T22:38:48.935Z","repository":{"id":279614726,"uuid":"918905536","full_name":"smoke-y/Athena","owner":"smoke-y","description":"Deep learning library","archived":false,"fork":false,"pushed_at":"2025-03-13T11:44:24.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T12:33:48.515Z","etag":null,"topics":["cuda","deep-learning","deep-learning-library"],"latest_commit_sha":null,"homepage":"","language":"Python","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/smoke-y.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-19T07:15:07.000Z","updated_at":"2025-03-13T11:44:28.000Z","dependencies_parsed_at":"2025-02-26T14:26:11.648Z","dependency_job_id":"3937274a-4e84-4f26-99c0-c9abab124ce1","html_url":"https://github.com/smoke-y/Athena","commit_stats":null,"previous_names":["smoke-y/athena"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoke-y%2FAthena","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoke-y%2FAthena/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoke-y%2FAthena/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smoke-y%2FAthena/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smoke-y","download_url":"https://codeload.github.com/smoke-y/Athena/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243581090,"owners_count":20314167,"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":["cuda","deep-learning","deep-learning-library"],"created_at":"2025-03-14T13:16:12.278Z","updated_at":"2026-03-01T22:38:48.882Z","avatar_url":"https://github.com/smoke-y.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Athena\n\nAnother deep learning library.\nWe don't construct AST tree tho. Athena compiles to ops directly which can be run on CPU(numpy) or GPU(custom cuda kernels).\n\n```python\nfrom athena import *\n\nPROG.driver = CudaDriver()\n\n'''\nShape Static Tensor\nBy marking a tensor to be static(sshape=True) in shape, the tensor\nis allocated in the beginning on the device and is not freed until the end\n'''\nx = Tensor(data=None, shape = (1,2), num=3, sshape=True)\nv = Tensor(data=[[1,2]])\nd = x + v\n\n#compile the above operations\nPROG.compile()\n\n#print the ops generated in the forward pass\nPROG.printForward()\n#print the ops generated in the backward pass\nPROG.printBackward()\n\nPROG.forward()\nprint(d.numpy())  #no need to .detach()\nPROG.backward(d)  #backward with respect to Tensor d\n```\n```\nAllocTmp: (1, 2), 0\nAllocTmp: (1, 2), 0\nAllocTmp: (1, 2), 0\nAdd: \u003cTensor (1, 2) @ 0\u003e, \u003cTensor (1, 2) @ 2\u003e\nAdd: \u003cTensor (1, 2) @ 1\u003e, \u003cTensor (1, 2) @ 5\u003e\nAdd: \u003cTensor (1, 2) @ 3\u003e, \u003cTensor (1, 2) @ 5\u003e\n[[4. 5.]]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmoke-y%2Fathena","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmoke-y%2Fathena","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmoke-y%2Fathena/lists"}