Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_SetAttrString (0.12 sec)

  1. tensorflow/c/c_api_test.cc

        EXPECT_EQ(expected_total_size, m.total_size);                    \
      } while (0)
    
    TEST_F(CApiAttributesTest, String) {
      auto desc = init("string");
      TF_SetAttrString(desc, "v", "bunny", 5);
    
      auto oper = TF_FinishOperation(desc, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_TF_META("v", -1, TF_ATTR_STRING, 5);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

    }
    
    void TF_ColocateWith(TF_OperationDescription* desc, TF_Operation* op) {
      desc->colocation_constraints.emplace(
          StrCat(tensorflow::kColocationGroupPrefix, op->node.name()));
    }
    
    void TF_SetAttrString(TF_OperationDescription* desc, const char* attr_name,
                          const void* value, size_t length) {
      tensorflow::StringPiece s(static_cast<const char*>(value), length);
      desc->node_builder.Attr(attr_name, s);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top