Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for atTerminator (0.37 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      }
      if (auto launch_op = dyn_cast<tf_device::LaunchOp>(op)) {
        auto terminator = launch_op.GetBody().getTerminator();
        return RefineTypeForPassThroughOperands(op, terminator->getOperands(),
                                                op->getResults());
      }
      if (auto cluster_op = dyn_cast<tf_device::ClusterOp>(op)) {
        auto terminator = cluster_op.GetBody().getTerminator();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

    };
    
    using mhlo::DotDimensionNumbersAttr;
    
    // Replaces `region`'s terminator to TF::Yield.
    void ReplaceReturnOp(Region& region, PatternRewriter& rewriter) {
      OpBuilder::InsertionGuard guard(rewriter);
    
      for (auto& block : region.getBlocks()) {
        Operation* terminator = block.getTerminator();
        auto return_op = llvm::dyn_cast_or_null<mhlo::ReturnOp>(terminator);
        if (return_op == nullptr) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

                     false;
            }
            return fn.emitError("invalid TFLite type: ") << arg.getType(), false;
          }
        }
    
        // Verify that all operations except the terminator have exactly one
        // result of type supported by TFLite (or is a ControlType, which
        // will be removed later by ExtractControlEdges.)
        for (auto& inst : bb) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

            continue;
          }
          // Check if the same extern value is returned in each branch.
          for (Region* region : branches.drop_front()) {
            Operation* terminator = region->front().getTerminator();
            if (terminator->getOperand(index) != returned_val) return failure();
          }
          result_to_extern_value[result] = returned_val;
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      Operation& yield = control_node.GetBody().back();
      if (!isa<YieldOp>(yield))
        return yield.emitOpError()
               << "invalid TFL.control_node terminator, yield expected";
    
      // Ensure that the terminator's operands and the control_node results match in
      // types.
      const int result_count =
          control_node.getNumResults() - 1;  // 1 for control token
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

    // -----
    
    // tf.IfRegion regions should be terminated with a tf.Yield
    func.func @testIfRegionThenTerminator(%arg0: tensor<i1>, %arg1: tensor<2xf32>) -> tensor<2xf32> {
      // expected-error @+2 {{block with no terminator}}
      %0 = "tf.IfRegion"(%arg0) ({
         %t = "tf.Abs"(%arg1) : (tensor<2xf32>) -> tensor<2xf32>
       }, {
         %e = "tf.Acos"(%arg1) : (tensor<2xf32>) -> tensor<2xf32>
         "tf.Yield"(%e) : (tensor<2xf32>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

    }
    
    def TFL_YieldOp : Op<TFL_Dialect, "yield",
      [Pure,
       Terminator,
       QuantizableResult,
       DeclareOpInterfaceMethods<TFL_RuntimeVerification>]> {
      let summary = "Yield operation";
      let description = [{
        The "yield" operation represents a return operation within the conditional
        and body of structured control flow (e.g., while), and a terminator for ControlNodeOp.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

            RegionSuccessor(&getCond(), getCond().front().getArguments()));
      } else if (point.isParent()) {
        // The parent branches to 'cond'. It is also considered to branch to `body`
        // in case the terminator of `cond` doesn't forward the arguments of `cond`.
        regions.push_back(
            RegionSuccessor(&getCond(), getCond().front().getArguments()));
        regions.push_back(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

                      << node.type_string()
                      << "` has resource operands/results but effects not modelled";
            }
          }
        }
      }
    
      // Add the terminator for the island
      island_builder.create<mlir::tf_executor::YieldOp>(result.location,
                                                        inner_op->getResults());
      return island.getOperation();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
Back to top