@Namespace(value="ngraph::runtime::cpu") @NoOffset @Properties(inherit=ngraph.class) public class CPU_Backend extends Backend
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
memory_attach
Constructor and Description |
---|
CPU_Backend()
Default native constructor.
|
CPU_Backend(long size)
Native array allocator.
|
CPU_Backend(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Executable |
compile(Function func) |
Executable |
compile(Function func,
boolean enable_performance_counters)
\brief Compiles a Function.
|
Executable |
compile(Function func,
PassConfig pass_config) |
Executable |
compile(Function func,
PassConfig pass_config,
boolean enable_performance_counters)
\brief Compiles a Function.
|
Tensor |
create_tensor(Type element_type,
Shape shape)
\brief Create a tensor specific to this backend
|
Tensor |
create_tensor(Type element_type,
Shape shape,
Pointer memory_pointer)
\brief Create a tensor specific to this backend
|
Allocator |
get_host_memory_allocator()
\brief Returns memory allocator used by backend for host allocations
|
CPU_Backend |
getPointer(long i) |
boolean |
is_supported_property(int prop)
\brief Test if a backend particular property is supported
|
boolean |
is_supported(Node node)
\brief Test if a backend is capable of supporting an op
|
CPU_Backend |
position(long position) |
void |
remove_compiled_function(Executable exec) |
void |
set_host_memory_allocator(Allocator allocator)
\brief Set the host memory allocator to be used by the backend
|
create_dynamic_tensor, create, create, create, create, executable_can_create_tensors, get_backend_op, get_backend_op, get_backend_shared_library_search_directory, get_device_memory_allocator, get_registered_devices, get_version, is_device_memory, load, set_backend_shared_library_search_directory, set_backend_shared_library_search_directory, set_config, supports_dynamic_tensors
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public CPU_Backend()
public CPU_Backend(long size)
Pointer.position(long)
.public CPU_Backend(Pointer p)
Pointer(Pointer)
.public CPU_Backend position(long position)
public CPU_Backend getPointer(long i)
getPointer
in class Pointer
@SharedPtr @ByVal public Tensor create_tensor(@Const @ByRef Type element_type, @Const @ByRef Shape shape, Pointer memory_pointer)
Backend
create_tensor
in class Backend
element_type
- The type of the tensor elementshape
- The shape of the tensormemory_pointer
- A pointer to a buffer used for this tensor. The size of the buffer
must be sufficient to contain the tensor. The lifetime of the buffer is the
responsibility of the caller.@SharedPtr @ByVal public Tensor create_tensor(@Const @ByRef Type element_type, @Const @ByRef Shape shape)
Backend
create_tensor
in class Backend
element_type
- The type of the tensor elementshape
- The shape of the tensor@SharedPtr public Executable compile(@SharedPtr @ByVal Function func, @Cast(value="bool") boolean enable_performance_counters)
Backend
@SharedPtr public Executable compile(@SharedPtr @ByVal Function func)
@SharedPtr public Executable compile(@SharedPtr @ByVal Function func, @ByRef PassConfig pass_config, @Cast(value="bool") boolean enable_performance_counters)
Backend
@SharedPtr public Executable compile(@SharedPtr @ByVal Function func, @ByRef PassConfig pass_config)
public void remove_compiled_function(@SharedPtr Executable exec)
remove_compiled_function
in class Backend
public Allocator get_host_memory_allocator()
Backend
get_host_memory_allocator
in class Backend
public void set_host_memory_allocator(Allocator allocator)
Backend
set_host_memory_allocator
in class Backend
allocator
- is pointer to host memory allocator object@Cast(value="bool") public boolean is_supported(@Const @ByRef Node node)
Backend
is_supported
in class Backend
node
- is the op to test.@Cast(value="bool") public boolean is_supported_property(@Cast(value="const ngraph::runtime::cpu::CPU_Backend::Property") int prop)
Backend
is_supported_property
in class Backend
prop
- is the feature to test.Copyright © 2022. All rights reserved.