@Namespace(value="dnnl") @Properties(inherit=dnnl.class) public class batch_normalization_forward extends primitive
\addtogroup dnnl_api_batch_normalization Batch Normalization A primitive to perform batch normalization. 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. The batch normalization primitives computations can be controlled by specifying different \ref dnnl::normalization_flags values. For example, batch normalization can compute the mean and variance on its own or take them as inputs. It can either perform scaling and shifting using gamma and beta parameters or not. Optionally, it can also perform a fused ReLU, which in case of training would also require a workspace.
dev_guide_batch_normalization in developer guide
\{
Batch normalization forward propagation primitive.
| Modifier and Type | Class and Description |
|---|---|
static class |
batch_normalization_forward.desc
Descriptor for a batch normalization forward propagation primitive.
|
static class |
batch_normalization_forward.primitive_desc
Primitive descriptor for a batch normalization forward propagation
primitive.
|
primitive.kindPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
batch_normalization_forward()
Default constructor.
|
batch_normalization_forward(batch_normalization_forward.primitive_desc pd)
Constructs a batch normalization forward propagation primitive.
|
batch_normalization_forward(long size)
Native array allocator.
|
batch_normalization_forward(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
batch_normalization_forward |
getPointer(long i) |
batch_normalization_forward |
position(long position) |
execute, get_dnnl_primitive_desc, get_kindasBoolean, asDnnl_primitive, equals, get, get, notEquals, put, reset, resetaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic batch_normalization_forward(Pointer p)
Pointer.Pointer(Pointer).public batch_normalization_forward(long size)
Pointer.position(long).public batch_normalization_forward()
public batch_normalization_forward(@Const @ByRef batch_normalization_forward.primitive_desc pd)
pd - Primitive descriptor for a batch normalization forward
propagation primitive.public batch_normalization_forward position(long position)
public batch_normalization_forward getPointer(long i)
getPointer in class primitiveCopyright © 2020. All rights reserved.