Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for contra (0.2 sec)

  1. tensorflow/c/c_api.cc

                                     TF_Operation** control_inputs,
                                     int max_control_inputs) {
      int count = 0;
      for (const auto* edge : oper->node.in_edges()) {
        if (edge->IsControlEdge() && !edge->src()->IsSource()) {
          if (count < max_control_inputs) {
            control_inputs[count] = ToOperation(edge->src());
          }
          ++count;
        }
      }
    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/c_api_function.cc

          output_names_vec.push_back(string(output_names[i]));
        }
      }
    
      // Process control output names.
      std::vector<string> control_output_names_vec;
      if (control_output_names) {
        control_output_names_vec.reserve(ncontrol_outputs);
        for (int i = 0; i < ncontrol_outputs; ++i) {
          control_output_names_vec.push_back(string(control_output_names[i]));
        }
      }
    
      // Compute body nodes.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  3. tensorflow/c/eager/c_api_distributed_test.cc

                             std::unique_ptr<tensorflow::Graph>* graph,
                             tensorflow::FunctionLibraryDefinition* flib_def,
                             std::vector<std::string>* control_ret_node_names,
                             bool* control_rets_updated) override {
        // Inject failure to function instantiation if finding a node that contains
        // the given node name (error_node_) and requested device (error_device_).
    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)
  4. tensorflow/c/eager/parallel_device/parallel_device.cc

      if (TF_GetCode(status) != TF_OK) return nullptr;
      if (parallel_tensor->num_tensors() == 1) {
        // Copy-off for single-device tensors is allowed to make debugging dynamic
        // control flow easier.
        return TFE_TensorHandleCopySharingTensor(parallel_tensor->tensor(0),
                                                 status);
      } else {
        TF_SetStatus(
            status, TF_UNIMPLEMENTED,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_function_test.cc

              << "Failed to find expected control edge " << e.ToString()
              << " in fdef: " << fdef.DebugString();
        }
    
        // If caller specified all edges, check that we have seen all
        if (is_exact_edges) {
          ASSERT_EQ(e_edges.size() + c_edges.size(), a_edges.size())
              << "Expected edges: " << ToString(e_edges)
              << " Expected Control edges: " << ToString(c_edges)
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  6. tensorflow/c/experimental/gradients/math_grad.cc

      }
    
      Status Compute(AbstractContext* ctx,
                     absl::Span<AbstractTensorHandle* const> grad_outputs,
                     absl::Span<AbstractTensorHandle*> grad_inputs) override {
        // TODO(vnvo2409): Add control dependency
        /* Given upstream grad U and a Log1p op: Y = log(1 + X), the gradients are:
         *
         *    dX = U / (1 + X)
         *
         */
    
        AbstractTensorHandle* upstream_grad = grad_outputs[0];
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 15.2K bytes
    - Viewed (0)
Back to top