Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 278 for getOperation (0.67 sec)

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

      for (func::FuncOp func_op :
           llvm::make_early_inc_range(nested_block.getOps<func::FuncOp>())) {
        if (!symbol_table.lookupSymbolIn(getOperation(), func_op.getName())) {
          nested_block.getOperations().remove(func_op.getOperation());
          symbol_table.insert(func_op.getOperation());
        }
      }
      nested_module->erase();
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tf_executor_to_functional.cc

    // order of ops in tf_executor.graph.
    LogicalResult LiftIslandOpInnerOpsFromGraph(tf_executor::GraphOp graph) {
      auto graph_position = graph.getOperation()->getIterator();
      Block* parent_block = graph.getOperation()->getBlock();
      for (Operation& op : graph.GetBody().without_terminator()) {
        auto island_op = llvm::dyn_cast<tf_executor::IslandOp>(op);
        if (!island_op)
          return op.emitOpError()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc

        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;
        llvm::BitVector unused_args(func.getNumArguments());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference_pass.cc

          input_shapes_ = input_shapes_vec;
        }
    
        auto failure_or_converged = InferModuleShape(
            getOperation(), max_iterations_, /*ops_to_skip=*/{}, input_shapes_);
        if (failed(failure_or_converged)) return signalPassFailure();
        if (!failure_or_converged.value()) {
          getOperation().emitError()
              << "shape inference pass did not reach convergence after "
              << max_iterations_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

      func::FuncOp callee = from.lookup<func::FuncOp>(symbol_ref.getValue());
      callee.getOperation()->getBlock()->getOperations().remove(
          callee.getOperation());
      to.insert(callee);
    }
    
    void TPUBridgeExecutorIslandOutlining::runOnOperation() {
      MLIRContext *ctx = &getContext();
    
      SymbolTable symbol_table(getOperation());
      if (Operation *nested_module = symbol_table.lookup(kNestedModule)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/move_tpu_compile_to_front.cc

      if (op->hasAttr("_wraps_compilation")) return 1;
      // Followed by everything else.
      return 0;
    }
    
    void MoveTpuCompileToFrontPass::runOnOperation() {
      MarkCompilationOps(getOperation());
      getOperation().walk([](Operation* op) {
        for (Region& region : op->getRegions()) {
          for (Block& block : region.getBlocks()) {
            if (block.empty()) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 17 00:26:18 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc

      // Move all inner ops of the launch to the block containing the launch.
      auto body = launch.GetBody().without_terminator();
      Operation* launch_op = launch.getOperation();
      launch_op->getBlock()->getOperations().splice(
          launch_op->getIterator(), launch.GetBody().getOperations(), body.begin(),
          body.end());
    
      launch.erase();
    
      return success();
    }
    
    void LaunchToDeviceAttributePass::runOnOperation() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. plugin/pkg/admission/noderestriction/admission.go

    		}
    		return nil
    
    	default:
    		return admission.NewForbidden(a, fmt.Errorf("unexpected operation %s", a.GetOperation()))
    	}
    }
    
    func (p *Plugin) admitPVCStatus(nodeName string, a admission.Attributes) error {
    	switch a.GetOperation() {
    	case admission.Update:
    		oldPVC, ok := a.GetOldObject().(*api.PersistentVolumeClaim)
    		if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

          if (failed(MoveStandalonePreprocessingOp(&builder, getOperation(), op)))
            return signalPassFailure();
        }
        RewritePreprocessInputs(&builder, getOperation(), op);
      }
    
      // Handle ops with mini_batch_in_csr attribute.
      preprocess_ops.clear();
      getOperation().walk([&](Operation* op) {
        if (op->hasAttr(kMiniBatchCsrAttr)) {
          preprocess_ops.push_back(op);
        }
      });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

        rewriter.setInsertionPointToEnd(&func.getBody().front());
        rewriter.create<func::ReturnOp>(
            loc, executor_graph.getOperation()->getResults());
    
        rewriter.replaceOp(graph_func.getOperation(),
                           func.getOperation()->getResults());
    
        return success();
      }
    };
    
    class ConvertReturnOp : public OpConversionPattern<tfg::ReturnOp> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top