Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for failed (0.18 sec)

  1. tensorflow/c/c_api.cc

          "ApiDefMap is not supported on mobile.");
    #else
      mutex_lock l(api_def_map->lock);
      if (api_def_map->update_docs_called) {
        status->status = FailedPrecondition(
            "TF_ApiDefMapPut cannot be called after TF_ApiDefMapGet has been "
            "called.");
        return;
      }
      string api_def_text(text, text_len);
      status->status = api_def_map->api_def_map.LoadApiDef(api_def_text);
    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)
  2. tensorflow/c/eager/c_api_unified_experimental.cc

      TracingContext* tracing_ctx = dyn_cast<TracingContext>(unwrap(func));
      if (!tracing_ctx) {
        tsl::Set_TF_Status_from_Status(
            s, tensorflow::errors::InvalidArgument(
                   "TF_AddFunctionParameter must be called on a TracingContext."));
        return nullptr;
      }
      tensorflow::PartialTensorShape partial_shape;
      if (shape.num_dims != -1) {
        DCHECK(shape.dim_sizes != nullptr);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      auto posix_file = static_cast<PosixFile*>(file->plugin_file);
      plugin_memory_free(const_cast<char*>(posix_file->filename));
      delete posix_file;
    }
    
    static void Append(const TF_WritableFile* file, const char* buffer, size_t n,
                       TF_Status* status) {
      auto posix_file = static_cast<PosixFile*>(file->plugin_file);
    
      size_t r = fwrite(buffer, 1, n, posix_file->handle);
      if (r != n)
    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)
  4. tensorflow/c/eager/c_api_cluster_test.cc

      TestRemoteExecuteUpdateServerDefResourceAccess(true);
    }
    
    void TestRemoteExecuteUpdateServerDefWithFailures(bool async) {
      // Fail fast on GetStatus requests so we can get errors instead of timeout
      // when updating cluster with non-exsitent worker
      tensorflow::setenv("GRPC_FAIL_FAST", "TRUE", /*overwrite=*/1);
    
      tensorflow::ServerDef server_def = GetServerDef(2);
      // This server def has the task index set to 0.
    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)
  5. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      const std::string new_path = GetURIForPath("a_file/a_file");
      std::unique_ptr<WritableFile> same_file;
      status = env_->NewAppendableFile(new_path, &same_file);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::FAILED_PRECONDITION);
    }
    
    TEST_P(ModularFileSystemTest, TestReadFile) {
      const std::string filepath = GetURIForPath("a_file");
      std::unique_ptr<RandomAccessFile> new_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)
  6. tensorflow/c/experimental/grappler/grappler_test.cc

        PopulateDefaultParam(params);
        params->device_type = nullptr;
      };
    
      tensorflow::Status status = InitGraphPlugin(plugin_init);
      ASSERT_EQ(status.code(), tensorflow::error::FAILED_PRECONDITION);
      ASSERT_EQ(
          status.message(),
          "'device_type' field in TP_OptimizerRegistrationParams must be set.");
    }
    
    TEST(Grappler, OptimizeFuncNotSet) {
      auto plugin_init = [](TP_OptimizerRegistrationParams* const params,
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Apr 13 22:30:58 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_experimental.cc

      if (enable) {
        optimizer_options->set_global_jit_level(tensorflow::OptimizerOptions::ON_1);
    
        // These XLA flags are needed to trigger XLA properly from C (more generally
        // non-Python) clients. If this API is called again with `enable` set to
        // false, it is safe to keep these flag values as is.
        tensorflow::MarkForCompilationPassFlags* flags =
            tensorflow::GetMarkForCompilationPassFlags();
    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)
  8. tensorflow/c/experimental/filesystem/modular_filesystem.cc

                                                int64_t* undeleted_files,
                                                int64_t* undeleted_dirs) {
      if (undeleted_files == nullptr || undeleted_dirs == nullptr)
        return errors::FailedPrecondition(
            "DeleteRecursively must not be called with `undeleted_files` or "
            "`undeleted_dirs` set to NULL");
    
      if (ops_->delete_recursively == nullptr)
    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)
  9. tensorflow/c/eager/c_api_unified_experimental_test.cc

      TF_AbstractOpSetOpName(placeholder_op, "my_ph", status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      // This should fail.
      TF_AbstractOpSetOpType(placeholder_op, "Placeholder", status.get());
      ASSERT_EQ(TF_FAILED_PRECONDITION, TF_GetCode(status.get()));
    
      TF_DeleteAbstractOp(placeholder_op);
      TF_DeleteExecutionContext(graph_ctx);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  10. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

      //
      // `cancellation_manager` must live until after `Join` finishes and pending
      // `is_async` operations finish. In addition to allowing the caller to cancel
      // the operation, its `StartCancel` method will be called if op execution
      // fails on any device in order to cancel the others.
      void StartExecute(TFE_Context* context, const char* operation_name,
                        std::vector<TFE_TensorHandle*> inputs,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
Back to top