Home
last modified time | relevance | path

Searched refs:attr_tensor (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/optimizers/
Dauto_parallel.cc44 AttrValue attr_tensor; in AddNodeDivConst() local
45 auto tensor = attr_tensor.mutable_tensor(); in AddNodeDivConst()
48 node->mutable_attr()->insert({"value", attr_tensor}); in AddNodeDivConst()
Dgeneric_layout_optimizer_transposer.cc307 AttrValue attr_tensor; in CreateConstPermNode() local
312 tensor.AsProtoTensorContent(attr_tensor.mutable_tensor()); in CreateConstPermNode()
313 node.mutable_attr()->insert({"value", attr_tensor}); in CreateConstPermNode()
1252 AttrValue attr_tensor; in AddNodeShapeConst() local
1259 tensor.AsProtoTensorContent(attr_tensor.mutable_tensor()); in AddNodeShapeConst()
1260 new_node.mutable_attr()->insert({"value", attr_tensor}); in AddNodeShapeConst()
Dconstant_folding.cc1140 AttrValue* attr_tensor) { in CreateConstantTensorAttrValue() argument
1141 TensorProto* t = attr_tensor->mutable_tensor(); in CreateConstantTensorAttrValue()
1247 AttrValue attr_tensor; in CreateNodeDef() local
1248 TensorProto* t = attr_tensor.mutable_tensor(); in CreateNodeDef()
1316 node->mutable_attr()->insert({"value", attr_tensor}); in CreateNodeDef()
/external/pytorch/torch/onnx/_internal/fx/
Dfx_onnx_interpreter.py782 attr_tensor = getattr(fx_graph_module, node.target)
783 assert isinstance(attr_tensor, torch.Tensor), f"{attr_tensor} is not a tensor."
789 value=attr_tensor,