{"id":14959114,"url":"https://github.com/philipperemy/tensorflow-fifo-queue-example","last_synced_at":"2025-10-24T16:31:00.558Z","repository":{"id":70249858,"uuid":"85257572","full_name":"philipperemy/tensorflow-fifo-queue-example","owner":"philipperemy","description":"Example on how to use a Tensorflow Queue to feed data to your models.","archived":false,"fork":false,"pushed_at":"2020-03-30T14:41:22.000Z","size":10,"stargazers_count":38,"open_issues_count":0,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-31T03:12:27.801Z","etag":null,"topics":["deep-learning","machine-learning","tensorflow","tensorflow-1-0","tensorflow-examples","tensorflow-tutorials"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/philipperemy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["philipperemy"]}},"created_at":"2017-03-17T01:26:38.000Z","updated_at":"2024-08-12T19:28:28.000Z","dependencies_parsed_at":"2023-03-04T13:00:33.728Z","dependency_job_id":null,"html_url":"https://github.com/philipperemy/tensorflow-fifo-queue-example","commit_stats":{"total_commits":14,"total_committers":4,"mean_commits":3.5,"dds":0.6428571428571428,"last_synced_commit":"1e38e6e907b7856e954caeeb01d52f7d66e54de0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipperemy%2Ftensorflow-fifo-queue-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipperemy%2Ftensorflow-fifo-queue-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipperemy%2Ftensorflow-fifo-queue-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipperemy%2Ftensorflow-fifo-queue-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philipperemy","download_url":"https://codeload.github.com/philipperemy/tensorflow-fifo-queue-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237999601,"owners_count":19399914,"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","machine-learning","tensorflow","tensorflow-1-0","tensorflow-examples","tensorflow-tutorials"],"created_at":"2024-09-24T13:18:52.112Z","updated_at":"2025-10-24T16:30:57.228Z","avatar_url":"https://github.com/philipperemy.png","language":"Python","funding_links":["https://github.com/sponsors/philipperemy"],"categories":[],"sub_categories":[],"readme":"# Tensorflow FIFO Queue example\n### Example on how to use a Tensorflow Queue to feed data to your models. \nCompatible with Tensorflow 1.x. Please upgrade if you have Tensorflow 0.x.\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://www.tensorflow.org/images/tf_logo_transp.png\" width=\"200\"\u003e\u003cbr\u003e\u003cbr\u003e\n\u003c/div\u003e\n\n## How to use it?\n\n```bash\ngit clone git@github.com:philipperemy/tensorflow-fifo-queue-example.git tf-queue\ncd tf-queue\n# make sure at least Tensorflow 1.0.1 is installed.\npython main.py # to start the example which uses the Tensorflow queue.\n```\n\n## Output\n\n```\nsize queue = 2\n[[[ 20.68614197  20.15329361  20.39105034  20.90393257  20.8211174 ]\n  [ 20.21601105  20.20680237  20.63046837  20.11518097  20.2508316 ]\n  [ 20.362957    20.39513588  20.35568619  20.95798302  20.71342659]\n  [ 20.58656502  20.94277954  20.59599304  20.31328011  20.04895973]\n  [ 20.71495628  20.77456474  20.75753403  20.87974739  20.58901596]]]\nsize queue = 32\n[[[ 20.00242424  20.91688347  20.93519402  20.9217968   20.38695526]\n  [ 20.87318802  20.75139427  20.08540344  20.78540802  20.7677784 ]\n  [ 20.1153717   20.56425858  20.81686783  20.97789001  20.55836296]\n  [ 20.5869751   20.9584446   20.81368828  20.98579597  20.55318069]\n  [ 20.02428436  20.96101379  20.37574196  20.5288887   20.97519875]]]\nsize queue = 32\n[[[ 20.72234535  20.75441933  20.00969887  20.94854736  20.19271469]\n  [ 20.01235771  20.57665443  20.37540245  20.1708107   20.77712822]\n  [ 20.82086945  20.53391647  20.28100777  20.27137947  20.87246895]\n  [ 20.63288879  20.74639893  20.88269043  20.81982231  20.77005577]\n  [ 20.57556725  20.25545311  20.99351501  20.12363815  20.93238068]]]\n  ```\n  \n  In this example, we define:\n  - one pusher thread (data) - The data thread (could be more than 1 thread) is used to generate the data and push it to the queue.\n  - one poller thread (model) - The model thread (should be 1) is used to pop the queue and process the data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilipperemy%2Ftensorflow-fifo-queue-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilipperemy%2Ftensorflow-fifo-queue-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilipperemy%2Ftensorflow-fifo-queue-example/lists"}