-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tensorstore/python: Improve initialization of flags and logging
Upon module loading the stderr logging threshold is set to INFO. Also exposes ts.parse_tensorstore_flags which allows callers to invoke ts.parse_tensorstore_flags(sys.argv) to correctly propagate ---tensorstore... command line flags to tensorstore. When running as python module these settings are otherwise unavailable. NOTE: C++ users will want to call the following in their code: absl::ParseCommandLine(argc, argv); absl::InitializeLog(); absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo); PiperOrigin-RevId: 675771349 Change-Id: Iacacc7e1a920b1e5b319b6a24a13302a2094bf50
- Loading branch information
1 parent
99573a2
commit 041a999
Showing
6 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters