Class LocalResponseNormalization.Builder

    • Field Detail

      • cudnnAllowFallback

        protected boolean cudnnAllowFallback
        When using CuDNN and an error is encountered, should fallback to the non-CuDNN implementatation be allowed? If set to false, an exception in CuDNN will be propagated back to the user. If false, the built-in (non-CuDNN) implementation for BatchNormalization will be used
    • Constructor Detail

      • Builder

        public Builder​(double k,
                       double n,
                       double alpha,
                       double beta)
      • Builder

        public Builder​(double k,
                       double alpha,
                       double beta)
      • Builder

        public Builder()
    • Method Detail

      • n

        public LocalResponseNormalization.Builder n​(double n)
        Number of adjacent kernel maps to use when doing LRN. default: 5
        Parameters:
        n - Number of adjacent kernel maps
      • cudnnAllowFallback

        @Deprecated
        public LocalResponseNormalization.Builder cudnnAllowFallback​(boolean allowFallback)
        When using CuDNN and an error is encountered, should fallback to the non-CuDNN implementatation be allowed? If set to false, an exception in CuDNN will be propagated back to the user. If true, the built-in (non-CuDNN) implementation for BatchNormalization will be used
        Parameters:
        allowFallback - Whether fallback to non-CuDNN implementation should be used
      • helperAllowFallback

        public LocalResponseNormalization.Builder helperAllowFallback​(boolean allowFallback)
        When using CuDNN or MKLDNN and an error is encountered, should fallback to the non-helper implementation be allowed? If set to false, an exception in the helper will be propagated back to the user. If true, the built-in (non-MKL/CuDNN) implementation for LocalResponseNormalizationLayer will be used
        Parameters:
        allowFallback - Whether fallback to non-CuDNN implementation should be used
      • dataFormat

        public LocalResponseNormalization.Builder dataFormat​(CNN2DFormat dataFormat)
        Set the data format for the CNN activations - NCHW (channels first) or NHWC (channels last). See CNN2DFormat for more details.
        Default: NCHW
        Parameters:
        format - Format for activations (in and out)