Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SetAttrIntList (0.17 sec)

  1. tensorflow/c/eager/c_api_unified_experimental_graph.cc

                              int num_values) override {
        op_->node_builder.Attr(attr_name,
                               ArraySlice<const float>(values, num_values));
        return absl::OkStatus();
      }
      Status SetAttrIntList(const char* attr_name, const int64_t* values,
                            int num_values) override {
        op_->node_builder.Attr(
            attr_name, ArraySlice<const 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)
  2. tensorflow/c/eager/c_api.cc

      }
    }
    
    void TFE_OpSetAttrIntList(TFE_Op* op, const char* attr_name,
                              const int64_t* values, int num_values) {
      auto s =
          tensorflow::unwrap(op)->SetAttrIntList(attr_name, values, num_values);
      if (!s.ok()) {
        LOG(WARNING) << "Unable to set attribute: " << attr_name;
      }
    }
    
    void TFE_OpSetAttrTypeList(TFE_Op* op, const char* attr_name,
    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)
  3. tensorflow/c/c_api_test.cc

      EXPECT_EQ(31415, value);
    }
    
    TEST_F(CApiAttributesTest, IntList) {
      const int64_t list[] = {1, 2, 3, 4};
      const size_t list_size = TF_ARRAYSIZE(list);
    
      auto desc = init("list(int)");
      TF_SetAttrIntList(desc, "v", list, list_size);
    
      auto oper = TF_FinishOperation(desc, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      int64_t values[list_size];
    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.cc

      }
    }
    
    void TF_SetAttrInt(TF_OperationDescription* desc, const char* attr_name,
                       int64_t value) {
      desc->node_builder.Attr(attr_name, static_cast<int64_t>(value));
    }
    
    void TF_SetAttrIntList(TF_OperationDescription* desc, const char* attr_name,
                           const int64_t* values, int num_values) {
      desc->node_builder.Attr(
          attr_name, ArraySlice<const int64_t>(
    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)
Back to top