Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for abs (0.14 sec)

  1. src/bytes/reader.go

    	r.prevRune = -1
    	var abs int64
    	switch whence {
    	case io.SeekStart:
    		abs = offset
    	case io.SeekCurrent:
    		abs = r.i + offset
    	case io.SeekEnd:
    		abs = int64(len(r.s)) + offset
    	default:
    		return 0, errors.New("bytes.Reader.Seek: invalid whence")
    	}
    	if abs < 0 {
    		return 0, errors.New("bytes.Reader.Seek: negative position")
    	}
    	r.i = abs
    	return abs, nil
    }
    
    Go
    - Registered: 2024-04-09 11:13
    - Last Modified: 2023-10-13 17:10
    - 3.9K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/gradients/grad_test_helper.cc

          ASSERT_NEAR(dnumerical[j], danalytical[j], abs_error);
        }
        TF_DeleteTensor(analytical_tensor);
        TF_DeleteTensor(numerical_tensor);
        delete[] danalytical;
        delete[] dnumerical;
        outputs[i]->Unref();
      }
    }
    
    void CheckTensorValue(AbstractTensorHandle* t, absl::Span<const float> manuals,
                          absl::Span<const int64_t> dims, double abs_error) {
      TF_Tensor* analytical_tensor;
    C++
    - Registered: 2024-03-26 12:39
    - Last Modified: 2024-02-28 13:53
    - 5K bytes
    - Viewed (0)
  3. internal/s3select/json/record.go

    	// See golang.org/issue/6384 and golang.org/issue/14135.
    	// Like fmt %g, but the exponent cutoffs are different
    	// and exponents themselves are not padded to two digits.
    	abs := math.Abs(f)
    	fmt := byte('f')
    	if abs != 0 {
    		if abs < 1e-6 || abs >= 1e21 {
    			fmt = 'e'
    		}
    	}
    	dst = strconv.AppendFloat(dst, f, fmt, -1, 64)
    	if fmt == 'e' {
    		// clean up e-09 to e-9
    		n := len(dst)
    Go
    - Registered: 2024-04-07 19:28
    - Last Modified: 2022-02-25 20:31
    - 5.2K bytes
    - Viewed (0)
  4. api/go1.4.txt

    pkg debug/elf, const R_AARCH64_LDST128_ABS_LO12_NC = 299
    pkg debug/elf, const R_AARCH64_LDST128_ABS_LO12_NC R_AARCH64
    pkg debug/elf, const R_AARCH64_LDST16_ABS_LO12_NC = 284
    pkg debug/elf, const R_AARCH64_LDST16_ABS_LO12_NC R_AARCH64
    pkg debug/elf, const R_AARCH64_LDST32_ABS_LO12_NC = 285
    pkg debug/elf, const R_AARCH64_LDST32_ABS_LO12_NC R_AARCH64
    pkg debug/elf, const R_AARCH64_LDST64_ABS_LO12_NC = 286
    Plain Text
    - Registered: 2024-04-09 11:13
    - Last Modified: 2014-12-12 03:01
    - 34K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/gradients/grad_test_helper.h

        Model model, Model grad_model, AbstractContext* ctx,
        absl::Span<AbstractTensorHandle* const> inputs, bool use_function,
        double abs_error = 1e-2);
    
    void CheckTensorValue(AbstractTensorHandle* t, absl::Span<const float> manuals,
                          absl::Span<const int64_t> dims, double abs_error = 1e-2);
    
    Model BuildGradModel(Model forward, GradientRegistry registry);
    
    }  // namespace internal
    }  // namespace gradients
    C
    - Registered: 2024-03-26 12:39
    - Last Modified: 2021-01-14 20:36
    - 1.5K bytes
    - Viewed (0)
  6. api/go1.10.txt

    pkg debug/elf, const R_ARM_THM_ALU_ABS_G0_NC = 132
    pkg debug/elf, const R_ARM_THM_ALU_ABS_G0_NC R_ARM
    pkg debug/elf, const R_ARM_THM_ALU_ABS_G1_NC = 133
    pkg debug/elf, const R_ARM_THM_ALU_ABS_G1_NC R_ARM
    pkg debug/elf, const R_ARM_THM_ALU_ABS_G2_NC = 134
    pkg debug/elf, const R_ARM_THM_ALU_ABS_G2_NC R_ARM
    pkg debug/elf, const R_ARM_THM_ALU_ABS_G3 = 135
    pkg debug/elf, const R_ARM_THM_ALU_ABS_G3 R_ARM
    Plain Text
    - Registered: 2024-04-09 11:13
    - Last Modified: 2018-02-06 05:00
    - 30.1K bytes
    - Viewed (0)
  7. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappedRange.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.idn
    
    import kotlin.math.abs
    import okio.ByteString
    
    internal sealed interface MappedRange {
      val rangeStart: Int
    
      data class Constant(
        override val rangeStart: Int,
        val type: Int,
      ) : MappedRange {
        val b1: Int
    Plain Text
    - Registered: 2024-04-12 11:42
    - Last Modified: 2024-01-08 01:13
    - 2.5K bytes
    - Viewed (0)
  8. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.idn
    
    import kotlin.math.abs
    import kotlin.streams.toList
    import okio.Buffer
    
    /** Index [table] for compactness as specified by `IdnaMappingTable`. */
    fun buildIdnaMappingTableData(table: SimpleIdnaMappingTable): IdnaMappingTableData {
    Plain Text
    - Registered: 2024-04-12 11:42
    - Last Modified: 2024-01-08 01:13
    - 8.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/IntMath.java

            break;
          case HALF_EVEN:
          case HALF_DOWN:
          case HALF_UP:
            int absRem = abs(rem);
            int cmpRemToHalfDivisor = absRem - (abs(q) - absRem);
            // subtracting two nonnegative ints can't overflow
            // cmpRemToHalfDivisor has the same sign as compare(abs(rem), abs(q) / 2).
            if (cmpRemToHalfDivisor == 0) { // exactly on the half mark
    Java
    - Registered: 2024-04-12 12:43
    - Last Modified: 2024-02-07 17:50
    - 23.5K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/gradients/math_grad_test.cc

                                                 /*dims*/ {3, 3},
                                                 /*abs_error*/ 0));
        ASSERT_NO_FATAL_FAILURE(CheckTensorValue(outputs[1], dB_vals[i],
                                                 /*dims*/ {3, 3},
                                                 /*abs_error*/ 0));
        outputs[0]->Unref();
        outputs[1]->Unref();
      }
    }
    
    TEST_P(CppGradients, TestSqrtGrad) {
    C++
    - Registered: 2024-03-26 12:39
    - Last Modified: 2023-04-13 17:32
    - 16.3K bytes
    - Viewed (0)
Back to top