Home
last modified time | relevance | path

Searched refs:attr_proto (Results 1 – 25 of 25) sorted by relevance

/dports/misc/py-onnx-tf/onnx-tf-1.6.0/onnx_tf/common/
H A Dattr_converter.py64 if attr_proto.HasField('f'):
65 return attr_proto.f
66 elif attr_proto.HasField('i'):
67 return attr_proto.i
68 elif attr_proto.HasField('s'):
69 return str(attr_proto.s, 'utf-8') if IS_PYTHON3 else attr_proto.s
70 elif attr_proto.HasField('t'):
73 return attr_proto.g
74 elif attr_proto.floats:
76 elif attr_proto.ints:
[all …]
/dports/misc/py-onnx/onnx-1.10.2/onnx/defs/reduction/
H A Dold.cc65 auto attr_proto = ctx.getAttribute("keepdims"); in ReduceDocGenerator_opset12() local
66 if (attr_proto) { in ReduceDocGenerator_opset12()
67 keep_dims = attr_proto->i(); in ReduceDocGenerator_opset12()
218 if (attr_proto) { in ArgReduceDocGenerator_opset12()
219 keep_dims = attr_proto->i(); in ArgReduceDocGenerator_opset12()
289 if (attr_proto) { in ReduceDocGenerator_opset1()
290 keep_dims = attr_proto->i(); in ReduceDocGenerator_opset1()
435 if (attr_proto) { in ArgReduceDocGenerator_opset1()
436 keep_dims = attr_proto->i(); in ArgReduceDocGenerator_opset1()
519 if (attr_proto) { in ArgReduceDocGenerator_opset11()
[all …]
H A Ddefs.cc105 auto attr_proto = ctx.getAttribute("keepdims"); in ReduceDocGenerator() local
106 if (attr_proto) { in ReduceDocGenerator()
107 keep_dims = attr_proto->i(); in ReduceDocGenerator()
291 auto attr_proto = ctx.getAttribute("keepdims"); in ArgReduceDocGenerator() local
292 if (attr_proto) { in ArgReduceDocGenerator()
293 keep_dims = attr_proto->i(); in ArgReduceDocGenerator()
/dports/misc/py-onnx/onnx-1.10.2/onnx/defs/generator/
H A Dold.cc204 auto attr_proto = ctx.getAttribute("value"); in __anon980a70580202() local
205 if (nullptr == attr_proto) in __anon980a70580202()
207 if (!attr_proto->has_t()) in __anon980a70580202()
209 const TensorProto& tensor_proto = attr_proto->t(); in __anon980a70580202()
235 auto attr_proto = ctx.getAttribute("value"); in __anon980a70580302() local
236 if (nullptr == attr_proto || !attr_proto->has_t()) in __anon980a70580302()
239 const TensorProto& tensor_proto = attr_proto->t(); in __anon980a70580302()
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/thirdparty/onnx/onnx/defs/generator/
H A Dold.cc29 auto attr_proto = ctx.getAttribute("value"); in __anonba2e9d5f0102() local
30 if (nullptr == attr_proto) in __anonba2e9d5f0102()
32 if (!attr_proto->has_t()) in __anonba2e9d5f0102()
34 const TensorProto& tensor_proto = attr_proto->t(); in __anonba2e9d5f0102()
H A Ddefs.cc27 auto attr_proto = ctx.getAttribute("value"); in __anona136b6a20102() local
28 if (nullptr == attr_proto || !attr_proto->has_t()) in __anona136b6a20102()
31 const TensorProto& tensor_proto = attr_proto->t(); in __anona136b6a20102()
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/thirdparty/onnx/onnx/defs/
H A Dshape_inference.h87 auto attr_proto = ctx.getAttribute(attributeName); in getAttribute() local
88 if ((nullptr != attr_proto) && attr_proto->has_i()) in getAttribute()
89 return attr_proto->i(); in getAttribute()
97 auto attr_proto = ctx.getAttribute(attributeName); in getAttribute() local
98 if ((nullptr != attr_proto) && attr_proto->has_s()) in getAttribute()
99 return attr_proto->s(); in getAttribute()
346 auto attr_proto = ctx.getAttribute(attributeName);
355 if (!attr_proto->has_i()) {
361 auto attr_value = attr_proto->i();
417 if ((nullptr == attr_proto) || (!attr_proto->has_type()) || in propagateShapeFromAttributeToOutput()
[all …]
H A Dschema.cc209 const auto& name = attr_proto.name(); in Verify()
226 if (attr_proto.has_ref_attr_name()) { in Verify()
227 if (!attr_proto.has_type() || attr_proto.type() != expected_type) { in Verify()
236 if (!attr_proto.has_f()) { in Verify()
241 if (!attr_proto.has_i()) { in Verify()
246 if (!attr_proto.has_s()) { in Verify()
251 if (!attr_proto.has_t()) { in Verify()
256 if (!attr_proto.has_g()) { in Verify()
261 if (!attr_proto.floats_size()) { in Verify()
267 if (!attr_proto.ints_size()) { in Verify()
[all …]
/dports/misc/glow/glow-f24d960e3cc80db95ac0bc17b1900dbf60ca044a/thirdparty/onnx/onnx/defs/reduction/
H A Ddefs.cc44 auto attr_proto = ctx.getAttribute("keepdims"); in ReduceDocGenerator() local
45 if (attr_proto) { in ReduceDocGenerator()
46 keep_dims = attr_proto->i(); in ReduceDocGenerator()
179 auto attr_proto = ctx.getAttribute("keepdims"); in ArgReduceDocGenerator() local
180 if (attr_proto) { in ArgReduceDocGenerator()
181 keep_dims = attr_proto->i(); in ArgReduceDocGenerator()
/dports/misc/py-onnx/onnx-1.10.2/onnx/defs/
H A Dshape_inference.h139 auto attr_proto = ctx.getAttribute(attributeName); in getAttribute() local
140 if ((nullptr != attr_proto) && attr_proto->has_i()) in getAttribute()
141 return attr_proto->i(); in getAttribute()
147 if ((nullptr != attr_proto) && attr_proto->has_i()) in getAttribute()
148 return attr_proto->i(); in getAttribute()
155 if ((nullptr != attr_proto) && attr_proto->has_s()) in getAttribute()
156 return attr_proto->s(); in getAttribute()
560 if (!attr_proto->has_i()) {
563 auto attr_value = attr_proto->i();
649 if ((nullptr == attr_proto) || (!attr_proto->has_type()) ||
[all …]
H A Dschema.cc240 const auto& name = attr_proto.name(); in Verify()
257 if (attr_proto.type() != expected_type) { in Verify()
277 if (!attr_proto.has_t()) { in Verify()
287 if (!attr_proto.has_g()) { in Verify()
292 if (!attr_proto.has_tp()) { in Verify()
297 if (!attr_proto.floats_size()) { in Verify()
302 if (!attr_proto.ints_size()) { in Verify()
307 if (!attr_proto.strings_size()) { in Verify()
312 if (!attr_proto.tensors_size()) { in Verify()
322 if (!attr_proto.graphs_size()) { in Verify()
[all …]
/dports/misc/py-onnx/onnx-1.10.2/onnx/defs/optional/
H A Ddefs.cc46 const auto* attr_proto = ctx.getAttribute("type"); in __anon2a3bc79a0202() local
48 if ((numInputs == 0) && (attr_proto != nullptr)) { in __anon2a3bc79a0202()
49 if (!attr_proto->has_tp()) in __anon2a3bc79a0202()
51 auto attr_tp = attr_proto->tp(); in __anon2a3bc79a0202()
/dports/misc/py-onnx/onnx-1.10.2/onnx/defs/sequence/
H A Ddefs.cc39 const auto* attr_proto = ctx.getAttribute("dtype"); in __anon4cded26d0102() local
41 if (nullptr != attr_proto) { in __anon4cded26d0102()
42 if (!attr_proto->has_i()) { in __anon4cded26d0102()
46 auto attr_value = attr_proto->i(); in __anon4cded26d0102()
438 auto attr_proto = ctx.getAttribute("keepdims"); in __anon4cded26d0702() local
439 if (attr_proto) { in __anon4cded26d0702()
440 keepdims = attr_proto->i(); in __anon4cded26d0702()
/dports/misc/mxnet/incubator-mxnet-1.9.0/python/mxnet/contrib/onnx/onnx2mx/
H A Dimport_onnx.py209 def _parse_attr(self, attr_proto): argument
212 for a in attr_proto:
/dports/misc/py-mxnet/incubator-mxnet-1.9.0/python/mxnet/contrib/onnx/onnx2mx/
H A Dimport_onnx.py209 def _parse_attr(self, attr_proto): argument
212 for a in attr_proto:
/dports/misc/tvm/incubator-tvm-0.6.1/nnvm/python/nnvm/frontend/
H A Donnx.py925 def _parse_attr(self, attr_proto): argument
928 for a in attr_proto:
H A Dtensorflow.py1487 def _parse_attr(self, attr_proto): argument
1490 for key, value in attr_proto.items():
/dports/misc/py-tvm/incubator-tvm-0.6.1/nnvm/python/nnvm/frontend/
H A Donnx.py925 def _parse_attr(self, attr_proto): argument
928 for a in attr_proto:
H A Dtensorflow.py1487 def _parse_attr(self, attr_proto): argument
1490 for key, value in attr_proto.items():
/dports/misc/py-tvm/incubator-tvm-0.6.1/python/tvm/relay/frontend/
H A Donnx.py1366 def _parse_attr(self, attr_proto): argument
1369 for a in attr_proto:
H A Dtensorflow.py2365 def _parse_attr(self, attr_proto): argument
2368 for key, value in attr_proto.items():
/dports/misc/tvm/incubator-tvm-0.6.1/python/tvm/relay/frontend/
H A Donnx.py1366 def _parse_attr(self, attr_proto): argument
1369 for a in attr_proto:
H A Dtensorflow.py2365 def _parse_attr(self, attr_proto): argument
2368 for key, value in attr_proto.items():
/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/tvm/python/tvm/relay/frontend/
H A Donnx.py2321 def _parse_attr(self, attr_proto): argument
2324 for a in attr_proto:
H A Dtensorflow.py3061 def _parse_attr(self, attr_proto): argument
3064 for key, value in attr_proto.items():