Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for error (0.19 sec)

  1. tensorflow/c/experimental/gradients/math_grad_test.cc

                                               /*abs_error*/ 0));
      ASSERT_NO_FATAL_FAILURE(CheckTensorValue(outputs[1], {0.0f}, /*dims*/ {},
                                               /*abs_error*/ 0));
      outputs[0]->Unref();
      outputs[1]->Unref();
    }
    
    #ifdef PLATFORM_GOOGLE
    INSTANTIATE_TEST_SUITE_P(
        UnifiedCAPI, CppGradients,
        ::testing::Combine(::testing::Values("graphdef", "mlir"),
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Apr 13 17:32:14 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

    static void RenameFile(const TF_Filesystem* filesystem, const char* src,
                           const char* dst, TF_Status* status) {
      // If target is a directory return TF_FAILED_PRECONDITION.
      // Target might be missing, so don't error in that case.
      struct stat st;
      if (stat(dst, &st) != 0) {
        if (errno != ENOENT) {
          TF_SetStatusFromIOError(status, errno, dst);
          return;
        }
      } else if (S_ISDIR(st.st_mode)) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_cluster_test.cc

      TFE_DeleteOp(op);
    
      // The device of var_handle1 is remote device, which was replaced during
      // cluster update. Removing resource with invalid device should fail
      // gracefully (i.e., with error status) instead of crashing with segfaults.
      op = TFE_NewOp(ctx, "DestroyResourceOp", status);
      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_OpAddInput(op, var_handle1, status);
    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)
  4. tensorflow/c/c_api_experimental.cc

      if (!tensorflow::protobuf::TextFormat::ParseFromString(text_proto, &gdef)) {
        status->status = tensorflow::errors::Internal(
            "Invalid text proto for GraphDef: ", text_proto);
        return {};
      }
      const auto& fdef_lib = gdef.library();
      if (fdef_lib.gradient_size() > 0) {
        status->status = tensorflow::errors::Internal(
            "GradientDef is not supported in reading Dataset related functions: ",
            text_proto);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  5. tensorflow/c/eager/gradients.cc

      }
      registry_.insert({op_name, gradient_function_factory});
      return absl::OkStatus();
    }
    Status GradientRegistry::Lookup(
        const ForwardOperation& op,
        std::unique_ptr<GradientFunction>* gradient_function) const {
      auto iter = registry_.find(op.op_name);
      if (iter == registry_.end()) {
        const string error_msg = "No gradient defined for op: " + op.op_name + ".";
        return errors::NotFound(error_msg);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/grappler/grappler.cc

      OwnedTFStatus c_status(TF_NewStatus());
      init_fn(&params, c_status.get());
      TF_RETURN_IF_ERROR(tsl::StatusFromTF_Status(c_status.get()));
      TF_RETURN_IF_ERROR(ValidateTPOptimizerRegistrationParams(params));
      TF_RETURN_IF_ERROR(ValidateTPOptimizer(optimizer));
      TF_RETURN_IF_ERROR(ValidateTPOptimizerConfigs(optimizer_configs));
    
      CGraphOptimizerRegister(
    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/ram_file_block_cache.cc

          }
        }
      });
      // Loop until either block content is successfully fetched, or our request
      // encounters an error.
      absl::MutexLock l(&block->mu);
      TF_SetStatus(status, TF_OK, "");
      while (true) {
        switch (block->state) {
          case FetchState::ERROR:
            // TF_FALLTHROUGH_INTENDED
          case FetchState::CREATED:
            block->state = FetchState::FETCHING;
    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)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      EXPECT_EQ(out.size(), 1);
      // Now read the first block; this should yield an INTERNAL error because we
      // had already cached a partial block at a later position.
      Status status = ReadCache(&cache, "", 0, block_size, &out);
      EXPECT_EQ(status.code(), error::INTERNAL);
    }
    
    TEST(RamFileBlockCacheTest, LRU) {
      const size_t block_size = 16;
      std::list<size_t> calls;
    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)
  9. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      // Step 1: Load plugin
      Env* env = Env::Default();
      void* dso_handle;
      TF_RETURN_IF_ERROR(env->LoadDynamicLibrary(dso_path.c_str(), &dso_handle));
    
      // Step 2: Load symbol for `TF_InitPlugin`
      void* dso_symbol;
      TF_RETURN_WITH_CONTEXT_IF_ERROR(
          env->GetSymbolFromLibrary(dso_handle, "TF_InitPlugin", &dso_symbol),
          "Failed to load TF_InitPlugin symbol for DSO: ", dso_path);
    
    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)
  10. tensorflow/c/eager/c_api_distributed_test.cc

    }
    
    class FunctionErrorInjectionPass : public tensorflow::FunctionOptimizationPass {
     public:
      FunctionErrorInjectionPass(string error_node, string error_device)
          : error_node_(error_node), error_device_(error_device) {}
      tensorflow::Status Run(const std::string& function_name,
                             const tensorflow::DeviceSet& device_set,
                             const tensorflow::ConfigProto& config_proto,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
Back to top