Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for item (0.14 sec)

  1. tensorflow/c/experimental/grappler/grappler.cc

    namespace grappler {
    
    Status CGraphOptimizer::Optimize(Cluster* cluster, const GrapplerItem& item,
                                     GraphDef* optimized_graph_def) {
      OwnedTFStatus c_status(TF_NewStatus());
      OwnedTFBuffer graph_buf(TF_NewBuffer());
      OwnedTFBuffer optimized_graph_buf(TF_NewBuffer());
      TF_RETURN_IF_ERROR(MessageToBuffer(item.graph, graph_buf.get()));
    
      optimizer_.optimize_func(c_optimizer_, graph_buf.get(),
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  2. tensorflow/c/c_api.cc

      if (!status->status.ok()) return -1;
      auto iter = name_ranges.find(arg_name);
      if (iter == name_ranges.end()) {
        status->status = InvalidArgument("Output arg '", arg_name, "' not found");
        return -1;
      }
      return iter->second.second - iter->second.first;
    }
    
    int TF_OperationNumInputs(TF_Operation* oper) {
      return oper->node.num_inputs();
    }
    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)
  3. tensorflow/c/c_api_experimental.cc

            done.Notify();
          });
      done.WaitForNotification();
    }
    
    TF_ShapeAndTypeList* TF_NewShapeAndTypeList(int num_items) {
      TF_ShapeAndTypeList* result = new TF_ShapeAndTypeList;
      result->num_items = num_items;
      result->items = (num_items == 0) ? nullptr : new TF_ShapeAndType[num_items]();
      return result;
    }
    
    void TF_ShapeAndTypeListSetShape(TF_ShapeAndTypeList* shape_list, int index,
    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)
  4. tensorflow/c/eager/gradients.cc

        const ForwardOperation& op,
        std::unique_ptr<GradientFunction>* gradient_function) const {
      auto iter = registry_.find(op.op_name);
      if (iter == registry_.end()) {
        const string error_msg = "No gradient defined for op: " + op.op_name + ".";
        return errors::NotFound(error_msg);
      }
      gradient_function->reset(iter->second(op));
      return absl::OkStatus();
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_function.cc

                                        " into function '", fn_name, "'");
    
        input_tensors->emplace_back(node, idx);
    
        const auto& iter = input_nodes->find(node);
        if (iter == input_nodes->end()) {
          input_nodes->insert({node, {idx}});
        } else {
          auto& indices = iter->second;
          if (std::find(indices.begin(), indices.end(), idx) != indices.end()) {
            return InvalidArgument("TF_Output ", node->name(), ":", idx,
    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)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      for (auto&& item : gcs_file->gcs_client.ListObjectsAndPrefixes(
               bucket, gcs::Prefix(prefix), gcs::Delimiter(delimiter),
               gcs::Fields("items(name),prefixes"))) {
        if (count == max_results) {
          TF_SetStatus(status, TF_OK, "");
          return result;
        }
        if (!item) {
          TF_SetStatusFromGCSStatus(item.status(), status);
          return result;
        }
    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)
  7. tensorflow/c/eager/c_api_experimental.cc

        return;
      }
      std::vector<tensorflow::CoordinatedTask> task_vec(tasks.length);
      auto* task_iter = static_cast<const tensorflow::CoordinatedTask*>(tasks.data);
      for (size_t i = 0; i < tasks.length; ++i) {
        task_vec[i].set_job_name(task_iter->job_name());
        task_vec[i].set_task_id(task_iter->task_id());
        ++task_iter;
      }
      auto results = coord_agent->GetTaskState(task_vec);
      if (!results.ok()) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  8. tensorflow/c/c_api_function_test.cc

        for (const OpDef::ArgDef& arg : fdef.signature().output_arg()) {
          const auto& iter = fdef.ret().find(arg.name());
          if (iter != fdef.ret().end()) {
            const auto& v = a_edges.insert({iter->second, arg.name()});
            ASSERT_TRUE(v.second) << "Duplicate edge " << iter->second << " -> "
                                  << arg.name() << ". fdef: " << fdef.DebugString();
          } else {
    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)
Back to top