tf.io.gfile.get_registered_schemes
bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
Returns the currently registered filesystem schemes.
View aliases
Compat aliases for migration
See
Migration guide for
more details.
tf.compat.v1.io.gfile.get_registered_schemes
tf.io.gfile.get_registered_schemes()
The tf.io.gfile
APIs, in addition to accepting traditional filesystem paths,
also accept file URIs that begin with a scheme. For example, the local
filesystem path /tmp/tf
can also be addressed as file:///tmp/tf
. In this
case, the scheme is file
, followed by ://
and then the path, according to
URI syntax.
This function returns the currently registered schemes that will be recognized
by tf.io.gfile
APIs. This includes both built-in schemes and those
registered by other TensorFlow filesystem implementations, for example those
provided by TensorFlow I/O.
The empty string is always included, and represents the "scheme" for regular
local filesystem paths.
Returns |
List of string schemes, e.g. ['', 'file', 'ram'] , in arbitrary order.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[],null,["# tf.io.gfile.get_registered_schemes\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/python/lib/io/file_io.py#L980-L1004) |\n\nReturns the currently registered filesystem schemes.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.io.gfile.get_registered_schemes`](https://www.tensorflow.org/api_docs/python/tf/io/gfile/get_registered_schemes)\n\n\u003cbr /\u003e\n\n tf.io.gfile.get_registered_schemes()\n\nThe [`tf.io.gfile`](../../../tf/io/gfile) APIs, in addition to accepting traditional filesystem paths,\nalso accept file URIs that begin with a scheme. For example, the local\nfilesystem path `/tmp/tf` can also be addressed as `file:///tmp/tf`. In this\ncase, the scheme is `file`, followed by `://` and then the path, according to\n[URI syntax](https://datatracker.ietf.org/doc/html/rfc3986#section-3).\n\nThis function returns the currently registered schemes that will be recognized\nby [`tf.io.gfile`](../../../tf/io/gfile) APIs. This includes both built-in schemes and those\nregistered by other TensorFlow filesystem implementations, for example those\nprovided by [TensorFlow I/O](https://github.com/tensorflow/io).\n\nThe empty string is always included, and represents the \"scheme\" for regular\nlocal filesystem paths.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| List of string schemes, e.g. `['', 'file', 'ram']`, in arbitrary order. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|----------------------------------------------------------------------------------|-------------------------|\n| [`errors.OpError`](https://www.tensorflow.org/api_docs/python/tf/errors/OpError) | If the operation fails. |\n\n\u003cbr /\u003e"]]