Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_SetAttrValueProto (0.22 sec)

  1. tensorflow/c/c_api.cc

        Tensor v;
        status->status = TF_TensorToTensor(values[i], &v);
        t.emplace_back(v);
      }
    
      if (status->status.ok()) desc->node_builder.Attr(attr_name, t);
    }
    
    void TF_SetAttrValueProto(TF_OperationDescription* desc, const char* attr_name,
                              const void* proto, size_t proto_len,
                              TF_Status* status) {
      tensorflow::AttrValue attr_value;
    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_test.cc

        tensorflow::AttrValue attr;
        for (const string& v : list) {
          attr.mutable_list()->add_s(v);
        }
        string bytes;
        attr.SerializeToString(&bytes);
        TF_SetAttrValueProto(desc, tensorflow::kColocationAttrName, bytes.data(),
                             bytes.size(), s_);
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      }
    
      void VerifyCollocation(TF_Operation* op,
    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