Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getCallableRegion (0.54 sec)

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

      while (!funcs_to_visit.empty()) {
        SmallVector<func::FuncOp, 4> new_funcs_to_visit;
        for (func::FuncOp func_to_visit : funcs_to_visit) {
          if (!func_to_visit.getCallableRegion()) continue;
          collect_reachable_funcs(*func_to_visit.getCallableRegion(),
                                  new_funcs_to_visit);
        }
        funcs_to_visit.swap(new_funcs_to_visit);
      }
    
      return llvm::to_vector<4>(reachable_funcs);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/tpu_cluster_util.cc

          if (node_to_cluster[node].getOperation() != tpu_cluster) {
            node->getCallableRegion()->getParentOp()->emitOpError(
                "The same function is reachable from multiple TPU Clusters.");
          }
        } else {
          node_to_cluster[node] = tpu_cluster;
          auto result = node->getCallableRegion()->walk([&](Operation* op) {
            insert_pending_op(op, tpu_cluster);
            return callback(op, tpu_cluster,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 04:50:13 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/guarantee_all_funcs_one_use.cc

                        "one use for all functions. Functions in the "
                        "recursive cycle are: ";
          llvm::interleaveComma(*scci, err, [&](CallGraphNode *node) {
            err << node->getCallableRegion()->getLoc();
          });
          return err;
        }
      }
      return success();
    }
    
    #define GEN_PASS_DEF_GUARANTEEALLFUNCSONEUSEPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_inline_tpu_island.cc

        if (failed(inlineCall(inliner, call_interface,
                              cast<CallableOpInterface>(called_func.getOperation()),
                              called_func.getCallableRegion(),
                              /* shouldCloneInlinedRegion = */ false))) {
          call_op.emitOpError() << "Failed to inline\n";
          return WalkResult::interrupt();
        }
        called_func.erase();
        call_op.erase();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc

      module->walk([&](SymbolOpInterface op) {
        if (!op.isPrivate()) return;
    
        auto call = llvm::dyn_cast<CallableOpInterface>(op.getOperation());
        if (!call) return;
        Region* region = call.getCallableRegion();
        if (!region) return;  // happens e.g. for external functions
    
        auto func = llvm::dyn_cast<FunctionOpInterface>(op.getOperation());
        if (!func || do_not_touch.count(func)) return;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/passes/decompose.cc

        if (failed(inlineCall(inliner,
                              cast<CallOpInterface>(call_op.getOperation()),
                              cast<CallableOpInterface>(callee.getOperation()),
                              callee.getCallableRegion(),
                              /**shouldCloneInLinedRegion=*/true))) {
          // This failure is usually because the decompose function is not defined.
          // This call will be raised to TF ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

          CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs)>
      ];
    
      let extraClassDeclaration = [{
        LogicalResult verifyType() { return success(); }
    
        mlir::Region *getCallableRegion();
    
        /// Returns the argument types of this function.
        ArrayRef<Type> getArgumentTypes() { return getFunctionType().getInputs(); }
    
        /// Returns the result types of this function.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

        // backtrack through that function call (our analysis will be correct but
        // pessimistic).
        for (CallGraphNode* node : scc) {
          if (node->isExternal()) continue;
          Region* region = node->getCallableRegion();
          GetOrCreateAnalysis(*region);
        }
      }
    
      // This above call graph analysis will cover all regions attached to functions
      // but we also need to analyze regions attached to other ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

      (void)operands;
      assert(operands.empty() && "constant has no operands");
    
      // Return the held attribute value.
      return getValue();
    }
    
    // CallableOpInterface
    Region *TFRFuncOp::getCallableRegion() {
      return isExternal() ? nullptr : &getBody().front();
    }
    
    //===----------------------------------------------------------------------===//
    // Dialect type definitions
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
Back to top