{"id":19443913,"url":"https://github.com/sharvil/tf-explorer","last_synced_at":"2025-04-25T00:32:51.686Z","repository":{"id":75270630,"uuid":"153184080","full_name":"sharvil/tf-explorer","owner":"sharvil","description":"A command-line interface tool to explore TensorFlow checkpoints.","archived":false,"fork":false,"pushed_at":"2019-05-31T19:10:09.000Z","size":19,"stargazers_count":27,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T13:44:12.552Z","etag":null,"topics":["tensorflow","tools"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sharvil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2018-10-15T21:28:14.000Z","updated_at":"2024-12-08T19:31:07.000Z","dependencies_parsed_at":"2023-06-05T23:30:12.521Z","dependency_job_id":null,"html_url":"https://github.com/sharvil/tf-explorer","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/sharvil%2Ftf-explorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharvil%2Ftf-explorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharvil%2Ftf-explorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharvil%2Ftf-explorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharvil","download_url":"https://codeload.github.com/sharvil/tf-explorer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250733560,"owners_count":21478392,"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":["tensorflow","tools"],"created_at":"2024-11-10T15:45:38.899Z","updated_at":"2025-04-25T00:32:51.678Z","avatar_url":"https://github.com/sharvil.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tf-explorer\nA command-line interface tool to explore [TensorFlow checkpoints](https://www.tensorflow.org/guide/checkpoints).\n\n`tf-explorer` presents a hierarchical directory structure for variables in your checkpoint. You can\nlist (`ls`), rename (`mv`), and print (`cat`) stored variables and scopes. And, of course, you\ncan navigate (`cd`) through the scope hierarchy.\n\nAll changes to variables and scopes are kept in-memory until you're ready to commit them back to\nyour checkpoint with `commit`. As a matter of precaution, I recommend keeping a backup of your\noriginal checkpoint before committing any changes to it.\n\n## Tutorial\nThe following example opens the latest checkpoint in `/path/to/checkpoint_dir`, prints the\ncurrent value of the `global_step` variable, moves it into the `foo/bar/` scope, and renames\nthe variable to `old_global_step`.\n\n```\n  $ ./tf-explorer.sh /path/to/checkpoint_dir\n```\n```\n  Checkpoint loaded from /path/to/checkpoint_dir/model.ckpt-106901.\n  Type help or ? to list commands.\n\n  \u003e ls\n  beta1_power\n  beta2_power\n  @conditioning/\n  global_step\n  @student/\n  @teacher/\n  \u003e cat global_step\n  106901\n  \u003e mv global_step foo/bar/old_global_step\n```\n\nThe @ symbol indicates that the scope is \"pure\", i.e. it isn't both a variable name and\na scope name. You cannot print out a pure scope since it doesn't store a value.\n\nAt this point, the changes to `global_step` are in-memory only. If you want to view which\nchanges are in-memory but haven't been written to disk, use the `mutations` command:\n\n```\n  \u003e mutations\n  global_step -\u003e foo/bar/old_global_step\n```\n\nIf you're happy with these changes, write them back to disk:\n\n```\n  \u003e commit\n```\n\nOtherwise, you can either continue exploring / making further changes or exit `tf-explorer`:\n\n```\n  \u003e exit\n  WARNING: there are pending mutations that have not been written to disk. Discard (y/N)? y\n```\n\n## License\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharvil%2Ftf-explorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharvil%2Ftf-explorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharvil%2Ftf-explorer/lists"}