@Namespace(value="tensorflow") @NoOffset @Properties(inherit=tensorflow.class) public class EnvWrapper extends Env
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
EnvWrapper(Env t)
Initializes an EnvWrapper that delegates all calls to *t
|
EnvWrapper(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
BytePointer |
FormatLibraryFileName(BytePointer name,
BytePointer version) |
String |
FormatLibraryFileName(String name,
String version) |
int |
GetCurrentThreadId() |
boolean |
GetCurrentThreadName(BytePointer name) |
Status |
GetFileSystemForFile(BytePointer fname,
FileSystem result) |
Status |
GetFileSystemForFile(BytePointer fname,
PointerPointer result)
\brief Returns the FileSystem object to handle operations on the file
specified by 'fname'.
|
Status |
GetFileSystemForFile(String fname,
FileSystem result) |
Status |
GetRegisteredFileSystemSchemes(StringVector schemes)
\brief Returns the file system schemes registered for this Env.
|
BytePointer |
GetRunfilesDir()
\brief Return the runfiles directory if running under bazel.
|
Status |
GetSymbolFromLibrary(Pointer handle,
BytePointer symbol_name,
Pointer symbol) |
Status |
GetSymbolFromLibrary(Pointer handle,
BytePointer symbol_name,
PointerPointer symbol) |
Status |
GetSymbolFromLibrary(Pointer handle,
String symbol_name,
Pointer symbol) |
Status |
LoadLibrary(BytePointer library_filename,
Pointer handle) |
Status |
LoadLibrary(BytePointer library_filename,
PointerPointer handle) |
Status |
LoadLibrary(String library_filename,
Pointer handle) |
boolean |
MatchPath(BytePointer path,
BytePointer pattern)
\brief Returns true if the path matches the given pattern.
|
boolean |
MatchPath(String path,
String pattern) |
long |
NowMicros()
\brief Returns the number of micro-seconds since the Unix epoch.
|
Status |
RegisterFileSystem(BytePointer scheme,
tensorflow.FactoryFn factory)
\brief Register a file system for a scheme.
|
Status |
RegisterFileSystem(String scheme,
tensorflow.FactoryFn factory) |
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.
|
Thread |
StartThread(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".
|
Thread |
StartThread(ThreadOptions thread_options,
String name,
tensorflow.Fn fn) |
Env |
target()
Returns the target to which this Env forwards all calls
|
CopyFile, CopyFile, CreateDir, CreateDir, CreateUniqueFileName, CreateUniqueFileName, Default, DeleteDir, DeleteDir, DeleteFile, DeleteFile, DeleteRecursively, DeleteRecursively, DeleteRecursively, DeleteRecursively, DeleteRecursively, DeleteRecursively, FileExists, FileExists, FilesExist, FlushFileSystemCaches, GetChildren, GetChildren, GetExecutablePath, GetFileSize, GetFileSize, GetFileSize, GetFileSize, GetFileSize, GetFileSize, GetLocalTempDirectories, GetMatchingPaths, GetMatchingPaths, IsDirectory, IsDirectory, LocalTempFilename, NewAppendableFile, NewAppendableFile, NewRandomAccessFile, NewRandomAccessFile, NewReadOnlyMemoryRegionFromFile, NewReadOnlyMemoryRegionFromFile, NewWritableFile, NewWritableFile, NowNanos, NowSeconds, RecursivelyCreateDir, RecursivelyCreateDir, RenameFile, RenameFile, Stat, Stat
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public EnvWrapper(Pointer p)
Pointer(Pointer)
.public EnvWrapper(Env t)
public Env target()
@ByVal public Status GetFileSystemForFile(@StdString BytePointer fname, @Cast(value="tensorflow::FileSystem**") PointerPointer result)
Env
GetFileSystemForFile
in class Env
@ByVal public Status GetFileSystemForFile(@StdString BytePointer fname, @ByPtrPtr FileSystem result)
GetFileSystemForFile
in class Env
@ByVal public Status GetFileSystemForFile(@StdString String fname, @ByPtrPtr FileSystem result)
GetFileSystemForFile
in class Env
@ByVal public Status GetRegisteredFileSystemSchemes(StringVector schemes)
Env
GetRegisteredFileSystemSchemes
in class Env
@ByVal public Status RegisterFileSystem(@StdString BytePointer scheme, @ByVal @Cast(value="tensorflow::FileSystemRegistry::Factory*") tensorflow.FactoryFn factory)
Env
RegisterFileSystem
in class Env
@ByVal public Status RegisterFileSystem(@StdString String scheme, @ByVal @Cast(value="tensorflow::FileSystemRegistry::Factory*") tensorflow.FactoryFn factory)
RegisterFileSystem
in class Env
@Cast(value="bool") public boolean MatchPath(@StdString BytePointer path, @StdString BytePointer pattern)
Env
@Cast(value="bool") public boolean MatchPath(@StdString String path, @StdString String pattern)
@Cast(value="tensorflow::uint64") public long NowMicros()
Env
public void SleepForMicroseconds(@Cast(value="tensorflow::int64") long micros)
Env
SleepForMicroseconds
in class Env
public Thread StartThread(@Const @ByRef ThreadOptions thread_options, @StdString BytePointer name, @ByVal tensorflow.Fn fn)
Env
StartThread
in class Env
public Thread StartThread(@Const @ByRef ThreadOptions thread_options, @StdString String name, @ByVal tensorflow.Fn fn)
StartThread
in class Env
public int GetCurrentThreadId()
GetCurrentThreadId
in class Env
@Cast(value="bool") public boolean GetCurrentThreadName(@StdString @Cast(value={"char*","std::string*"}) BytePointer name)
GetCurrentThreadName
in class Env
public void SchedClosure(@ByVal tensorflow.Fn closure)
SchedClosure
in class Env
public void SchedClosureAfter(@Cast(value="tensorflow::int64") long micros, @ByVal tensorflow.Fn closure)
SchedClosureAfter
in class Env
@ByVal public Status LoadLibrary(@Cast(value="const char*") BytePointer library_filename, @Cast(value="void**") PointerPointer handle)
LoadLibrary
in class Env
@ByVal public Status LoadLibrary(@Cast(value="const char*") BytePointer library_filename, @Cast(value="void**") @ByPtrPtr Pointer handle)
LoadLibrary
in class Env
@ByVal public Status LoadLibrary(String library_filename, @Cast(value="void**") @ByPtrPtr Pointer handle)
LoadLibrary
in class Env
@ByVal public Status GetSymbolFromLibrary(Pointer handle, @Cast(value="const char*") BytePointer symbol_name, @Cast(value="void**") PointerPointer symbol)
GetSymbolFromLibrary
in class Env
@ByVal public Status GetSymbolFromLibrary(Pointer handle, @Cast(value="const char*") BytePointer symbol_name, @Cast(value="void**") @ByPtrPtr Pointer symbol)
GetSymbolFromLibrary
in class Env
@ByVal public Status GetSymbolFromLibrary(Pointer handle, String symbol_name, @Cast(value="void**") @ByPtrPtr Pointer symbol)
GetSymbolFromLibrary
in class Env
@StdString public BytePointer FormatLibraryFileName(@StdString BytePointer name, @StdString BytePointer version)
FormatLibraryFileName
in class Env
@StdString public String FormatLibraryFileName(@StdString String name, @StdString String version)
FormatLibraryFileName
in class Env
@StdString public BytePointer GetRunfilesDir()
Env
GetRunfilesDir
in class Env
Copyright © 2022. All rights reserved.