Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 56 for init (0.3 sec)

  1. tensorflow/c/c_test_util.cc

    }
    
    TF_Tensor* BoolTensor(bool v) {
      const int num_bytes = sizeof(bool);
      bool* values = new bool[1];
      values[0] = v;
      return TF_NewTensor(TF_BOOL, nullptr, 0, values, num_bytes, &BoolDeallocator,
                          nullptr);
    }
    
    TF_Tensor* Int8Tensor(const int64_t* dims, int num_dims, const char* values) {
      int64_t num_values = 1;
      for (int i = 0; i < num_dims; ++i) {
        num_values *= dims[i];
      }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  2. tensorflow/c/experimental/gradients/not_differentiable.cc

    namespace tensorflow {
    namespace gradients {
    Status NotDifferentiableGradientFunction::Compute(
        AbstractContext* ctx, absl::Span<AbstractTensorHandle* const> grad_outputs,
        absl::Span<AbstractTensorHandle*> grad_inputs) {
      for (int i = 0; i < grad_inputs.size(); i++) {
        grad_inputs[i] = nullptr;
      }
      return OkStatus();
    }
    
    Status RegisterNotDifferentiable(GradientRegistry* registry, const string& op) {
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Jun 15 01:15:58 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/custom_device_test.cc

          MatMulOp(context, hcpu, hdevice), TFE_DeleteOp);
      TFE_OpSetDevice(matmul.get(), name, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      TFE_TensorHandle* retval;
      int num_retvals = 1;
      TFE_Execute(matmul.get(), &retval, &num_retvals, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      ASSERT_TRUE(executed);
    
      TFE_DeleteTensorHandle(retval);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

      if (ops == nullptr)
        return errors::FailedPrecondition(
            "Trying to register filesystem without operations");
    
      if (ops->init == nullptr)
        return errors::FailedPrecondition(
            "Trying to register filesystem without `init` operation");
    
      if (ops->cleanup == nullptr)
        return errors::FailedPrecondition(
            "Trying to register filesystem without `cleanup` operation");
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 07 22:08:43 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api.cc

    TF_CAPI_EXPORT extern void TFE_ContextSetServerDefWithTimeout(
        TFE_Context* ctx, int keep_alive_secs, const void* proto, size_t proto_len,
        int64_t init_timeout_in_ms, TF_Status* status,
        bool clear_existing_contexts) {
      TFE_ContextSetServerDefWithTimeoutAndRetries(
          ctx, keep_alive_secs, proto, proto_len, init_timeout_in_ms,
          /*retries=*/0, status, clear_existing_contexts);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  6. tensorflow/c/eager/c_api_test_util.cc

      }
      return server_def;
    }
    
    tensorflow::ServerDef GetServerDef(int num_tasks) {
      return GetServerDef("localhost", num_tasks);
    }
    
    tensorflow::ServerDef GetMultiClientServerDef(const std::string& job_name,
                                                  int num_tasks,
                                                  int num_virtual_gpus) {
      tensorflow::ServerDef server_def;
      server_def.set_protocol("grpc");
    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)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      ops->filesystem_ops = static_cast<TF_FilesystemOps*>(
          plugin_memory_allocate(TF_FILESYSTEM_OPS_SIZE));
      ops->filesystem_ops->init = tf_gcs_filesystem::Init;
      ops->filesystem_ops->cleanup = tf_gcs_filesystem::Cleanup;
      ops->filesystem_ops->new_random_access_file =
          tf_gcs_filesystem::NewRandomAccessFile;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_linux.cc

    namespace tf_posix_filesystem {
    
    // Transfers up to `size` bytes from `dst_fd` to `src_fd`.
    //
    // This method uses `sendfile` specific to linux after 2.6.33.
    int CopyFileContents(int dst_fd, int src_fd, off_t size) {
      off_t offset = 0;
      int bytes_transferred = 0;
      int rc = 1;
      // When `sendfile` returns 0 we stop copying and let callers handle this.
      while (offset < size && rc > 0) {
        // Use uint64 for safe compare SSIZE_MAX
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.5K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        return absl::OkStatus();
      }
      Status SetAttrShapeList(const char* attr_name, const int64_t** dims,
                              const int* num_dims, int num_values) override {
        std::vector<PartialTensorShape> shapes;
        shapes.reserve(num_values);
        for (int i = 0; i < num_values; ++i) {
          if (num_dims[i] < 0) {
            shapes.emplace_back();
          } else {
            shapes.emplace_back(ArraySlice<int64_t>(
    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)
  10. tensorflow/c/eager/unified_api_testutil.cc

          TF_RETURN_IF_ERROR(fn_op->AddInput(input));
        }
        int retvals = outputs.size() - null_indices.size();
        std::vector<AbstractTensorHandle*> fn_outputs(retvals);
        TF_RETURN_IF_ERROR(fn_op->Execute(
            absl::Span<AbstractTensorHandle*>(fn_outputs.data(), fn_outputs.size()),
            &retvals));
        int skipped_indices = 0;
        for (int i = 0; i < outputs.size(); i++) {
          if (!null_indices.contains(i)) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 5.7K bytes
    - Viewed (0)
Back to top