2018年10月26日星期五

Tensor convert to AttrTensor (tensor proto)

Breakpoint 1, main () at tf_c_test.cc:106
main () at tf_c_test.cc:115        google::protobuf::RepeatedField<float>::AddAlreadyReserved                                               L1134 PC: 0x7fffebfe66dc
#1  0x00007fffebfdf282 in google::protobuf::RepeatedField<float>::RepeatedField<float const*> (this=0x7fffffffe010, begin=0x7ffff7ff5000,
    end=@0x7fffffffe008: 0x7ffff7ff5004) at external/protobuf_archive/src/google/protobuf/repeated_field.h:1065
#2  0x00007fffebfc88cd in tensorflow::(anonymous namespace)::ProtoHelper<float>::Fill (data=0x7ffff7ff5000, n=1, proto=0xde57c0)
    at tensorflow/core/framework/tensor.cc:289
#3  0x00007fffebfd4e0f in tensorflow::(anonymous namespace)::ToProtoField<float> (in=..., n=1, out=0xde57c0) at tensorflow/core/framework/tensor.cc:587
#4  0x00007fffebfcd60e in tensorflow::Tensor::AsProtoField (this=0x7fffffffe310, proto=0xde57c0) at tensorflow/core/framework/tensor.cc:868
#5  0x00007fffebee8382 in tensorflow::SetAttrValue (value=..., out=0x7fffffffe270) at tensorflow/core/framework/attr_value_util.cc:525
#6  0x00007fffebf64191 in tensorflow::NodeDefBuilder::Attr (this=0xc1d8e0, name=..., value=...) at tensorflow/core/framework/node_def_builder.cc:280
#7  0x00007fffedef0288 in tensorflow::NodeBuilder::Attr<tensorflow::Tensor&> (this=0xc1d8e0, attr_name=..., value=...) at ./tensorflow/core/graph/node_builder.h:150
#8  0x00007fffedee2604 in TF_SetAttrTensor (desc=0xc1d8e0, attr_name=0x401d4d "value", value=0xbd1ca0, status=0x891430) at tensorflow/c/c_api.cc:1373
#9  0x00000000004016cc in Const (graph=0xc3ba10, status=0x891430, tensor=0xbd1ca0, name=0x401da7 "const") at tf_c_test.cc:59
---Type <return> to continue, or q <return> to quit---
#10 0x0000000000401ac9 in main () at tf_c_test.cc:132

没有评论:

发表评论