René's URL Explorer Experiment


Title: Dynamically dispatch function but do not print result · Issue #231 · google/python-fire · GitHub

Open Graph Title: Dynamically dispatch function but do not print result · Issue #231 · google/python-fire

X Title: Dynamically dispatch function but do not print result · Issue #231 · google/python-fire

Description: Can Fire be used to dynamically dispatch a function as in the dict example but without printing the result? I would like to do something with the return value, for instance: if __name__ == "__main__": # inception and exception are functi...

Open Graph Description: Can Fire be used to dynamically dispatch a function as in the dict example but without printing the result? I would like to do something with the return value, for instance: if __name__ == "__main_...

X Description: Can Fire be used to dynamically dispatch a function as in the dict example but without printing the result? I would like to do something with the return value, for instance: if __name__ == "__...

Opengraph URL: https://github.com/google/python-fire/issues/231

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dynamically dispatch function but do not print result","articleBody":"Can Fire be used to dynamically dispatch a function as in the dict example but without printing the result? I would like to do something with the return value, for instance:\r\n\r\n```\r\nif __name__ == \"__main__\":\r\n    # inception and exception are functions that return keras models, \r\n    # each having its own parameters \r\n    ret = Fire.Fire({'inception': inception,\r\n                     'xception': xception})\r\n\r\n    # do something with ret\r\n```\r\n\r\nIf I try to run the previous code, for instance:\r\n        \r\n    python ./train.py inception 100 100 10\r\n\r\nI get the following error:\r\n\r\n```\r\nERROR: The function received no value for the required argument: inputs\r\n2020-03-03 16:30:13.774542: W tensorflow/python/util/util.cc:319] Sets are not currently considered sequences, but this may change in the future, so consider avoiding using them.\r\nUsage: train.py inception 100 100 10 - \u003cgroup|command|value> | --inputs=INPUTS \u003cflags> [ARGS]...\r\n  available groups:      inbound_nodes | input | input_names | input_shape |\r\n                         inputs | layers | losses | metrics | metrics_names |\r\n                         non_trainable_variables | non_trainable_weights |\r\n                         outbound_nodes | output | output_names |\r\n                         output_shape | outputs | state_updates | submodules |\r\n                         trainable_variables | trainable_weights | updates |\r\n                         variables | weights\r\n  available commands:    add_loss | add_metric | add_update | add_variable |\r\n                         add_weight | apply | build | call | compile |\r\n                         compute_mask | compute_output_shape |\r\n                         compute_output_signature | count_params | evaluate |\r\n                         evaluate_generator | fit | fit_generator |\r\n                         from_config | get_config | get_input_at |\r\n                         get_input_mask_at | get_input_shape_at | get_layer |\r\n                         get_losses_for | get_output_at | get_output_mask_at |\r\n                         get_output_shape_at | get_updates_for | get_weights |\r\n                         load_weights | name_scope | predict |\r\n                         predict_generator | predict_on_batch | reset_metrics |\r\n                         reset_states | save | save_weights | set_weights |\r\n                         summary | test_on_batch | to_json | to_yaml |\r\n                         train_on_batch | with_name_scope\r\n  available values:      activity_regularizer | built | dtype | dynamic |\r\n                         input_mask | input_spec | name | optimizer |\r\n                         output_mask | run_eagerly | stateful |\r\n                         supports_masking | trainable\r\n  flags are accepted\r\n\r\nFor detailed information on this command, run:\r\n  train.py inception 100 100 10 - -- --help`\r\n```","author":{"url":"https://github.com/albertotb","@type":"Person","name":"albertotb"},"datePublished":"2020-03-03T16:08:27Z","url":"https://github.com/google/python-fire/issues/231"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:af45051f-49ae-97a2-7153-cc7a0a74b853
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE510:30263F:15C141F:1D3A9BD:6AFFE3DD
html-safe-nonce702cba2e3f590947c5dab8aaf036684d07017b70d7f7bf05cd3d5f4a705e48b4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTEwOjMwMjYzRjoxNUMxNDFGOjFEM0E5QkQ6NkFGRkUzREQiLCJ2aXNpdG9yX2lkIjoiNjgzMDY1MjIwNDc5NDI0MjAxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac271d9fcbf183c8ac1d34f795ee62159dc9b56b7b1192c052d78ea7e646e4aa99
hovercard-subject-tagissue:574775368
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/google/python-fire/231/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a8bf6efcb13227493161569b13a266e3eef019066ae5d537b542cd1d5cb95baf/google/python-fire/issues/231
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a8bf6efcb13227493161569b13a266e3eef019066ae5d537b542cd1d5cb95baf/google/python-fire/issues/231
og:image:altCan Fire be used to dynamically dispatch a function as in the dict example but without printing the result? I would like to do something with the return value, for instance: if __name__ == "__main_...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealbertotb
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
turbo-cache-controlno-preview
go-importgithub.com/google/python-fire git https://github.com/google/python-fire.git
octolytics-dimension-user_id1342004
octolytics-dimension-user_logingoogle
octolytics-dimension-repository_id82729529
octolytics-dimension-repository_nwogoogle/python-fire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id82729529
octolytics-dimension-repository_network_root_nwogoogle/python-fire
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/google/python-fire/issues/231#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fpython-fire%2Fissues%2F231
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogle%2Fpython-fire%2Fissues%2F231
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=google%2Fpython-fire
Reloadhttps://github.com/google/python-fire/issues/231
Reloadhttps://github.com/google/python-fire/issues/231
Reloadhttps://github.com/google/python-fire/issues/231
googlehttps://github.com/google
python-firehttps://github.com/google/python-fire
Codehttps://github.com/google/python-fire
Issues146 (146)https://github.com/google/python-fire/issues
Pull requests85 (85)https://github.com/google/python-fire/pulls
Actionshttps://github.com/google/python-fire/actions
Projectshttps://github.com/google/python-fire/projects
Security and qualityhttps://github.com/google/python-fire/security
Insightshttps://github.com/google/python-fire/insights
https://github.com/google/python-fire
New issuehttps://github.com/login?return_to=https://github.com/google/python-fire/issues/231
New issuehttps://github.com/login?return_to=https://github.com/google/python-fire/issues/231
Dynamically dispatch function but do not print resulthttps://github.com/google/python-fire/issues/231#top
enhancementhttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/albertotb
albertotbhttps://github.com/albertotb
on Mar 3, 2020https://github.com/google/python-fire/issues/231#issue-574775368
dbieberhttps://github.com/dbieber
enhancementhttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Mar 4, 2020https://github.com/google/python-fire/issues/231#event-3097365074
https://github.com/dbieber
dbieberhttps://github.com/dbieber
on Mar 4, 2020https://github.com/google/python-fire/issues/231#issuecomment-594645696
https://github.com/dbieber
dbieberhttps://github.com/dbieber
on Mar 9, 2020https://github.com/google/python-fire/issues/231#issuecomment-596783954
#188https://github.com/google/python-fire/issues/188
https://github.com/spyoungtech
spyoungtechhttps://github.com/spyoungtech
on Mar 25, 2020https://github.com/google/python-fire/issues/231#issuecomment-604093648
Sign up for freehttps://github.com/signup?return_to=https://github.com/google/python-fire/issues/231
Sign in to commenthttps://github.com/login?return_to=https://github.com/google/python-fire/issues/231
enhancementhttps://github.com/google/python-fire/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.