@Namespace(value="dnnl") @Properties(inherit=dnnl.class) public class eltwise_forward extends primitive
\addtogroup dnnl_api_eltwise Eltwise A primitive to perform elementwise operations such as the rectifier linear unit (ReLU). Both forward and backward propagation primitives support in-place operation; that is, src and dst can refer to the same memory for forward propagation, and diff_dst and diff_src can refer to the same memory for backward propagation. \warning Because the original source data is required for backward propagation, in-place forward propagation is not generally supported in the training mode. However, for algorithms supporting destination as input memory, dst can be used for the backward propagation, which makes it possible to get performance benefit even in the training mode.
dev_guide_eltwise in developer guide
\{
Elementwise unary operation forward propagation primitive.
Modifier and Type | Class and Description |
---|---|
static class |
eltwise_forward.primitive_desc
Primitive descriptor for an elementwise forward propagation primitive.
|
primitive.kind
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
eltwise_forward()
Default constructor.
|
eltwise_forward(eltwise_forward.primitive_desc pd)
Constructs an eltwise forward propagation primitive.
|
eltwise_forward(eltwise_forward.primitive_desc pd,
byte[] cache_blob) |
eltwise_forward(eltwise_forward.primitive_desc pd,
ByteBuffer cache_blob) |
eltwise_forward(eltwise_forward.primitive_desc pd,
BytePointer cache_blob)
Constructs an eltwise forward propagation primitive from a cache blob.
|
eltwise_forward(long size)
Native array allocator.
|
eltwise_forward(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
eltwise_forward |
getPointer(long i) |
eltwise_forward |
position(long position) |
execute, get_cache_blob, get_dnnl_primitive_desc, get_kind
asBoolean, asDnnl_primitive, equals, get, get, notEquals, put, reset, reset
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 eltwise_forward(Pointer p)
Pointer(Pointer)
.public eltwise_forward(long size)
Pointer.position(long)
.public eltwise_forward()
public eltwise_forward(@Const @ByRef eltwise_forward.primitive_desc pd)
pd
- Primitive descriptor for an eltwise forward propagation
primitive.public eltwise_forward(@Const @ByRef eltwise_forward.primitive_desc pd, @Cast(value="uint8_t*") @StdVector BytePointer cache_blob)
pd
- Primitive descriptor for an eltwise forward propagation
primitive.cache_blob
- Cache blob.public eltwise_forward(@Const @ByRef eltwise_forward.primitive_desc pd, @Cast(value="uint8_t*") @StdVector ByteBuffer cache_blob)
public eltwise_forward(@Const @ByRef eltwise_forward.primitive_desc pd, @Cast(value="uint8_t*") @StdVector byte[] cache_blob)
public eltwise_forward position(long position)
public eltwise_forward getPointer(long i)
getPointer
in class primitive
Copyright © 2024. All rights reserved.