Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for log1p (0.03 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        }
    
        // To improve accuracy on platforms with less-precise log implementations,
        // compute log(lanczos_gamma_plus_one_half) at compile time and use log1p on
        // the device.
        // log(t) = log(kLanczosGamma + 0.5 + z)
        //        = log(kLanczosGamma + 0.5) + log1p(z / (kLanczosGamma + 0.5))
        Value t = rewriter.create<AddV2Op>(loc, lanczos_gamma_plus_one_half, z);
        Value z_div_lanczos_gamma_plus_one_half =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewrite.go

    	return int64(ntz64(^x))
    }
    
    // logX returns logarithm of n base 2.
    // n must be a positive power of 2 (isPowerOfTwoX returns true).
    func log8(n int8) int64 {
    	return int64(bits.Len8(uint8(n))) - 1
    }
    func log16(n int16) int64 {
    	return int64(bits.Len16(uint16(n))) - 1
    }
    func log32(n int32) int64 {
    	return int64(bits.Len32(uint32(n))) - 1
    }
    func log64(n int64) int64 {
    	return int64(bits.Len64(uint64(n))) - 1
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
Back to top