Home
last modified time | relevance | path

Searched refs:lhs_attr (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_arith_ops_folder.h87 auto lhs_attr = operands[0].dyn_cast_or_null<DenseElementsAttr>(); in IdentityArithmeticOpFolder() local
89 if (!rhs_attr && !(is_commutative && lhs_attr)) return {}; in IdentityArithmeticOpFolder()
117 if (lhs_attr && is_commutative && in IdentityArithmeticOpFolder()
119 if (lhs_attr.isSplat() && in IdentityArithmeticOpFolder()
120 lhs_attr.getSplatValue<Attribute>() == identity_attr) in IdentityArithmeticOpFolder()
/external/tensorflow/tensorflow/core/transforms/const_dedupe_hoist/
Dpass.cc108 NamedAttribute lhs_attr = std::get<0>(it); in isEqual() local
110 if (lhs_attr.getName() != rhs_attr.getName()) return false; in isEqual()
111 if (lhs_attr.getValue() != rhs_attr.getValue()) { in isEqual()
112 if (lhs_attr.getName() != name_id) return false; in isEqual()
/external/tensorflow/tensorflow/core/transforms/remapper/
Dremapping_helper.h95 auto lhs_attr = lhs_op->getAttrOfType<TypeAttr>(attr_name); variable
97 if (!lhs_attr || !rhs_attr) return false;
98 return lhs_attr == rhs_attr;
/external/tensorflow/tensorflow/core/transforms/region_to_functional/
Dimpl.cc756 NamedAttribute lhs_attr = std::get<0>(it); in RegionEqualTo() local
758 if (lhs_attr.getName() != rhs_attr.getName()) return false; in RegionEqualTo()
759 if (lhs_attr.getName() == name_id) continue; in RegionEqualTo()
760 if (lhs_attr.getValue() != rhs_attr.getValue()) return false; in RegionEqualTo()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dremapper.cc274 DataType lhs_attr = GetDataTypeFromAttr(*lhs, type_attr); in HaveSameDataType() local
277 return lhs_attr != DT_INVALID && rhs_attr != DT_INVALID && in HaveSameDataType()
278 lhs_attr == rhs_attr; in HaveSameDataType()