Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for basec (0.16 sec)

  1. tensorflow/c/eager/c_api_cluster_test.cc

      TF_DeleteTensor(t);
    
      for (int i = 0; i < expected_values.size(); i++) {
        EXPECT_EQ(expected_values[i], actual_values[i])
            << "Mismatch in expected values at (zero-based) index " << i;
      }
    }
    
    void CheckRemoteMatMulExecutesOK(TFE_Context* ctx,
                                     const char* remote_device_name,
                                     const char* local_device_name) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_experimental_test.cc

    #include "tensorflow/core/protobuf/config.pb.h"
    
    using tensorflow::string;
    
    namespace tensorflow {
    namespace {
    
    static bool HasSubstr(absl::string_view base, absl::string_view substr) {
      bool ok = absl::StrContains(base, substr);
      EXPECT_TRUE(ok) << base << ", expected substring " << substr;
      return ok;
    }
    
    TEST(CAPI, MonitoringCounter0) {
      TF_Status* status = TF_NewStatus();
      auto* counter =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      const uint32 block_count = 2;
      tf_gcs_filesystem::RamFileBlockCache cache(
          block_size, block_count * block_size, 0, fetcher);
      std::vector<char> out;
      // Read blocks from the cache, and verify the LRU behavior based on the
      // fetcher calls that the cache makes.
      calls.push_back(0);
      // Cache miss - drains an element from `calls`.
      TF_EXPECT_OK(ReadCache(&cache, "", 0, 1, &out));
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_test.cc

      TF_Operation* neg = TF_GraphOperationByName(graph, "imported/neg");
      ASSERT_TRUE(scalar != nullptr);
      ASSERT_TRUE(feed != nullptr);
      ASSERT_TRUE(neg != nullptr);
    
      // Test basic structure of the imported graph.
      EXPECT_EQ(0, TF_OperationNumInputs(scalar));
      EXPECT_EQ(0, TF_OperationNumInputs(feed));
      ASSERT_EQ(1, TF_OperationNumInputs(neg));
      TF_Output neg_input = TF_OperationInput({neg, 0});
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  5. tensorflow/c/eager/custom_device_test.cc

      executed = false;
      TFE_Execute(matmul.get(), &retval, &num_retvals, status.get());
      EXPECT_FALSE(executed);
      ASSERT_FALSE(TF_GetCode(status.get()) == TF_OK);
    
      // Custom devices can refuse to do type-based dispatch (as hcustom1 is
      // configured to do)
      matmul.reset(MatMulOp(context.get(), hcustom1.get(), hcpu.get()));
      num_retvals = 1;
      executed = false;
      TFE_Execute(matmul.get(), &retval, &num_retvals, status.get());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/grappler/grappler.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    // This file extends/implements core graph optimizer base classes in terms of
    // the C API defined in grappler.h. A class "CSomething" represents a
    // "Something" that can be manipulated via calls in the C interface and a C
    // struct called "TP_Something".
    
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      ASSERT_TF_OK(status_);
      const std::string base = GetURIForPath("GetChildren");
      tf_gcs_filesystem::CreateDir(filesystem_, base.c_str(), status_);
      EXPECT_TF_OK(status_);
    
      const std::string file = io::JoinPath(base, "TestFile.csv");
      WriteString(file, "test");
      EXPECT_TF_OK(status_);
    
      const std::string subdir = io::JoinPath(base, "SubDir");
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  8. tensorflow/c/eager/custom_device_testutil.cc

      bool* arrived_flag;
      // Set to true whenever an operation is executed
      bool* executed_flag;
      // If true, only explicit op placements are accepted. If false, uses
      // type-based dispatch.
      bool strict_scope_placement;
    };
    
    struct LoggedTensor {
      TFE_TensorHandle* tensor;
      LoggedTensor() = delete;
      explicit LoggedTensor(TFE_TensorHandle* tensor) : tensor(tensor) {}
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 03 20:47:31 GMT 2021
    - 8.3K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      stat->generation_number = metadata->generation();
      stat->base.length = metadata->size();
      stat->base.mtime_nsec =
          metadata->time_storage_class_updated().time_since_epoch().count();
      stat->base.is_directory = object.back() == '/';
      TF_VLog(1,
              "Stat of: gs://%s/%s --  length: %u generation: %u; mtime_nsec: %u;",
              bucket.c_str(), object.c_str(), stat->base.length,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_function_test.cc

    TEST_F(CApiFunctionTest, AppendHash) {
      DefineFunction("func_name_base", &func_, "Return something",
                     /*append_hash=*/true);
      tensorflow::FunctionDef fdef;
      ASSERT_TRUE(GetFunctionDef(func_, &fdef));
    #if (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
      ASSERT_EQ(string("func_name_base_ZpgUD4x8oqk"), fdef.signature().name());
    #else
      ASSERT_EQ(string("func_name_base_qaJ8jA8UmGY"), fdef.signature().name());
    #endif
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
Back to top