Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for init (0.23 sec)

  1. tensorflow/c/c_api.cc

      for (const auto* edge : oper->node.out_edges()) {
        if (edge->IsControlEdge() && !edge->dst()->IsSink()) {
          ++count;
        }
      }
      return count;
    }
    
    int TF_OperationGetControlOutputs(TF_Operation* oper,
                                      TF_Operation** control_outputs,
                                      int max_control_outputs) {
      int count = 0;
      for (const auto* edge : oper->node.out_edges()) {
    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_experimental.cc

    int TF_CheckpointReaderHasTensor(TF_CheckpointReader* reader,
                                     const char* name) {
      return reader->HasTensor(name);
    }
    
    const char* TF_CheckpointReaderGetVariable(TF_CheckpointReader* reader,
                                               int index) {
      return reader->variable_list[index].c_str();
    }
    
    int TF_CheckpointReaderSize(TF_CheckpointReader* reader) {
    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)
  3. tensorflow/c/c_api_test.cc

      }
    }
    
    TEST_F(CApiAttributesTest, EmptyList) {
      auto desc = init("list(int)");
      TF_SetAttrIntList(desc, "v", nullptr, 0);
      auto oper = TF_FinishOperation(desc, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_TF_META("v", 0, TF_ATTR_INT, -1);
    }
    
    TEST_F(CApiAttributesTest, Names) {
      auto desc = init("string");
      TF_SetAttrString(desc, "v", "bunny", 5);
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  4. tensorflow/c/c_api_function.cc

        const TF_Graph* fn_body, const char* fn_name, int ninputs,
        const TF_Output* inputs, std::vector<OutputTensor>* input_tensors,
        std::unordered_map<const Node*, std::vector<int>>* input_nodes)
        TF_EXCLUSIVE_LOCKS_REQUIRED(fn_body->mu) {
      input_tensors->reserve(ninputs);
      for (int i = 0; i < ninputs; ++i) {
        Node* node = inputs[i].oper ? &inputs[i].oper->node : nullptr;
        int idx = inputs[i].index;
    
    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)
  5. tensorflow/c/eager/c_api_experimental.cc

    }
    
    TF_Tensor* TFE_AllocateHostTensor(TFE_Context* ctx, TF_DataType dtype,
                                      const int64_t* dims, int num_dims,
                                      TF_Status* status) {
      std::vector<int64_t> dimvec(num_dims);
      for (int i = 0; i < num_dims; ++i) {
        dimvec[i] = static_cast<int64_t>(dims[i]);
      }
    
      if (ctx == nullptr) {
    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)
Back to top