Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/toco/graph_transformations/tests/
Didentify_l2_pool_test.cc41 auto sq_op = new TensorFlowSquareOperator; in RunIdentifyL2Pool() local
42 sq_op->inputs = {"input0"}; in RunIdentifyL2Pool()
43 sq_op->outputs = {"output"}; in RunIdentifyL2Pool()
49 avgpool_op->inputs = {sq_op->outputs[0]}; in RunIdentifyL2Pool()
62 model.operators.push_back(std::unique_ptr<Operator>(sq_op)); in RunIdentifyL2Pool()
Didentify_l2_normalization_test.cc42 auto sq_op = new TensorFlowSquareOperator; in RunIdentifyL2Normalization() local
43 sq_op->inputs = {"input0"}; in RunIdentifyL2Normalization()
44 sq_op->outputs = {"output"}; in RunIdentifyL2Normalization()
50 sum_op->inputs = {sq_op->outputs[0]}; in RunIdentifyL2Normalization()
72 model.operators.push_back(std::unique_ptr<Operator>(sq_op)); in RunIdentifyL2Normalization()
92 model.operators.push_back(std::unique_ptr<Operator>(sq_op)); in RunIdentifyL2Normalization()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Doptimize_patterns.td315 (TFL_SquareOp:$sq_op $x),
320 [(L2NormValidReduceIndex $sq_op, $axis)]>;
329 (TFL_SquareOp:$sq_op $x),
335 [(L2NormValidReduceIndex $sq_op, $axis),
343 (TFL_SquareOp:$sq_op $x),
349 [(L2NormValidReduceIndex $sq_op, $axis),
Doptimize.cc66 bool L2NormalizeReduceAxis(Value sq_op, DenseElementsAttr axis) { in L2NormalizeReduceAxis() argument
67 if (sq_op.getType().cast<ShapedType>().getRank() - 1 == in L2NormalizeReduceAxis()
72 if (sq_op.getType().cast<ShapedType>().getRank() != axis.getNumElements()) { in L2NormalizeReduceAxis()
75 auto shape = sq_op.getType().cast<ShapedType>(); in L2NormalizeReduceAxis()
/external/tensorflow/tensorflow/python/eager/
Dfunction_test.py772 sq_op = sq.get_concrete_function(t)
773 self.assertEqual(sq_op.output_shapes, tensor_shape.TensorShape([2, 2]))
774 out = sq_op(t)
815 sq_op = sq.get_concrete_function(
817 self.assertEqual([None, None], sq_op.output_shapes.as_list())
820 out1 = sq_op(t1)
824 out2 = sq_op(t2)
840 sq_op = sq.get_concrete_function(
845 self.assertEqual([None, None], sq_op.output_shapes.as_list())
849 out = sq_op(first_mat=t1, second_mat=t2)
[all …]