Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for control_node (0.33 sec)

  1. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/control_edges.mlir

      %tmp2, %ctl2 = tfl.control_node(%ctl1) controls "tfl.neg"(%tmp1): (tensor<1xf32>) -> tensor<1xf32>
      %tmp3, %ctl3 = tfl.control_node(%ctl2) controls "tfl.neg"(%tmp2): (tensor<1xf32>) -> tensor<1xf32>
      func.return %tmp3: tensor<1xf32>
    }
    // CHECK-NEXT: %[[t0:.*]], %[[c0:.*]] = tfl.control_node controls "tfl.neg"(%arg0)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 14 21:40:53 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/pin-ops-with-side-effects.mlir

    }
    // CHECK-NEXT: %[[VAR:.*]], %[[CONTROL:.*]] = tfl.control_node controls "tfl.var_handle"
    // CHECK-NEXT: return %[[VAR]]
    
    
    // CHECK-LABEL: @tfl_call_once_gets_control_node
    func.func @tfl_call_once_gets_control_node() -> () {
      "tfl.call_once"() { session_init_function = "noop" } : () -> ()
      func.return
    }
    // CHECK-NEXT: control_node controls "tfl.call_once"
    // CHECK-NEXT: return
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 17 10:45:19 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/simple_with_connected_control_nodes.mlir

      %1,%control_1 = tfl.control_node controls "tfl.sub" (%arg0, %0) {fused_activation_function = "RELU6"} : (tensor<3x2xi32>, tensor<3x2xi32>) -> tensor<3x2xi32> loc("sub")
      %2 = "arith.constant" () {value = dense<10> : tensor<i32>} : () -> tensor<i32> loc("SameNameAsOutput")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 17 13:32:53 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/simple_with_unconnected_control_nodes.mlir

      %1,%control_1 = tfl.control_node controls "tfl.sub" (%arg0, %0) {fused_activation_function = "RELU6"} : (tensor<3x2xi32>, tensor<3x2xi32>) -> tensor<3x2xi32> loc("sub")
      %2 = "arith.constant" () {value = dense<10> : tensor<i32>} : () -> tensor<i32> loc("SameNameAsOutput")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 17 13:32:53 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize-stablehlo-vhlo.mlir

    func.func @op_with_tfl_control_flow() -> (tensor<1xf32>, !tfl.control) {
      // CHECK: vhlo.constant_v1
      %0 = stablehlo.constant dense<1.000000e+00> : tensor<1xf32>
      // CHECK-NEXT: tfl.control_node
      %outputs, %control = tfl.control_node {
        %1 = "tfl.neg"(%0) : (tensor<1xf32>) -> tensor<1xf32>
        "tfl.yield"(%1) : (tensor<1xf32>) -> ()
      }
      return %outputs, %control : tensor<1xf32>, !tfl.control
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 07 22:39:35 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/partitioned_topological_sort.cc

    #include "tensorflow/compiler/mlir/lite/transforms/passes.h.inc"
    
    bool IsFlexDelegate(Operation *op) {
      // Unwrap from any ControlNodeOps or CustomTfOp.
      if (auto control_node = dyn_cast<mlir::TFL::ControlNodeOp>(*op)) {
        return IsFlexDelegate(&control_node.getBody().front().front());
      }
      if (auto custom_tf_op = dyn_cast<mlir::TFL::CustomTfOp>(*op)) {
        return IsFlexDelegate(&custom_tf_op.getBody().front().front());
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

    mlir::LogicalResult ControlNodeOp::verify() {
      ControlNodeOp control_node = *this;
      if (!control_node.GetBody().args_empty())
        return control_node.emitOpError() << "expects body without any arguments";
    
      Operation& yield = control_node.GetBody().back();
      if (!isa<YieldOp>(yield))
        return yield.emitOpError()
               << "invalid TFL.control_node terminator, yield expected";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

                                             Location op_loc,
                                             ControlNodes* control_nodes) {
      const ControlNodes::iterator maybe_control_node =
          control_nodes->find(op_index);
      if (maybe_control_node == control_nodes->end()) {
        return op->getResults();
      }
      mlir::Region region;
      region.push_back(new mlir::Block);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        static bool isBuildableWith(Attribute value, Type type);
      }];
    }
    
    def TFL_ControlNodeOp : Op<TFL_Dialect, "control_node",
        [HasParent<"mlir::func::FuncOp">, RecursiveMemoryEffects, SingleBlockImplicitTerminator<"YieldOp">]> {
      let summary = [{
        The `TFL.control_node` operation wraps single-block operations in order to attach control edges.
      }];
    
      let description = [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/ops.mlir

    }
    
    // -----
    
    // CHECK-LABEL: testControlNodeLongForm
    func.func @testControlNodeLongForm(%arg0: tensor<8xf32>, %arg1: tensor<8xf32>)->tensor<8xf32> {
      %0, %c0 = "tfl.control_node"() ({
        %1 = "tfl.add"(%arg0, %arg1) {fused_activation_function = "RELU6"} : (tensor<8xf32>, tensor<8xf32>)->tensor<8xf32>
        "tfl.yield"(%1) : (tensor<8xf32>) -> ()
        }) : () -> (tensor<8xf32>, !tfl.control)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
Back to top