@Namespace(value="tensorflow") @NoOffset public static class tensorflow.Env extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
Env(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Status |
CopyFile(BytePointer src,
BytePointer target)
\brief Copy the src to target.
|
tensorflow.Status |
CopyFile(String src,
String target) |
tensorflow.Status |
CreateDir(BytePointer dirname)
\brief Creates the specified directory.
|
tensorflow.Status |
CreateDir(String dirname) |
boolean |
CreateUniqueFileName(BytePointer prefix,
BytePointer suffix)
Creates a local unique file name that starts with |prefix| and ends with
|suffix|.
|
boolean |
CreateUniqueFileName(BytePointer prefix,
String suffix) |
static tensorflow.Env |
Default()
\brief Returns a default environment suitable for the current operating
system.
|
tensorflow.Status |
DeleteDir(BytePointer dirname)
Deletes the specified directory.
|
tensorflow.Status |
DeleteDir(String dirname) |
tensorflow.Status |
DeleteFile(BytePointer fname)
Deletes the named file.
|
tensorflow.Status |
DeleteFile(String fname) |
tensorflow.Status |
DeleteRecursively(BytePointer dirname,
long[] undeleted_files,
long... undeleted_dirs) |
tensorflow.Status |
DeleteRecursively(BytePointer dirname,
LongBuffer undeleted_files,
LongBuffer undeleted_dirs) |
tensorflow.Status |
DeleteRecursively(BytePointer dirname,
LongPointer undeleted_files,
LongPointer undeleted_dirs)
\brief Deletes the specified directory and all subdirectories and files
underneath it.
|
tensorflow.Status |
DeleteRecursively(String dirname,
long[] undeleted_files,
long... undeleted_dirs) |
tensorflow.Status |
DeleteRecursively(String dirname,
LongBuffer undeleted_files,
LongBuffer undeleted_dirs) |
tensorflow.Status |
DeleteRecursively(String dirname,
LongPointer undeleted_files,
LongPointer undeleted_dirs) |
tensorflow.Status |
FileExists(BytePointer fname)
Returns OK if the named path exists and NOT_FOUND otherwise.
|
tensorflow.Status |
FileExists(String fname) |
boolean |
FilesExist(tensorflow.StringVector files,
tensorflow.Status status)
Returns true if all the listed files exist, false otherwise.
|
tensorflow.Status |
FlushFileSystemCaches()
\brief Flush filesystem caches for all registered filesystems.
|
BytePointer |
FormatLibraryFileName(BytePointer name,
BytePointer version) |
String |
FormatLibraryFileName(String name,
String version) |
tensorflow.Status |
GetChildren(BytePointer dir,
tensorflow.StringVector result)
\brief Stores in *result the names of the children of the specified
directory.
|
tensorflow.Status |
GetChildren(String dir,
tensorflow.StringVector result) |
BytePointer |
GetExecutablePath()
\brief Returns the absolute path of the current executable.
|
tensorflow.Status |
GetFileSize(BytePointer fname,
long... file_size) |
tensorflow.Status |
GetFileSize(BytePointer fname,
LongBuffer file_size) |
tensorflow.Status |
GetFileSize(BytePointer fname,
LongPointer file_size)
Stores the size of
fname in *file_size. |
tensorflow.Status |
GetFileSize(String fname,
long... file_size) |
tensorflow.Status |
GetFileSize(String fname,
LongBuffer file_size) |
tensorflow.Status |
GetFileSize(String fname,
LongPointer file_size) |
tensorflow.Status |
GetFileSystemForFile(BytePointer fname,
PointerPointer result)
\brief Returns the FileSystem object to handle operations on the file
specified by 'fname'.
|
tensorflow.Status |
GetFileSystemForFile(BytePointer fname,
tensorflow.FileSystem result) |
tensorflow.Status |
GetFileSystemForFile(String fname,
tensorflow.FileSystem result) |
void |
GetLocalTempDirectories(tensorflow.StringVector list) |
tensorflow.Status |
GetMatchingPaths(BytePointer pattern,
tensorflow.StringVector results)
\brief Given a pattern, stores in *results the set of paths that matches
that pattern.
|
tensorflow.Status |
GetMatchingPaths(String pattern,
tensorflow.StringVector results) |
tensorflow.Status |
GetRegisteredFileSystemSchemes(tensorflow.StringVector schemes)
\brief Returns the file system schemes registered for this Env.
|
tensorflow.Status |
GetSymbolFromLibrary(Pointer handle,
BytePointer symbol_name,
Pointer symbol) |
tensorflow.Status |
GetSymbolFromLibrary(Pointer handle,
BytePointer symbol_name,
PointerPointer symbol) |
tensorflow.Status |
GetSymbolFromLibrary(Pointer handle,
String symbol_name,
Pointer symbol) |
tensorflow.Status |
IsDirectory(BytePointer fname)
\brief Returns whether the given path is a directory or not.
|
tensorflow.Status |
IsDirectory(String fname) |
tensorflow.Status |
LoadLibrary(BytePointer library_filename,
Pointer handle) |
tensorflow.Status |
LoadLibrary(BytePointer library_filename,
PointerPointer handle) |
tensorflow.Status |
LoadLibrary(String library_filename,
Pointer handle) |
boolean |
LocalTempFilename(BytePointer filename)
Creates a local unique temporary file name.
|
boolean |
MatchPath(BytePointer path,
BytePointer pattern)
\brief Returns true if the path matches the given pattern.
|
boolean |
MatchPath(String path,
String pattern) |
tensorflow.Status |
NewAppendableFile(BytePointer fname,
tensorflow.WritableFile result)
\brief Creates an object that either appends to an existing file, or
writes to a new file (if the file does not exist to begin with).
|
tensorflow.Status |
NewAppendableFile(String fname,
tensorflow.WritableFile result) |
tensorflow.Status |
NewRandomAccessFile(BytePointer fname,
tensorflow.RandomAccessFile result)
\brief Creates a brand new random access read-only file with the
specified name.
|
tensorflow.Status |
NewRandomAccessFile(String fname,
tensorflow.RandomAccessFile result) |
tensorflow.Status |
NewReadOnlyMemoryRegionFromFile(BytePointer fname,
tensorflow.ReadOnlyMemoryRegion result)
\brief Creates a readonly region of memory with the file context.
|
tensorflow.Status |
NewReadOnlyMemoryRegionFromFile(String fname,
tensorflow.ReadOnlyMemoryRegion result) |
tensorflow.Status |
NewWritableFile(BytePointer fname,
tensorflow.WritableFile result)
\brief Creates an object that writes to a new file with the specified
name.
|
tensorflow.Status |
NewWritableFile(String fname,
tensorflow.WritableFile result) |
long |
NowMicros()
\brief Returns the number of micro-seconds since the Unix epoch.
|
long |
NowNanos()
\brief Returns the number of nano-seconds since the Unix epoch.
|
long |
NowSeconds()
\brief Returns the number of seconds since the Unix epoch.
|
tensorflow.Status |
RecursivelyCreateDir(BytePointer dirname)
\brief Creates the specified directory and all the necessary
subdirectories.
|
tensorflow.Status |
RecursivelyCreateDir(String dirname) |
tensorflow.Status |
RegisterFileSystem(BytePointer scheme,
Pointer factory)
\brief Register a file system for a scheme.
|
tensorflow.Status |
RegisterFileSystem(String scheme,
Pointer factory) |
tensorflow.Status |
RenameFile(BytePointer src,
BytePointer target)
\brief Renames file src to target.
|
tensorflow.Status |
RenameFile(String src,
String target) |
void |
SchedClosure(tensorflow.Fn closure) |
void |
SchedClosureAfter(long micros,
tensorflow.Fn closure) |
void |
SleepForMicroseconds(long micros)
Sleeps/delays the thread for the prescribed number of micro-seconds.
|
tensorflow.Thread |
StartThread(tensorflow.ThreadOptions thread_options,
BytePointer name,
tensorflow.Fn fn)
\brief Returns a new thread that is running fn() and is identified
(for debugging/performance-analysis) by "name".
|
tensorflow.Thread |
StartThread(tensorflow.ThreadOptions thread_options,
String name,
tensorflow.Fn fn) |
tensorflow.Status |
Stat(BytePointer fname,
tensorflow.FileStatistics stat)
Obtains statistics for the given path.
|
tensorflow.Status |
Stat(String fname,
tensorflow.FileStatistics stat) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic Env(Pointer p)
Pointer.Pointer(Pointer).public static tensorflow.Env Default()
@ByVal public tensorflow.Status GetFileSystemForFile(@StdString BytePointer fname, @Cast(value="tensorflow::FileSystem**") PointerPointer result)
@ByVal public tensorflow.Status GetFileSystemForFile(@StdString BytePointer fname, @ByPtrPtr tensorflow.FileSystem result)
@ByVal public tensorflow.Status GetFileSystemForFile(@StdString String fname, @ByPtrPtr tensorflow.FileSystem result)
@ByVal public tensorflow.Status GetRegisteredFileSystemSchemes(tensorflow.StringVector schemes)
@ByVal public tensorflow.Status RegisterFileSystem(@StdString BytePointer scheme, @ByVal @Cast(value="tensorflow::FileSystemRegistry::Factory*") Pointer factory)
@ByVal public tensorflow.Status RegisterFileSystem(@StdString String scheme, @ByVal @Cast(value="tensorflow::FileSystemRegistry::Factory*") Pointer factory)
@ByVal public tensorflow.Status FlushFileSystemCaches()
@ByVal public tensorflow.Status NewRandomAccessFile(@StdString BytePointer fname, @UniquePtr tensorflow.RandomAccessFile result)
On success, stores a pointer to the new file in *result and returns OK. On failure stores NULL in *result and returns non-OK. If the file does not exist, returns a non-OK status. The returned file may be concurrently accessed by multiple threads. The ownership of the returned RandomAccessFile is passed to the caller and the object should be deleted when is not used. The file object shouldn't live longer than the Env object.
@ByVal public tensorflow.Status NewRandomAccessFile(@StdString String fname, @UniquePtr tensorflow.RandomAccessFile result)
@ByVal public tensorflow.Status NewWritableFile(@StdString BytePointer fname, @UniquePtr tensorflow.WritableFile result)
@ByVal public tensorflow.Status NewWritableFile(@StdString String fname, @UniquePtr tensorflow.WritableFile result)
@ByVal public tensorflow.Status NewAppendableFile(@StdString BytePointer fname, @UniquePtr tensorflow.WritableFile result)
@ByVal public tensorflow.Status NewAppendableFile(@StdString String fname, @UniquePtr tensorflow.WritableFile result)
@ByVal public tensorflow.Status NewReadOnlyMemoryRegionFromFile(@StdString BytePointer fname, @UniquePtr tensorflow.ReadOnlyMemoryRegion result)
@ByVal public tensorflow.Status NewReadOnlyMemoryRegionFromFile(@StdString String fname, @UniquePtr tensorflow.ReadOnlyMemoryRegion result)
@ByVal public tensorflow.Status FileExists(@StdString BytePointer fname)
@ByVal public tensorflow.Status FileExists(@StdString String fname)
@Cast(value="bool") public boolean FilesExist(@Const @ByRef tensorflow.StringVector files, @StdVector tensorflow.Status status)
@ByVal public tensorflow.Status GetChildren(@StdString BytePointer dir, tensorflow.StringVector result)
@ByVal public tensorflow.Status GetChildren(@StdString String dir, tensorflow.StringVector result)
@Cast(value="bool") public boolean MatchPath(@StdString BytePointer path, @StdString BytePointer pattern)
@Cast(value="bool") public boolean MatchPath(@StdString String path, @StdString String pattern)
@ByVal public tensorflow.Status GetMatchingPaths(@StdString BytePointer pattern, tensorflow.StringVector results)
pattern in FileSystem::GetMatchingPaths.@ByVal public tensorflow.Status GetMatchingPaths(@StdString String pattern, tensorflow.StringVector results)
@ByVal public tensorflow.Status DeleteFile(@StdString BytePointer fname)
@ByVal public tensorflow.Status DeleteFile(@StdString String fname)
@ByVal public tensorflow.Status DeleteRecursively(@StdString BytePointer dirname, @Cast(value="tensorflow::int64*") LongPointer undeleted_files, @Cast(value="tensorflow::int64*") LongPointer undeleted_dirs)
@ByVal public tensorflow.Status DeleteRecursively(@StdString String dirname, @Cast(value="tensorflow::int64*") LongBuffer undeleted_files, @Cast(value="tensorflow::int64*") LongBuffer undeleted_dirs)
@ByVal public tensorflow.Status DeleteRecursively(@StdString BytePointer dirname, @Cast(value="tensorflow::int64*") long[] undeleted_files, @Cast(value="tensorflow::int64*") long... undeleted_dirs)
@ByVal public tensorflow.Status DeleteRecursively(@StdString String dirname, @Cast(value="tensorflow::int64*") LongPointer undeleted_files, @Cast(value="tensorflow::int64*") LongPointer undeleted_dirs)
@ByVal public tensorflow.Status DeleteRecursively(@StdString BytePointer dirname, @Cast(value="tensorflow::int64*") LongBuffer undeleted_files, @Cast(value="tensorflow::int64*") LongBuffer undeleted_dirs)
@ByVal public tensorflow.Status DeleteRecursively(@StdString String dirname, @Cast(value="tensorflow::int64*") long[] undeleted_files, @Cast(value="tensorflow::int64*") long... undeleted_dirs)
@ByVal public tensorflow.Status RecursivelyCreateDir(@StdString BytePointer dirname)
@ByVal public tensorflow.Status RecursivelyCreateDir(@StdString String dirname)
@ByVal public tensorflow.Status CreateDir(@StdString BytePointer dirname)
@ByVal public tensorflow.Status CreateDir(@StdString String dirname)
@ByVal public tensorflow.Status DeleteDir(@StdString BytePointer dirname)
@ByVal public tensorflow.Status DeleteDir(@StdString String dirname)
@ByVal public tensorflow.Status Stat(@StdString BytePointer fname, tensorflow.FileStatistics stat)
@ByVal public tensorflow.Status Stat(@StdString String fname, tensorflow.FileStatistics stat)
@ByVal public tensorflow.Status IsDirectory(@StdString BytePointer fname)
@ByVal public tensorflow.Status IsDirectory(@StdString String fname)
@ByVal public tensorflow.Status GetFileSize(@StdString BytePointer fname, @Cast(value="tensorflow::uint64*") LongPointer file_size)
fname in *file_size.@ByVal public tensorflow.Status GetFileSize(@StdString String fname, @Cast(value="tensorflow::uint64*") LongBuffer file_size)
@ByVal public tensorflow.Status GetFileSize(@StdString BytePointer fname, @Cast(value="tensorflow::uint64*") long... file_size)
@ByVal public tensorflow.Status GetFileSize(@StdString String fname, @Cast(value="tensorflow::uint64*") LongPointer file_size)
@ByVal public tensorflow.Status GetFileSize(@StdString BytePointer fname, @Cast(value="tensorflow::uint64*") LongBuffer file_size)
@ByVal public tensorflow.Status GetFileSize(@StdString String fname, @Cast(value="tensorflow::uint64*") long... file_size)
@ByVal public tensorflow.Status RenameFile(@StdString BytePointer src, @StdString BytePointer target)
@ByVal public tensorflow.Status RenameFile(@StdString String src, @StdString String target)
@ByVal public tensorflow.Status CopyFile(@StdString BytePointer src, @StdString BytePointer target)
@ByVal public tensorflow.Status CopyFile(@StdString String src, @StdString String target)
@StdString public BytePointer GetExecutablePath()
@Cast(value="bool") public boolean LocalTempFilename(@StdString @Cast(value={"char*","std::string*"}) BytePointer filename)
@Cast(value="bool") public boolean CreateUniqueFileName(@StdString @Cast(value={"char*","std::string*"}) BytePointer prefix, @StdString BytePointer suffix)
@Cast(value="bool") public boolean CreateUniqueFileName(@StdString @Cast(value={"char*","std::string*"}) BytePointer prefix, @StdString String suffix)
@Cast(value="tensorflow::uint64") public long NowNanos()
@Cast(value="tensorflow::uint64") public long NowMicros()
@Cast(value="tensorflow::uint64") public long NowSeconds()
public void SleepForMicroseconds(@Cast(value="tensorflow::int64") long micros)
public tensorflow.Thread StartThread(@Const @ByRef tensorflow.ThreadOptions thread_options, @StdString BytePointer name, @ByVal tensorflow.Fn fn)
public tensorflow.Thread StartThread(@Const @ByRef tensorflow.ThreadOptions thread_options, @StdString String name, @ByVal tensorflow.Fn fn)
public void SchedClosure(@ByVal tensorflow.Fn closure)
public void SchedClosureAfter(@Cast(value="tensorflow::int64") long micros, @ByVal tensorflow.Fn closure)
@ByVal public tensorflow.Status LoadLibrary(@Cast(value="const char*") BytePointer library_filename, @Cast(value="void**") PointerPointer handle)
@ByVal public tensorflow.Status LoadLibrary(@Cast(value="const char*") BytePointer library_filename, @Cast(value="void**") @ByPtrPtr Pointer handle)
@ByVal public tensorflow.Status LoadLibrary(String library_filename, @Cast(value="void**") @ByPtrPtr Pointer handle)
@ByVal public tensorflow.Status GetSymbolFromLibrary(Pointer handle, @Cast(value="const char*") BytePointer symbol_name, @Cast(value="void**") PointerPointer symbol)
@ByVal public tensorflow.Status GetSymbolFromLibrary(Pointer handle, @Cast(value="const char*") BytePointer symbol_name, @Cast(value="void**") @ByPtrPtr Pointer symbol)
@ByVal public tensorflow.Status GetSymbolFromLibrary(Pointer handle, String symbol_name, @Cast(value="void**") @ByPtrPtr Pointer symbol)
@StdString public BytePointer FormatLibraryFileName(@StdString BytePointer name, @StdString BytePointer version)
@StdString public String FormatLibraryFileName(@StdString String name, @StdString String version)
public void GetLocalTempDirectories(tensorflow.StringVector list)
Copyright © 2019. All rights reserved.