@Namespace(value="dnnl") @Properties(inherit=dnnl.class) public class binary extends primitive
\addtogroup dnnl_api_binary Binary A primitive to perform tensor operations over two tensors.
dev_guide_binary in developer guide
\{
Elementwise binary operator primitive.
| Modifier and Type | Class and Description |
|---|---|
static class |
binary.desc
Descriptor for an elementwise binary operator primitive.
|
static class |
binary.primitive_desc
Primitive descriptor for an elementwise binary operator primitive.
|
primitive.kindPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
binary()
Default constructor.
|
binary(binary.primitive_desc pd)
Constructs an elementwise binary operation primitive.
|
binary(binary.primitive_desc pd,
byte[] cache_blob) |
binary(binary.primitive_desc pd,
ByteBuffer cache_blob) |
binary(binary.primitive_desc pd,
BytePointer cache_blob)
Constructs an elementwise binary operation primitive from a cache blob.
|
binary(long size)
Native array allocator.
|
binary(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
binary |
getPointer(long i) |
binary |
position(long position) |
execute, get_cache_blob, 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, 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, zeropublic binary(Pointer p)
Pointer(Pointer).public binary(long size)
Pointer.position(long).public binary()
public binary(@Const @ByRef binary.primitive_desc pd)
pd - Primitive descriptor for an elementwise binary operation
primitive.public binary(@Const @ByRef binary.primitive_desc pd, @Cast(value="uint8_t*") @StdVector BytePointer cache_blob)
pd - Primitive descriptor for an elementwise binary operation
primitive.cache_blob - Cache blob.public binary(@Const @ByRef binary.primitive_desc pd, @Cast(value="uint8_t*") @StdVector ByteBuffer cache_blob)
public binary(@Const @ByRef binary.primitive_desc pd, @Cast(value="uint8_t*") @StdVector byte[] cache_blob)
Copyright © 2022. All rights reserved.