Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for it (0.14 sec)

  1. tensorflow/c/c_api_experimental.cc

      if (!status->status.ok()) {
        TF_DeleteCheckpointReader(reader);
        return nullptr;
      }
      const auto& m = reader->GetVariableToDataTypeMap();
      for (auto it = m.begin(); it != m.end(); ++it)
        reader->variable_list.push_back(it->first);
      std::sort(reader->variable_list.begin(), reader->variable_list.end());
      return reader;
    }
    
    void TF_DeleteCheckpointReader(TF_CheckpointReader* reader) { delete reader; }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

      auto attrs = oper->node.attrs();
      int count = 0;
      AttrValueMap::const_iterator it;
      for (it = attrs.begin(); it != attrs.end(); it++) {
        if (count == i) {
          strncpy(output, it->first.c_str(), it->first.length());
          status->status = absl::OkStatus();
          return;
        }
        count++;
      }
      status->status = OutOfRange("Operation only has ", count,
    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/c_api_test.cc

      // Import it in a fresh graph.
      TF_DeleteGraph(graph);
      graph = TF_NewGraph();
      TF_ImportGraphDefOptions* opts = TF_NewImportGraphDefOptions();
      TF_GraphImportGraphDef(graph, graph_def, opts, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      TF_Operation* scalar = TF_GraphOperationByName(graph, "scalar");
    
      // Import it in a fresh graph with an unused input mapping.
    C++
    - Registered: Tue Apr 23 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 auto& it = func->record->fdef().attr().find(attr_name);
      if (it == func->record->fdef().attr().end()) {
        status->status =
            InvalidArgument("Function '", func->record->fdef().signature().name(),
                            "' has no attr named '", attr_name, "'.");
        return;
      }
      status->status = MessageToBuffer(it->second, output_attr_value);
    }
    
    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