Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 83 for GetBody (0.11 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/unwrap_xla_call_module_op.cc

               func_op.getArguments().take_back(call_op.getNumOperands()),
               call_op.getOperands())) {
        arg_mapper.map(func_arg, operand);
      }
    
      Region& function_body = func_op.getBody();
      IRMapping new_op_mapper;
      for (Operation& op : function_body.getOps()) {
        if (llvm::isa<func::ReturnOp>(op)) {
          for (auto [call_result, return_value] :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/legalize_tf_while.cc

      CreateRegionWithCall(while_op.body_function(), new_op.getBody(), loc);
    
      op->replaceAllUsesWith(new_op.getResults());
      op->erase();
    }
    
    void LegalizeWhilePass::RunOnFunction(func::FuncOp func) {
      // Convert all TF WhileOps inside the function body to TFL While ops.
      func.getBody().walk([](TF::WhileOp while_op) { RunOnWhile(while_op); });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/partitioned_topological_sort.cc

      // 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());
      }
    
      // Our MLIR might be the result of a conversion from a previously generated
      // flatbuffer file.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tpu_identity_pruning.cc

      getOperation().walk(
          [&](tf_device::ClusterOp cluster) { clusters.push_back(cluster); });
    
      for (tf_device::ClusterOp cluster : clusters) {
        RemoveIdentityFromRegion(cluster.getBody());
        auto reachable_funcs = CollectReachableFunctions(cluster.getBody());
        for (func::FuncOp reachable_func : reachable_funcs)
          RemoveIdentityFromRegion(*reachable_func.getCallableRegion());
      }
    }
    
    }  // anonymous namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/annotate_parameter_replication.cc

          if (block_arg && block_arg.getOwner() == &replicate.GetBody()) {
            // Only mirrored args of ReplicateOp can be annotated.
            if (mirrored_replicate_args.count(block_arg.getArgNumber()) == 0) {
              continue;
            }
          } else if (!operand.getParentRegion()->isProperAncestor(
                         &replicate.getBody())) {
            // Not a replication-invariant operand.
            continue;
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/freeze_saved_model_assets.cc

        return;
      }
      SymbolTable symbol_table(module);
    
      for (auto func : module.getOps<func::FuncOp>()) {
        llvm::BitVector args_to_erase(func.getNumArguments());
        OpBuilder builder(func.getBody());
    
        for (int i = 0, e = func.getNumArguments(); i < e; ++i) {
          SmallVector<TF::InitializeTableFromTextFileV2Op, 4>
              init_table_from_text_file_ops_to_erase;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jan 30 01:12:09 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/update_control_dependencies.cc

        GraphOp graph, TF::OpToParallelIdsMap& op_to_parallel_ids_map) {
      for (Operation& op : graph.GetBody()) {
        auto island = dyn_cast<IslandOp>(&op);
        if (!island) continue;
    
        // We call `VerifyExportSuitable` in the beginning of the pass, so every
        // island wraps a single op.
        Operation& wrapped_op = island.GetBody().front();
        TF::ParallelExecutionIdPairs id_pairs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 30 07:53:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tpu_host_computation_expansion.cc

      Region* cluster_region = &cluster.getBody();
      llvm::SmallSetVector<Operation*, 4> head_outside_compiled_ops;
    
      // Traverse the graph in topological order to find all outside compiled ops
      // at head of TPU computation or unary ops that are only used by other outside
      // compiled ops.
      auto cluster_ops = cluster.GetBody().without_terminator();
      for (Operation& cluster_op : cluster_ops) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc

              GetOpOfValue(cluster_func_operand.value()));
          if (!device_launch_op) continue;
          for (auto result : llvm::zip(
                   device_launch_op.getResults(),
                   device_launch_op.GetBody().getTerminator()->getOperands())) {
            if (std::get<0>(result) == cluster_func_operand.value() &&
                llvm::isa<TF::TPUAnnotateTensorsWithDynamicShapeOp>(
                    std::get<1>(result).getDefiningOp())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/ReturnParameterMacroFunction.java

            super(name, parameters);
            this.parameterToReturn = parameterToReturn;
        }
    
        public int getParameterToReturn() {
            return parameterToReturn;
        }
    
        @Override
        protected String getBody() {
            return "=> return parameter " + parameterToReturn;
        }
    
        @Override
        public Expression evaluate(List<Expression> arguments) {
            return arguments.get(parameterToReturn).asMacroExpansion();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top