智能客服
你问我答,随时在线为你解决问题
static AttrValue CreateFrom(const std::vector<Buffer>& val);该接口已废弃。
- static AttrValue CreateFrom(int64_t val);
- static AttrValue CreateFrom(float val);
- static AttrValue CreateFrom(bool val);
- static AttrValue CreateFrom(const std::string& val);
- static AttrValue CreateFrom(const TensorPtr& val);
- static AttrValue CreateFrom(const NamedAttrs& val);
- static AttrValue CreateFrom(const Buffer& val);
- static AttrValue CreateFrom(const TensorDesc& val);
- static AttrValue CreateFrom(const std::vector<int64_t>& val);
- static AttrValue CreateFrom(const std::vector<float>& val);
- static AttrValue CreateFrom(const std::vector<bool>& val);
- static AttrValue CreateFrom(const std::vector<std::string>& val);
- static AttrValue CreateFrom(const std::vector<TensorPtr>& val);
- static AttrValue CreateFrom(const std::vector<Buffer>& val);
- static AttrValue CreateFrom(const std::vector<TensorDesc>& val);
创建指定模板类型的属性值对象。
名称 | 输入/输出 | 类型 | 描述 |
|---|---|---|---|
val | 输入 | int64_t或 float或 bool或 const std::string&或 const TensorPtr&或 const NamedAttrs&或 const Buffer&或 const TensorDesc&或 const std::vector<int64_t>&或 const std::vector<float>&或 const std::vector<bool>&或 const std::vector<std::string>&或 const std::vector<TensorPtr>&或 const std::vector<Buffer>&或 const std::vector<TensorDesc>& | 创建对象时设置的值。 |
类型 | 描述 |
|---|---|
AttrValue | 创建的属性值对象。 |
智能客服
你问我答,随时在线为你解决问题
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功