Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for male (0.18 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

      TensorHandlePtr combined_value = CreatePerDeviceValues(
          context.get(), in_components, device_name, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
      // Loop to make synchronization failures more deterministic
      for (int i = 0; i < 100; ++i) {
        TensorHandlePtr multiply_result(
            Multiply(context.get(), combined_value.get(), combined_value.get(),
                     status.get()));
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

                                    const char* attr_name, const void* proto,
                                    size_t proto_len, TF_Status* status) {
      // shape.ParseFromArray takes an int as length, this function takes size_t,
      // make sure there is no information loss.
      if (proto_len > std::numeric_limits<int>::max()) {
        status->status = InvalidArgument(
            "proto_len (", proto_len,
    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)
  3. tensorflow/c/eager/gradients.cc

        int64_t target_id = target_tensor_ids[i];
        if (sources_set.find(target_id) != sources_set.end()) {
          auto tensor = targets[i];
          sources_that_are_targets.insert(
              std::make_pair(target_id, TapeTensor(tensor)));
        }
      }
    
      TF_RETURN_IF_ERROR(GradientTape::ComputeGradient(
          vspace, target_tensor_ids, source_tensor_ids, sources_that_are_targets,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

      CHECK_OK(buffer.status());
    
      return new PJRT_Buffer{std::move(*buffer), c_api_client->pjrt_c_client()};
    }
    
    TEST(TensorPjRtBufferUtilTest, GetPjRtCBufferFromTensorNoBuffer) {
      auto allocator = std::make_unique<AsyncValueAllocator>();
      tensorflow::Tensor tensor(allocator.get(), DT_FLOAT, {1});
    
      EXPECT_THAT(
          GetPjRtCBufferFromTensor(&tensor),
          StatusIs(error::INTERNAL, HasSubstr(absl::StrCat(
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  5. tensorflow/c/eager/custom_device_testutil.cc

      TFE_TensorHandle* t = TFE_TensorHandleCopyToDevice(
          tensor, context, dev->underlying_device.c_str(), status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      auto dst = std::make_unique<LoggedTensor>(t);
      *(dev->arrived_flag) = true;
      return MakeLoggedTensorHandle(context, dev->device_name, std::move(dst),
                                    status);
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Mar 03 20:47:31 GMT 2021
    - 8.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_distributed_test.cc

      TFE_TensorHandle* h0 = TestVariable(ctx, 1.0, task1_name);
      TFE_TensorHandle* h1 = TestVariable(ctx, 2.0, task2_name);
      TFE_TensorHandle* h2 = TestVariable(ctx, 3.0, task0_name);
    
      // Add a sync point to make sure that variables have been initialized
      // before the function execution starts.
      TFE_ContextAsyncWait(ctx, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  7. tensorflow/c/eager/gradients_test.cc

      int num_retvals = 1;
      std::vector<AbstractTensorHandle*> outputs(1);
      GradientRegistry registry;
      s = RegisterGradients(&registry);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
      auto tape = std::make_unique<Tape>(/*persistent=*/false);
      s = Execute(check_numerics_op.get(), ctx.get(), absl::MakeSpan(outputs),
                  &num_retvals, &forward_op, tape.get(), registry);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

    ParallelDevice::ParallelDevice(const std::vector<std::string>& devices,
                                   bool is_async, int in_flight_nodes_limit)
        : underlying_devices_(devices),
          default_cancellation_manager_(absl::make_unique<CancellationManager>()) {
      device_threads_.reserve(devices.size());
      for (int device_index = 0; device_index < devices.size(); ++device_index) {
        device_threads_.emplace_back(new DeviceThread(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  9. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

      TFE_OpSetAttrString(op.get(), "container", "", 0);
      // Use the special GUID for no buffer sharing
      //
      // TODO(allenl): Should we provide a better API for this? AFAIK this is the
      // only reasonable way to make variables with no aliasing using the eager C
      // API.
      std::string no_sharing = "cd2c89b7-88b7-44c8-ad83-06c2a9158347";
      TFE_OpSetAttrString(op.get(), "shared_name", no_sharing.c_str(),
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_function.cc

    }
    
    // Converts `ninputs` and `inputs` into `inputs_tensors` and `input_nodes` and
    // does various checks while doing so. `input_nodes` will contain the same
    // information as input_tensors just in a different structure to make
    // following processing easier. TODO(iga): Simplify this nested structure.
    Status ProcessInputs(
        const TF_Graph* fn_body, const char* fn_name, int ninputs,
        const TF_Output* inputs, std::vector<OutputTensor>* input_tensors,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
Back to top