Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tensorflow/c/c_api.cc

      }
    
          LIST_CASE(
              s, TF_ATTR_STRING, metadata.total_size = 0;
              for (int i = 0; i < attr->list().s_size();
                   ++i) { metadata.total_size += attr->list().s(i).size(); });
          LIST_CASE(i, TF_ATTR_INT);
          LIST_CASE(f, TF_ATTR_FLOAT);
          LIST_CASE(b, TF_ATTR_BOOL);
          LIST_CASE(type, TF_ATTR_TYPE);
          LIST_CASE(
    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

      shape_and_type.dtype = dtype;
    }
    
    void TF_DeleteShapeAndTypeList(TF_ShapeAndTypeList* shape_list) {
      if (shape_list == nullptr) return;
      for (size_t i = 0; i < shape_list->num_items; ++i) {
        delete[] shape_list->items[i].dims;
      }
      delete[] shape_list->items;
      delete shape_list;
    }
    
    void TF_DeleteShapeAndTypeListArray(TF_ShapeAndTypeList** shape_list_array,
    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/eager/gradients.cc

    }
    Status SetAttrStringList(AbstractOperation* op_, const char* attr_name,
                             const void* const* values, const size_t* lengths,
                             int num_values, ForwardOperation* forward_op_) {
      std::vector<StringPiece> v(num_values);
      for (int i = 0; i < num_values; ++i) {
        v[i] = StringPiece(static_cast<const char*>(values[i]), lengths[i]);
      }
      forward_op_->attrs.Set(attr_name, v);
    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)
  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/unified_api_testutil.cc

          }
          AbstractFunction* func = nullptr;
          OutputList output_list;
          output_list.expected_num_outputs = 0;
          output_list.outputs.reserve(outputs.size());
          for (int i = 0; i < model_outputs.size(); i++) {
            if (model_outputs[i]) {
              output_list.outputs.emplace_back(model_outputs[i]);
              output_list.expected_num_outputs += 1;
            } else {
              null_indices.insert(i);
            }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api.cc

          if (const int f_size = default_value.list().f_size()) {
            absl::InlinedVector<float, 4> f_vector;
            f_vector.reserve(f_size);
            for (int i = 0; i < f_size; ++i) {
              f_vector.push_back(default_value.list().f(i));
            }
            TFE_OpSetAttrFloatList(op, attr_name, f_vector.data(), f_size);
          }
          // Bool
          if (const int b_size = default_value.list().b_size()) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  7. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        return absl::OkStatus();
      }
      Status SetAttrShapeList(const char* attr_name, const int64_t** dims,
                              const int* num_dims, int num_values) override {
        std::vector<PartialTensorShape> shapes;
        shapes.reserve(num_values);
        for (int i = 0; i < num_values; ++i) {
          if (num_dims[i] < 0) {
            shapes.emplace_back();
          } else {
            shapes.emplace_back(ArraySlice<int64_t>(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  8. tensorflow/c/c_api_test.cc

    TEST_F(CApiAttributesTest, StringList) {
      std::vector<string> list = {"bugs", "bunny", "duck"};
      std::unique_ptr<const void*[]> list_ptrs;
      std::unique_ptr<size_t[]> list_lens;
      StringVectorToArrays(list, &list_ptrs, &list_lens);
      int list_total_size = 0;
      for (const auto& s : list) {
        list_total_size += s.size();
      }
    
      auto desc = init("list(string)");
    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)
Back to top