@NoOffset public static class pooling_forward.desc extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
desc(dnnl.prop_kind prop_kind,
dnnl.algorithm algorithm,
memory.desc src_desc,
memory.desc dst_desc,
long[] strides,
long[] kernel,
long[] padding_l,
long[] padding_r) |
desc(dnnl.prop_kind prop_kind,
dnnl.algorithm algorithm,
memory.desc src_desc,
memory.desc dst_desc,
LongBuffer strides,
LongBuffer kernel,
LongBuffer padding_l,
LongBuffer padding_r) |
desc(dnnl.prop_kind prop_kind,
dnnl.algorithm algorithm,
memory.desc src_desc,
memory.desc dst_desc,
LongPointer strides,
LongPointer kernel,
LongPointer padding_l,
LongPointer padding_r)
Constructs a descriptor for pooling forward propagation primitive.
|
desc(int prop_kind,
int algorithm,
memory.desc src_desc,
memory.desc dst_desc,
long[] strides,
long[] kernel,
long[] padding_l,
long[] padding_r) |
desc(int prop_kind,
int algorithm,
memory.desc src_desc,
memory.desc dst_desc,
LongBuffer strides,
LongBuffer kernel,
LongBuffer padding_l,
LongBuffer padding_r) |
desc(int prop_kind,
int algorithm,
memory.desc src_desc,
memory.desc dst_desc,
LongPointer strides,
LongPointer kernel,
LongPointer padding_l,
LongPointer padding_r) |
desc(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
dnnl_pooling_desc_t |
data() |
pooling_forward.desc |
data(dnnl_pooling_desc_t setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic desc(Pointer p)
Pointer.Pointer(Pointer).public desc(dnnl.prop_kind prop_kind, dnnl.algorithm algorithm, @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 padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer padding_r)
src (#dnnl::primitive_desc_base::src_desc(0))
Outputs:
- dst (#dnnl::primitive_desc_base::dst_desc(0))
- workspace (#dnnl::primitive_desc_base::workspace_desc(0)),
if \p alg_kind = #dnnl::algorithm::pooling_max and \p
prop_kind = #dnnl::prop_kind::forward_training; must be
queried for using \ref dnnl::primitive_desc_base::query_md()
after a corresponding primitive descriptor is created
Arrays \p strides, \p kernel, \p padding_l, and \p padding_r
contain values for spatial dimensions only and hence must have the
same number of elements as there are spatial dimensions. The order
of values is the same as in the tensor: depth (for 3D tensors),
height (for 3D and 2D tensors), and width.prop_kind - Propagation kind. Possible values are
#dnnl::prop_kind::forward_training, and
#dnnl::prop_kind::forward_inference.algorithm - Pooling algorithm kind: either
#dnnl::algorithm::pooling_max,
#dnnl::algorithm::pooling_avg_include_padding,
or #dnnl::algorithm::pooling_avg (same as
#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.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).public desc(@Cast(value="dnnl::prop_kind") int prop_kind, @Cast(value="dnnl::algorithm") int algorithm, @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 padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer padding_r)
public desc(dnnl.prop_kind prop_kind, dnnl.algorithm algorithm, @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[] padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] padding_r)
public desc(@Cast(value="dnnl::prop_kind") int prop_kind, @Cast(value="dnnl::algorithm") int algorithm, @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 padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongPointer padding_r)
public desc(dnnl.prop_kind prop_kind, dnnl.algorithm algorithm, @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 padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef LongBuffer padding_r)
public desc(@Cast(value="dnnl::prop_kind") int prop_kind, @Cast(value="dnnl::algorithm") int algorithm, @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[] padding_l, @Const @Cast(value={"dnnl_dim_t*","std::vector<dnnl_dim_t>&"}) @StdVector(value="dnnl_dim_t") @ByRef long[] padding_r)
@ByRef public dnnl_pooling_desc_t data()
public pooling_forward.desc data(dnnl_pooling_desc_t setter)
Copyright © 2020. All rights reserved.