Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for failed (0.23 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 23 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 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. 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 23 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      auto gcs_file = static_cast<GCSFile*>(file->plugin_file);
      if (!gcs_file->outfile.is_open()) {
        TF_SetStatus(status, TF_FAILED_PRECONDITION,
                     "The internal temporary file is not writable.");
        return;
      }
      TF_VLog(3, "Append: gs://%s/%s size %u", gcs_file->bucket.c_str(),
              gcs_file->object.c_str(), n);
      gcs_file->sync_need = true;
      gcs_file->outfile.write(buffer, n);
      if (!gcs_file->outfile)
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

      if (ops->random_access_file_ops != nullptr)
        CheckAPI(ops->random_access_file_ops_api, TF_RANDOM_ACCESS_FILE_OPS_API,
                 "random access file");
    
      if (ops->writable_file_ops != nullptr)
        CheckAPI(ops->writable_file_ops_api, TF_WRITABLE_FILE_OPS_API,
                 "writable file");
    
      if (ops->read_only_memory_region_ops != nullptr)
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 07 22:08:43 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/c/c_api_function_test.cc

        for (const EdgeSpec& e : e_edges) {
          ASSERT_TRUE(a_edges.find(e) != a_edges.end())
              << "Failed to find expected edge " << e.ToString()
              << " in fdef: " << fdef.DebugString();
        }
        for (const EdgeSpec& e : c_edges) {
          ASSERT_TRUE(a_edges.find(e) != a_edges.end())
              << "Failed to find expected control edge " << e.ToString()
              << " in fdef: " << fdef.DebugString();
        }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      EXPECT_TRUE(first_block);
      EXPECT_EQ(out.size(), block_size);
      // Reading at offset file_size + 4 will read the second block (since the read
      // at file_size + 4 = 28 will be aligned to an offset of 16) but will return
      // OutOfRange because the offset is past the end of the 24-byte file.
      Status status = ReadCache(&cache, "", file_size + 4, 4, &out);
      EXPECT_EQ(status.code(), error::OUT_OF_RANGE);
      EXPECT_TRUE(second_block);
    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/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 23 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
Back to top