Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for empty (0.21 sec)

  1. tensorflow/c/c_api_function_test.cc

        const char** ptr = nullptr;
        if (!strs.empty()) {
          ptr = new const char*[strs.size()];
          for (size_t i = 0; i < strs.size(); ++i) {
            ptr[i] = strs[i].c_str();
          }
        }
        return ptr;
      }
    
      // An explicit `num_opers` is needed so that we can distinguish between the
      // case of no operations specified (-1) and the case of an empty set of
      // operations specified (0).
    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)
  2. tensorflow/c/eager/c_api_test_util.cc

      TFE_OpSetAttrType(op, "dtype", TF_FLOAT);
      TFE_OpSetAttrShape(op, "shape", {}, 0, status);
      TFE_OpSetAttrString(op, "container", "localhost", 0);
      TFE_OpSetAttrString(op, "shared_name", "", 0);
      if (!device_name.empty()) {
        TFE_OpSetDevice(op, device_name.c_str(), status);
      }
      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_TensorHandle* var_handle = nullptr;
      int num_retvals = 1;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

        if (BlockNotStale(entry->second)) {
          return entry->second;
        } else {
          // Remove the stale block and continue.
          RemoveFile_Locked(key.first);
        }
      }
    
      // Insert a new empty block, setting the bookkeeping to sentinel values
      // in order to update them as appropriate.
      auto new_entry = std::make_shared<Block>();
      lru_list_.push_front(key);
      lra_list_.push_front(key);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

        GTEST_SKIP() << "No filesystem registered: " << s;
    
      // First, test some interesting corner cases concerning empty URIs
      if (GetParam().empty()) {
        EXPECT_EQ(fs->TranslateName(""), "");
        EXPECT_EQ(fs->TranslateName("/"), "/");
        EXPECT_EQ(fs->TranslateName("//"), "/");
        // Empty scheme also allows relative paths
        EXPECT_EQ(fs->TranslateName("a_file"), "a_file");
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_experimental_test.cc

          } else {
            TF_ShapeAndTypeListSetUnknownShape(input_shapes, i);
          }
        }
        TF_ShapeAndTypeList* output_shapes;
        TFE_InferShapes(op, input_shapes,
                        input_tensors.empty()
                            ? nullptr
                            : const_cast<TF_Tensor**>(input_tensors.data()),
                        /*input_tensors_as_shapes*/ nullptr,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  6. tensorflow/c/eager/c_api_unified_experimental_graph.cc

      }
      Status SetOpName(const char* const op_name) override {
        if (op_) {
          return errors::FailedPrecondition(
              "SetOpName called on already built op.");
        }
        if (op_type_.empty()) {
          return errors::FailedPrecondition(
              "GraphOperation::Reset must be called before calling SetOpName.");
        }
        // TODO(b/145674566): We use Graph::NewName to get a unique name here but
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  7. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      if (ops_->set_filesystem_configuration == nullptr) {
        return errors::Unimplemented(
            "Filesystem does not support SetConfiguration()");
      }
      if (values.empty()) {
        return errors::InvalidArgument(
            "SetConfiguration() needs number of values > 0");
      }
    
      TF_Filesystem_Option option;
      memset(&option, 0, sizeof(option));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  8. tensorflow/c/checkpoint_reader.cc

      // Depending on whether this is a V2 ckpt, initializes "reader_" or
      // "v2_reader_".
      std::vector<string> v2_path;
      if (Env::Default()->GetMatchingPaths(MetaFilename(filename), &v2_path).ok() &&
          !v2_path.empty()) {
        v2_reader_.reset(
            new BundleReader(Env::Default(), filename /* prefix to a V2 ckpt */));
        if (!v2_reader_->status().ok()) {
          tsl::Set_TF_Status_from_Status(status, v2_reader_->status());
          return;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Aug 25 21:29:12 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

                                          size_t n, char* buffer,
                                          TF_Status* status) -> int64_t {
        EXPECT_EQ(n, block_size);
        EXPECT_FALSE(calls.empty()) << "at offset = " << offset;
        if (!calls.empty()) {
          EXPECT_EQ(offset, calls.front());
          calls.pop_front();
        }
        memset(buffer, 'x', n);
        TF_SetStatus(status, TF_OK, "");
        return n;
      };
    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)
  10. tensorflow/c/c_api_test.cc

      const string gpu_device = GPUDeviceName();
      // Skip this test if no GPU is available.
      if (gpu_device.empty()) return;
    
      RunMinTest(gpu_device, /*use_XLA=*/false);
    }
    
    TEST(CAPI, Session_Min_XLA_GPU) {
      const string gpu_device = GPUDeviceName();
      // Skip this test if no GPU is available.
      if (gpu_device.empty()) return;
    
      RunMinTest(gpu_device, /*use_XLA=*/true);
    }
    
    TEST(CAPI, SessionPRun) {
    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)
Back to top