Home
last modified time | relevance | path

Searched refs:depth_attr (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_ops_n_z.cc133 DenseIntElementsAttr depth_attr; in Verify() local
134 if (matchPattern(op.depth(), m_Constant(&depth_attr))) { in Verify()
135 if (depth_attr.getType().getRank() != 0) in Verify()
137 int64_t depth = depth_attr.getValue<APInt>({}).getSExtValue(); in Verify()
160 DenseIntElementsAttr depth_attr; in InferOneHotOpType() local
161 if (matchPattern(depth, m_Constant(&depth_attr)) && in InferOneHotOpType()
162 depth_attr.getNumElements() == 1) in InferOneHotOpType()
163 depth_val = (*depth_attr.begin()).getSExtValue(); in InferOneHotOpType()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf.cc4497 DenseIntElementsAttr depth_attr; in matchAndRewrite() local
4498 if (!matchPattern(op.depth(), m_Constant(&depth_attr))) { in matchAndRewrite()
4502 int64_t depth = depth_attr.getValue<APInt>({}).getSExtValue(); in matchAndRewrite()