Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for if (0.15 sec)

  1. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      Status status = env_->NewWritableFile(filepath, &new_file);
      if (!status.ok())
        GTEST_SKIP() << "NewWritableFile() not supported: " << status;
    
      const std::string test_data("asdf");
      status = new_file->Append(test_data);
      if (!status.ok()) GTEST_SKIP() << "Append() not supported: " << status;
      status = new_file->Flush();
      if (!status.ok()) GTEST_SKIP() << "Flush() not supported: " << status;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_test.cc

        ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
        string device_name(dev);
        if (device_name.find("GPU:0") != string::npos) {
          has_gpu0 = true;
        }
        if (device_name.find("GPU:1") != string::npos) {
          has_gpu1 = true;
        }
      }
    
      const char* kCPUDevice = "CPU:0";
      if (!has_gpu0 || !has_gpu1) {
        TF_DeleteDeviceList(devices);
        TF_DeleteTensor(t);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  3. tensorflow/c/c_api_test.cc

      while ((oper = TF_GraphNextOperation(graph, &pos)) != nullptr) {
        if (oper == feed) {
          EXPECT_FALSE(found_placeholder);
          found_placeholder = true;
        } else if (oper == three) {
          EXPECT_FALSE(found_scalar_const);
          found_scalar_const = true;
        } else if (oper == add) {
          EXPECT_FALSE(found_add);
          found_add = true;
        } else if (oper == neg) {
          EXPECT_FALSE(found_neg);
    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)
  4. tensorflow/c/experimental/filesystem/filesystem_interface.h

      /// Plugins:
      ///   * Must set `status` to `TF_OK` if `region` was updated.
      ///   * Must set `status` to `TF_NOT_FOUND` if `path` doesn't point to an
      ///     existing file or one of the parent entries in `path` doesn't exist.
      ///   * Must set `status` to `TF_FAILED_PRECONDITION` if `path` points to a
      ///     directory or if it is invalid.
      ///   * Must set `status` to `TF_INVALID_ARGUMENT` if `path` points to an
      ///     empty file.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 17:36:54 GMT 2022
    - 53.1K bytes
    - Viewed (0)
  5. tensorflow/BUILD

    load("@bazel_skylib//rules:common_settings.bzl", "bool_flag", "bool_setting")
    load("@local_config_cuda//cuda:build_defs.bzl", "if_cuda")
    load(
        "//tensorflow:tensorflow.bzl",
        "VERSION",
        "VERSION_MAJOR",
        "check_deps",
        "if_google",
        "if_oss",
        "if_xla_available",
        "tf_cc_shared_object",
        "tf_custom_op_library_additional_deps_impl",
        "tf_monitoring_python_deps",
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 09 18:15:11 GMT 2024
    - 53.4K bytes
    - Viewed (8)
  6. tensorflow/c/c_api_function_test.cc

          ASSERT_TRUE(a_edges.find(e) != a_edges.end())
              << "Failed to find expected control edge " << e.ToString()
              << " in fdef: " << fdef.DebugString();
        }
    
        // If caller specified all edges, check that we have seen all
        if (is_exact_edges) {
          ASSERT_EQ(e_edges.size() + c_edges.size(), a_edges.size())
              << "Expected edges: " << ToString(e_edges)
              << " Expected Control edges: " << ToString(c_edges)
    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)
  7. configure.py

        gcc_env = get_gcc_compiler(environ_cp)
        if gcc_env is not None:
    
          # Use gold linker if 'gcc' and if 'ppc64le'
          write_to_bazelrc('build --linkopt="-fuse-ld=gold"')
    
          # Get the linker version
          ld_version = run_shell([gcc_env, '-Wl,-version']).split()
    
          ld_version_int = convert_version_to_int(ld_version[3])
          if ld_version_int is None:
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (1)
  8. .bazelrc

    # TODO(mihaimaruseac): Document this option or remove if no longer needed
    build --enable_platform_specific_config
    
    # Enable XLA support by default.
    build --define=with_xla_support=true
    
    # TODO(mihaimaruseac): Document this option or remove if no longer needed
    build --config=short_logs
    
    # TODO(mihaimaruseac): Document this option or remove if no longer needed
    build --config=v2
    
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Thu May 02 19:34:20 GMT 2024
    - 52.8K bytes
    - Viewed (2)
  9. tensorflow/c/c_api.h

    typedef struct TF_AttrMetadata {
      // A boolean: 1 if the attribute value is a list, 0 otherwise.
      unsigned char is_list;
    
      // Length of the list if is_list is true. Undefined otherwise.
      int64_t list_size;
    
      // Type of elements of the list if is_list != 0.
      // Type of the single value stored in the attribute if is_list == 0.
      TF_AttrType type;
    
      // Total size the attribute value.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
Back to top