Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for elems (0.26 sec)

  1. tensorflow/c/eager/gradient_checker.cc

      // Get number of elements and fill data.
      int num_elems = TF_TensorElementCount(theta_tensor);
      vector<float> theta_data(num_elems);
      memcpy(theta_data.data(), TF_TensorData(theta_tensor),
             TF_TensorByteSize(theta_tensor));
    
      // Initialize space for the numerical gradient.
      vector<float> dtheta_approx(num_elems);
    
      // Get theta shape and store in theta_dims.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

                                  const tensorflow::TensorShape& shape) {
      static char empty;
      int64_t nelems = 1;
      std::vector<int64_t> dims;
      dims.reserve(shape.dims());
      for (int i = 0; i < shape.dims(); ++i) {
        dims.push_back(shape.dim_size(i));
        nelems *= shape.dim_size(i);
      }
      CHECK_EQ(nelems, 0);
      return TF_NewTensor(
          dtype, reinterpret_cast<const int64_t*>(dims.data()), shape.dims(),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/gradient_checker_test.cc

      TF_Tensor* numerical_tensor;
      s = GetValue(numerical_grad.get(), &numerical_tensor);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
      auto num_elem_numerical = TF_TensorElementCount(numerical_tensor);
      ASSERT_EQ(num_elem_numerical, num_grad);
    
      float* dnumerical = new float[num_elem_numerical]{0};
      memcpy(&dnumerical[0], TF_TensorData(numerical_tensor),
             TF_TensorByteSize(numerical_tensor));
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/gradients/grad_test_helper.cc

        ASSERT_EQ(errors::OK, s.code()) << s.message();
        auto num_elem_numerical = TF_TensorElementCount(numerical_tensor);
    
        TF_Tensor* analytical_tensor;
        s = GetValue(outputs[i], &analytical_tensor);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        auto num_elem_analytical = TF_TensorElementCount(analytical_tensor);
    
        ASSERT_EQ(num_elem_numerical, num_elem_analytical);
    
        float* dnumerical = new float[num_elem_numerical]{0};
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  5. RELEASE.md

    (David) Siu-Kei Muk, Ag Ramesh, Anton Dmitriev, Artem Sobolev, Avijit-Nervana,
    Bairen Yi, Bruno Goncalves, By Shen, candy.dc, Cheng Chen, Clayne Robison,
    coder3101, Dao Zhang, Elms, Fei Hu, feiquan, Geoffrey Irving, Guozhong Zhuang,
    hellcom, Hoeseong Kim, imsheridan, Jason Furmanek, Jason Zaman, Jenny Sahng,
    jiefangxuanyan, Johannes Bannhofer, Jonathan Homer, Koan-Sin Tan, kouml, Loo
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Apr 29 19:17:57 GMT 2024
    - 727.7K bytes
    - Viewed (8)
  6. ci/official/utilities/extract_resultstore_links.py

      return result_store_links
    
    
    def indent_xml(elem, level=0) -> None:
      """Indents and newlines the XML for better output."""
      indent_str = '\n' + level * '  '
      if len(elem):  # pylint: disable=g-explicit-length-test  # `if elem` not valid
        if not elem.text or not elem.text.strip():
          elem.text = indent_str + '  '
        if not elem.tail or not elem.tail.strip():
          elem.tail = indent_str
        for elem in elem:
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Nov 08 17:50:27 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  7. ci/official/containers/linux_arm64/devel.usertools/squash_testlogs.py

      ).group(0)
      for testsuite in r:
        testsuite._elem.set("source_file", source_file)
        # Remove empty testcases
        for p in testsuite._elem.xpath(".//testcase"):
          if not len(p):  # pylint: disable=g-explicit-length-test
            testsuite._elem.remove(p)
        # Change "testsuite > testcase,system-out" to "testsuite > testcase > error"
        for p in testsuite._elem.xpath(".//system-out"):
    Python
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Sep 18 19:00:37 GMT 2023
    - 4.8K bytes
    - Viewed (0)
Back to top