public static class pooling_forward.primitive_desc extends primitive_desc
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
primitive_desc()
Default constructor.
|
primitive_desc(dnnl_primitive_desc pd)
Constructs a primitive descriptor for a pooling forward propagation
primitive from a C API primitive descriptor that must have a
matching kind.
|
primitive_desc(engine aengine,
dnnl.prop_kind aprop_kind,
dnnl.algorithm aalgorithm,
memory.desc src_desc,
memory.desc dst_desc,
long[] strides,
long[] kernel,
long[] dilation,
long[] padding_l,
long[] padding_r) |
primitive_desc(engine aengine,
dnnl.prop_kind aprop_kind,
dnnl.algorithm aalgorithm,
memory.desc src_desc,
memory.desc dst_desc,
long[] strides,
long[] kernel,
long[] dilation,
long[] padding_l,
long[] padding_r,
primitive_attr attr,
boolean allow_empty) |
primitive_desc(engine aengine,
dnnl.prop_kind aprop_kind,
dnnl.algorithm aalgorithm,
memory.desc src_desc,
memory.desc dst_desc,
LongBuffer strides,
LongBuffer kernel,
LongBuffer dilation,
LongBuffer padding_l,
LongBuffer padding_r) |
primitive_desc(engine aengine,
dnnl.prop_kind aprop_kind,
dnnl.algorithm aalgorithm,
memory.desc src_desc,
memory.desc dst_desc,
LongBuffer strides,
LongBuffer kernel,
LongBuffer dilation,
LongBuffer padding_l,
LongBuffer padding_r,
primitive_attr attr,
boolean allow_empty) |
primitive_desc(engine aengine,
dnnl.prop_kind aprop_kind,
dnnl.algorithm aalgorithm,
memory.desc src_desc,
memory.desc dst_desc,
LongPointer strides,
LongPointer kernel,
LongPointer dilation,
LongPointer padding_l,
LongPointer padding_r) |
primitive_desc(engine aengine,
dnnl.prop_kind aprop_kind,
dnnl.algorithm aalgorithm,
memory.desc src_desc,
memory.desc dst_desc,
LongPointer strides,
LongPointer kernel,
LongPointer dilation,
LongPointer padding_l,
LongPointer padding_r,
primitive_attr attr,
boolean allow_empty)
Constructs a primitive descriptor for pooling forward propagation
primitive.
|
primitive_desc(engine aengine,
int aprop_kind,
int aalgorithm,
memory.desc src_desc,
memory.desc dst_desc,
long[] strides,
long[] kernel,
long[] dilation,
long[] padding_l,
long[] padding_r) |
primitive_desc(engine aengine,
int aprop_kind,
int aalgorithm,
memory.desc src_desc,
memory.desc dst_desc,
long[] strides,
long[] kernel,
long[] dilation,
long[] padding_l,
long[] padding_r,
primitive_attr attr,
boolean allow_empty) |
primitive_desc(engine aengine,
int aprop_kind,
int aalgorithm,
memory.desc src_desc,
memory.desc dst_desc,
LongBuffer strides,
LongBuffer kernel,
LongBuffer dilation,
LongBuffer padding_l,
LongBuffer padding_r) |
primitive_desc(engine aengine,
int aprop_kind,
int aalgorithm,
memory.desc src_desc,
memory.desc dst_desc,
LongBuffer strides,
LongBuffer kernel,
LongBuffer dilation,
LongBuffer padding_l,
LongBuffer padding_r,
primitive_attr attr,
boolean allow_empty) |
primitive_desc(engine aengine,
int aprop_kind,
int aalgorithm,
memory.desc src_desc,
memory.desc dst_desc,
LongPointer strides,
LongPointer kernel,
LongPointer dilation,
LongPointer padding_l,
LongPointer padding_r) |
primitive_desc(engine aengine,
int aprop_kind,
int aalgorithm,
memory.desc src_desc,
memory.desc dst_desc,
LongPointer strides,
LongPointer kernel,
LongPointer dilation,
LongPointer padding_l,
LongPointer padding_r,
primitive_attr attr,
boolean allow_empty) |
primitive_desc(long size)
Native array allocator.
|
primitive_desc(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
memory.desc |
dst_desc()
\copydoc dnnl::primitive_desc_base::dst_desc()const
|
dnnl.algorithm |
get_algorithm()
\copydoc dnnl::primitive_desc_base::get_algorithm()const
|
LongPointer |
get_dilations()
\copydoc dnnl::primitive_desc_base::get_dilations()const
|
LongPointer |
get_kernel()
\copydoc dnnl::primitive_desc_base::get_kernel()const
|
LongPointer |
get_padding_l()
\copydoc dnnl::primitive_desc_base::get_padding_l()const
|
LongPointer |
get_padding_r()
\copydoc dnnl::primitive_desc_base::get_padding_r()const
|
dnnl.prop_kind |
get_prop_kind()
\copydoc dnnl::primitive_desc_base::get_prop_kind()const
|
LongPointer |
get_strides()
\copydoc dnnl::primitive_desc_base::get_strides()const
|
pooling_forward.primitive_desc |
getPointer(long i) |
pooling_forward.primitive_desc |
position(long position) |
memory.desc |
src_desc()
\copydoc dnnl::primitive_desc_base::src_desc()const
|
memory.desc |
workspace_desc()
\copydoc dnnl::primitive_desc_base::workspace_desc()const
|
next_impl
diff_dst_desc, diff_dst_desc, diff_src_desc, diff_src_desc, diff_weights_desc, diff_weights_desc, dst_desc, get_activation_kind, get_alpha, get_axis, get_beta, get_cache_blob_id, get_cell_kind, get_direction, get_engine, get_epsilon, get_factors, get_group_size, get_k, get_kind, get_local_size, get_p, get_primitive_attr, impl_info_str, query_md, query_md, query_md, query_md, query_s64, query_s64, scratchpad_desc, scratchpad_engine, src_desc, weights_desc, weights_desc
asBoolean, asDnnl_primitive_desc, 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 primitive_desc(Pointer p)
Pointer(Pointer)
.public primitive_desc(long size)
Pointer.position(long)
.public primitive_desc()
public primitive_desc(@Const @ByRef engine aengine, dnnl.prop_kind aprop_kind, dnnl.algorithm aalgorithm, @Const @ByRef memory.desc src_desc, @Const @ByRef memory.desc dst_desc, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer strides, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer kernel, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer dilation, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer padding_r, @Const @ByRef(nullValue="dnnl::primitive_attr()") primitive_attr attr, @Cast(value="bool") boolean allow_empty)
aengine
- Engine to use.aprop_kind
- Propagation kind. Possible values are
#dnnl::prop_kind::forward_training, and
#dnnl::prop_kind::forward_inference.aalgorithm
- Pooling algorithm kind: either
#dnnl::algorithm::pooling_max,
#dnnl::algorithm::pooling_avg_include_padding,
or #dnnl::algorithm::pooling_avg_exclude_padding.src_desc
- Source memory descriptor.dst_desc
- Destination memory descriptor.strides
- Vector of strides for spatial dimension.kernel
- Vector of kernel spatial dimensions.dilation
- Array of dilations for spatial dimension.padding_l
- Vector of padding values for low indices for each
spatial dimension ([[front,] top,] left)
.padding_r
- Vector of padding values for high indices for
each spatial dimension ([[back,] bottom,] right)
.attr
- Primitive attributes to use. Attributes are optional
and default to empty attributes.allow_empty
- A flag signifying whether construction is
allowed to fail without throwing an exception. In this case an
empty object will be produced. This flag is optional and
defaults to false.public primitive_desc(@Const @ByRef engine aengine, dnnl.prop_kind aprop_kind, dnnl.algorithm aalgorithm, @Const @ByRef memory.desc src_desc, @Const @ByRef memory.desc dst_desc, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer strides, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer kernel, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer dilation, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer padding_r)
public primitive_desc(@Const @ByRef engine aengine, @Cast(value="dnnl::prop_kind") int aprop_kind, @Cast(value="dnnl::algorithm") int aalgorithm, @Const @ByRef memory.desc src_desc, @Const @ByRef memory.desc dst_desc, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer strides, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer kernel, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer dilation, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer padding_r, @Const @ByRef(nullValue="dnnl::primitive_attr()") primitive_attr attr, @Cast(value="bool") boolean allow_empty)
public primitive_desc(@Const @ByRef engine aengine, @Cast(value="dnnl::prop_kind") int aprop_kind, @Cast(value="dnnl::algorithm") int aalgorithm, @Const @ByRef memory.desc src_desc, @Const @ByRef memory.desc dst_desc, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer strides, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer kernel, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer dilation, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer padding_r)
public primitive_desc(@Const @ByRef engine aengine, dnnl.prop_kind aprop_kind, dnnl.algorithm aalgorithm, @Const @ByRef memory.desc src_desc, @Const @ByRef memory.desc dst_desc, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] strides, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] kernel, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] dilation, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] padding_r, @Const @ByRef(nullValue="dnnl::primitive_attr()") primitive_attr attr, @Cast(value="bool") boolean allow_empty)
public primitive_desc(@Const @ByRef engine aengine, dnnl.prop_kind aprop_kind, dnnl.algorithm aalgorithm, @Const @ByRef memory.desc src_desc, @Const @ByRef memory.desc dst_desc, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] strides, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] kernel, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] dilation, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] padding_r)
public primitive_desc(@Const @ByRef engine aengine, @Cast(value="dnnl::prop_kind") int aprop_kind, @Cast(value="dnnl::algorithm") int aalgorithm, @Const @ByRef memory.desc src_desc, @Const @ByRef memory.desc dst_desc, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer strides, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer kernel, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer dilation, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer padding_r, @Const @ByRef(nullValue="dnnl::primitive_attr()") primitive_attr attr, @Cast(value="bool") boolean allow_empty)
public primitive_desc(@Const @ByRef engine aengine, @Cast(value="dnnl::prop_kind") int aprop_kind, @Cast(value="dnnl::algorithm") int aalgorithm, @Const @ByRef memory.desc src_desc, @Const @ByRef memory.desc dst_desc, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer strides, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer kernel, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer dilation, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer padding_r)
public primitive_desc(@Const @ByRef engine aengine, dnnl.prop_kind aprop_kind, dnnl.algorithm aalgorithm, @Const @ByRef memory.desc src_desc, @Const @ByRef memory.desc dst_desc, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer strides, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer kernel, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer dilation, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer padding_r, @Const @ByRef(nullValue="dnnl::primitive_attr()") primitive_attr attr, @Cast(value="bool") boolean allow_empty)
public primitive_desc(@Const @ByRef engine aengine, dnnl.prop_kind aprop_kind, dnnl.algorithm aalgorithm, @Const @ByRef memory.desc src_desc, @Const @ByRef memory.desc dst_desc, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer strides, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer kernel, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer dilation, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer padding_r)
public primitive_desc(@Const @ByRef engine aengine, @Cast(value="dnnl::prop_kind") int aprop_kind, @Cast(value="dnnl::algorithm") int aalgorithm, @Const @ByRef memory.desc src_desc, @Const @ByRef memory.desc dst_desc, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] strides, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] kernel, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] dilation, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] padding_r, @Const @ByRef(nullValue="dnnl::primitive_attr()") primitive_attr attr, @Cast(value="bool") boolean allow_empty)
public primitive_desc(@Const @ByRef engine aengine, @Cast(value="dnnl::prop_kind") int aprop_kind, @Cast(value="dnnl::algorithm") int aalgorithm, @Const @ByRef memory.desc src_desc, @Const @ByRef memory.desc dst_desc, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] strides, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] kernel, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] dilation, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] padding_r)
public primitive_desc(dnnl_primitive_desc pd)
pd
- C API primitive descriptor for a pooling forward
propagation primitive.public pooling_forward.primitive_desc position(long position)
position
in class primitive_desc
public pooling_forward.primitive_desc getPointer(long i)
getPointer
in class primitive_desc
@ByVal public memory.desc src_desc()
src_desc
in class primitive_desc_base
@ByVal public memory.desc dst_desc()
dst_desc
in class primitive_desc_base
@ByVal public memory.desc workspace_desc()
workspace_desc
in class primitive_desc_base
public dnnl.algorithm get_algorithm()
get_algorithm
in class primitive_desc_base
public dnnl.prop_kind get_prop_kind()
get_prop_kind
in class primitive_desc_base
@Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByVal public LongPointer get_strides()
get_strides
in class primitive_desc_base
@Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByVal public LongPointer get_kernel()
get_kernel
in class primitive_desc_base
@Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByVal public LongPointer get_dilations()
get_dilations
in class primitive_desc_base
@Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByVal public LongPointer get_padding_l()
get_padding_l
in class primitive_desc_base
@Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByVal public LongPointer get_padding_r()
get_padding_r
in class primitive_desc_base
Copyright © 2024. All rights reserved.