Home
last modified time | relevance | path

Searched refs:dtype_attr (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/core/ops/
Dfunction_ops.cc31 const AttrValue* dtype_attr = context->attrs().Find("T"); in __anon5bd79b600102() local
32 if (!dtype_attr) { in __anon5bd79b600102()
53 if (dtype_attr->type() != DT_RESOURCE) { in __anon5bd79b600102()
59 dtype_attr = context->attrs().Find("_handle_dtypes"); in __anon5bd79b600102()
63 if (!dtype_attr || !shape_attr) { in __anon5bd79b600102()
67 if (dtype_attr->list().type().empty()) { in __anon5bd79b600102()
77 DataType dtype = dtype_attr->list().type(0); in __anon5bd79b600102()
/external/tensorflow/tensorflow/lite/toco/
Dimport_tensorflow_test.cc108 AttrValue dtype_attr; in BuildConstNode() local
109 SetAttrValue(dtype, &dtype_attr); in BuildConstNode()
110 (*node->mutable_attr())["dtype"] = dtype_attr; in BuildConstNode()
202 AttrValue dtype_attr; in TEST() local
203 SetAttrValue(0.5, &dtype_attr); in TEST()
204 (*node.mutable_attr())["_softmax_beta"] = dtype_attr; in TEST()
449 AttrValue dtype_attr; in NodeWithTensorContent() local
450 SetAttrValue(dtype, &dtype_attr); in NodeWithTensorContent()
451 (*node->mutable_attr())["dtype"] = dtype_attr; in NodeWithTensorContent()
565 AttrValue dtype_attr; in BuildUnaryNode() local
[all …]
/external/tensorflow/tensorflow/python/framework/
Dpython_tensor_converter.cc40 static PyObject* dtype_attr = PY_STRING_INTERN_FROM_STRING("dtype"); in DataTypeForTensor() local
43 Safe_PyObjectPtr py_dtype(PyObject_GetAttr(tensor, dtype_attr)); in DataTypeForTensor()
Dconvert_to_constants.py60 def dtype_attr(self): member in _TensorData
388 node.attr["dtype"].CopyFrom(tensor_data.dtype_attr)
/external/tensorflow/tensorflow/core/common_runtime/
Ddirect_session_test.cc2404 AttrValue dtype_attr; in CreateIdentityGraphDef() local
2405 dtype_attr.set_type(dtype); in CreateIdentityGraphDef()
2413 placeholder->mutable_attr()->insert({"dtype", dtype_attr}); in CreateIdentityGraphDef()
2420 identity->mutable_attr()->insert({"T", dtype_attr}); in CreateIdentityGraphDef()
2764 AttrValue dtype_attr; in Input() local
2765 SetAttrValue(DT_FLOAT, &dtype_attr); in Input()
2769 input.mutable_attr()->insert({"dtype", dtype_attr}); in Input()
/external/tensorflow/tensorflow/core/grappler/costs/
Dgraph_properties.cc829 AttrValue dtype_attr; in UpdateFunction() local
834 dtype_attr.mutable_list()->add_type(dtype); in UpdateFunction()
838 (*fun_node->mutable_attr())["_handle_dtypes"] = dtype_attr; in UpdateFunction()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dimport_model.cc1039 const AttrValue* dtype_attr = node.attrs().Find("_handle_dtypes"); in InferOutputType() local
1041 if (dtype_attr && shape_attr) { in InferOutputType()
1042 if (dtype_attr->list().type().empty()) { in InferOutputType()
1052 DataType dtype = dtype_attr->list().type(0); in InferOutputType()
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tfe_src.cc1122 static PyObject* dtype_attr = PyString_InternFromString("dtype"); in PyTensor_DataType() local
1126 static PyObject* dtype_attr = PyUnicode_InternFromString("dtype"); in PyTensor_DataType()
1129 Safe_PyObjectPtr dtype_field(PyObject_GetAttr(tensor, dtype_attr)); in PyTensor_DataType()