LostTech.TensorFlow : API Documentation

Type tf.resource_loader

Namespace tensorflow

Public static methods

object get_data_files_path()

Get a direct path to the data files colocated with the script.
Returns
object
The directory where files specified in data attribute of py_test and py_binary are stored.

object get_data_files_path_dyn()

Get a direct path to the data files colocated with the script.
Returns
object
The directory where files specified in data attribute of py_test and py_binary are stored.

object get_path_to_datafile(Byte[] path)

Get the path to the specified file in the data dependencies.

The path is relative to tensorflow/
Parameters
Byte[] path
a string resource path relative to tensorflow/
Returns
object
The path to the specified file present in the data attribute of py_test or py_binary.

object get_path_to_datafile(string path)

Get the path to the specified file in the data dependencies.

The path is relative to tensorflow/
Parameters
string path
a string resource path relative to tensorflow/
Returns
object
The path to the specified file present in the data attribute of py_test or py_binary.

object get_path_to_datafile_dyn(object path)

Get the path to the specified file in the data dependencies.

The path is relative to tensorflow/
Parameters
object path
a string resource path relative to tensorflow/
Returns
object
The path to the specified file present in the data attribute of py_test or py_binary.

string get_root_dir_with_all_resources()

Get a root directory containing all the data attributes in the build rule.
Returns
string
The path to the specified file present in the data attribute of py_test or py_binary. Falls back to returning the same as get_data_files_path if it fails to detect a bazel runfiles directory.

object get_root_dir_with_all_resources_dyn()

Get a root directory containing all the data attributes in the build rule.
Returns
object
The path to the specified file present in the data attribute of py_test or py_binary. Falls back to returning the same as get_data_files_path if it fails to detect a bazel runfiles directory.

object load_resource(string path)

Load the resource at given path, where path is relative to tensorflow/.
Parameters
string path
a string resource path relative to tensorflow/.
Returns
object
The contents of that resource.

object load_resource_dyn(object path)

Load the resource at given path, where path is relative to tensorflow/.
Parameters
object path
a string resource path relative to tensorflow/.
Returns
object
The contents of that resource.

object readahead_file_path(object path, string readahead)

Readahead files not implemented; simply returns given path.

object readahead_file_path_dyn(object path, ImplicitContainer<T> readahead)

Readahead files not implemented; simply returns given path.

Public properties

PythonFunctionContainer get_data_files_path_fn get;

PythonFunctionContainer get_path_to_datafile_fn get;

PythonFunctionContainer get_root_dir_with_all_resources_fn get;

PythonFunctionContainer load_resource_fn get;

PythonFunctionContainer readahead_file_path_fn get;