@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class LRN extends Pointer
input
tensor is treated as a 3-D array of 1-D vectors (along the last
dimension), and each vector is normalized independently. Within a given vector,
each component is divided by the weighted, squared sum of inputs within
depth_radius
. In detail,
sqr_sum[a, b, c, d] =
sum(input[a, b, c, d - depth_radius : d + depth_radius + 1] ** 2)
output = input / (bias + alpha * sqr_sum) ** beta
For details, see [Krizhevsky et al., ImageNet classification with deep
convolutional neural networks (NIPS 2012)](http://papers.nips.cc/paper/4824-imagenet-classification-with-deep-convolutional-neural-networks).
Arguments:
* scope: A Scope object
* input: 4-D.
Optional attributes (see Attrs
):
* depth_radius: 0-D. Half-width of the 1-D normalization window.
* bias: An offset (usually positive to avoid dividing by 0).
* alpha: A scale factor, usually positive.
* beta: An exponent.
Returns:
* Output
: The output tensor.Modifier and Type | Class and Description |
---|---|
static class |
LRN.Attrs
Optional attribute setters for LRN
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
LRN(Pointer p)
Pointer cast constructor.
|
LRN(Scope scope,
Input input) |
LRN(Scope scope,
Input input,
LRN.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
static LRN.Attrs |
Alpha(float x) |
Input |
asInput() |
Output |
asOutput() |
static LRN.Attrs |
Beta(float x) |
static LRN.Attrs |
Bias(float x) |
static LRN.Attrs |
DepthRadius(long x) |
Node |
node() |
Operation |
operation() |
LRN |
operation(Operation setter) |
Output |
output() |
LRN |
output(Output setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public LRN(Pointer p)
Pointer(Pointer)
.public Node node()
Copyright © 2022. All rights reserved.