{"id":13513462,"url":"https://github.com/pfnet-research/menoh-ruby","last_synced_at":"2025-04-13T10:27:10.254Z","repository":{"id":56883274,"uuid":"139380325","full_name":"pfnet-research/menoh-ruby","owner":"pfnet-research","description":"Ruby binding for Menoh DNN inference library","archived":false,"fork":false,"pushed_at":"2020-03-02T09:06:36.000Z","size":7531,"stargazers_count":26,"open_issues_count":4,"forks_count":4,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-11T05:39:55.375Z","etag":null,"topics":["deep-learning","mkl-dnn","neural-network","ruby-extension"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pfnet-research.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-02T02:17:44.000Z","updated_at":"2023-09-10T15:40:05.000Z","dependencies_parsed_at":"2022-08-20T13:10:52.618Z","dependency_job_id":null,"html_url":"https://github.com/pfnet-research/menoh-ruby","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet-research%2Fmenoh-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet-research%2Fmenoh-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet-research%2Fmenoh-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfnet-research%2Fmenoh-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pfnet-research","download_url":"https://codeload.github.com/pfnet-research/menoh-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248697409,"owners_count":21147322,"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":["deep-learning","mkl-dnn","neural-network","ruby-extension"],"created_at":"2024-08-01T05:00:26.627Z","updated_at":"2025-04-13T10:27:10.229Z","avatar_url":"https://github.com/pfnet-research.png","language":"C","readme":"# Menoh Ruby Extension \n\n[![Build status (Travis-CI)](https://img.shields.io/travis/pfnet-research/menoh-ruby/master.svg)](https://travis-ci.org/pfnet-research/menoh-ruby)\n[![Build status (AppVeyor)](https://ci.appveyor.com/api/projects/status/reowah7bx31vep7o?svg=true)](https://ci.appveyor.com/project/pfnet-research/menoh-ruby)\n\nThis is a Ruby extension of [Menoh](https://github.com/pfnet-research/menoh); an ONNX runtime engine developed by [@okdshin](https://github.com/okdshin) and their team [@pfnet-research](https://github.com/pfnet-research).\n\n## Installation\n\nYou need `ruby-dev`, `bundler`, `rake-compiler` to install this extension.\n\n```bash\n$ sudo apt install ruby-dev\n$ sudo gem install bundler\n$ sudo gem install rake-compiler\n```\n\nAnd add this line to your application's Gemfile:\n\n```ruby\ngem 'menoh'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install menoh\n\n## Usage\n\nPlease see [Menoh tutorial](https://github.com/pfnet-research/menoh/blob/master/docs/tutorial.md) and [menoh-ruby tutorial](https://github.com/pfnet-research/menoh-ruby/blob/master/docs/tutorial.md).\nAnd we have [some examples](https://github.com/pfnet-research/menoh-ruby/blob/master/example/) on this repository.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install ruby dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n### Docker\n\nYou can develop on docker. For details, please refer to [Dockerfile](Dockerfile).\n\n```bash\n$ export IMAGE_VERSION=0.0.0 # please specify version\n$ sudo -E docker build -t menoh-ruby:$IMAGE_VERSION `pwd`\n$ sudo -E docker run -it --name menoh-ruby-test -v $(pwd):/opt/menoh-ruby --entrypoint /bin/bash menoh-ruby:$IMAGE_VERSION\n＄ cd /opt/menoh-ruby\n＄ rake \u0026\u0026 rake install\n\n```\n\n#### attach after stop\n\n```bash\nsudo docker start menoh-ruby-test bash\nsudo docker attach menoh-ruby-test\n```\n\n### Vagrant\n\nYou can also set up the development environment by using Vagrant. The details are available on [Vagrantfile](Vagrantfile).\n\n```bash\n$ vagrant up\n$ vagrant ssh\n$ cd /vagrant\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/pfnet-research/menoh-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Menoh Ruby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/pfnet-research/menoh-ruby/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfnet-research%2Fmenoh-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpfnet-research%2Fmenoh-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfnet-research%2Fmenoh-ruby/lists"}