Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 278 for getOperation (0.53 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

    void TPURewritePass::runOnOperation() {
      TF::RuntimeDevices devices;
      if (failed(tensorflow::GetDevicesFromOp(getOperation(), &devices)))
        return signalPassFailure();
    
      // Collect compilation results.
      llvm::DenseMap<Attribute, SmallVector<TF::TPUCompilationResultOp, 1>>
          compilation_results;
      auto result_init = getOperation().walk([&](TF::TPUCompilationResultOp op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/analyze_variables.cc

     public:
      explicit AnalyzeVariablesPass() {}
      void runOnOperation() override;
    };
    
    void AnalyzeVariablesPass::runOnOperation() {
      auto* context = &getContext();
      auto module = getOperation();
      bool legalize_to_tfl = true;
    
      module.walk([&](Operation* op) {
        // Skip ops that are supported natively by TFLite.
        if (IsSupportedTFLiteResourceOp(op)) return WalkResult::advance();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_colocate_composite_resource_ops.cc

      // Find all the executes first, since we will mutate the nodes around each
      // execute in the same tf_device.replicate op.
      llvm::SmallVector<tf_device::LaunchOp, 8> execute_launches;
      getOperation().walk([&](tf_device::LaunchOp op) {
        if (op.WrapsSingleOp() &&
            llvm::isa<TF::TPUExecuteOp, TF::TPUExecuteAndUpdateVariablesOp>(
                op.GetBody().front()))
          execute_launches.push_back(op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 17:41:12 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/unwrap_xla_call_module_op.cc

          new_op_mapper.map(result, new_result);
        }
      }
    
      call_op.erase();
    }
    
    void UnwrapXlaCallModuleOpPass::runOnOperation() {
      ModuleOp module_op = getOperation();
      SymbolTable symbol_table(module_op);
    
      for (auto func_op : module_op.getOps<func::FuncOp>()) {
        Region& function_body = func_op.getBody();
    
        function_body.walk([&](TF::XlaCallModuleOp call_op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

        return op.getOperation();
      }
      auto op = builder.create<tfl::ConstOp>(loc, value);
      op->setAttr("tfl.is_variable", builder.getUnitAttr());
      if (tensor.quantization && !tensor.quantization->min.empty()) {
        if (auto stats_op =
                ConvertMinMaxToStatsOp(tensor, builder, op.getResult())) {
          return stats_op;
        }
      }
      return op.getOperation();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tpu_host_computation_expansion.cc

              TPUHostComputationExpansionPass> {
      void runOnOperation() override;
    };
    
    void TPUHostComputationExpansionPass::runOnOperation() {
      OpBuilder builder(&getContext());
      getOperation().walk([&](tf_device::ClusterOp cluster) {
        ExpandHeadOutsideCompiledOps(cluster, &builder);
      });
    }
    
    }  // anonymous namespace
    
    std::unique_ptr<OperationPass<func::FuncOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      if (auto whileOp =
              llvm::dyn_cast<WhileRegionOp>(this->getOperation()->getParentOp())) {
        if (&whileOp.getCond() == this->getOperation()->getParentRegion()) {
          // cut off the boolean (the condition itself) at the start
          return MutableOperandRange(
              this->getOperation(), 1,
              this->getOperation()->getOperands().size() - 1);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc

          OpBuilder::InsertionGuard guard(rewriter);
          rewriter.setInsertionPointAfter(op->getParentOfType<func::FuncOp>());
          cloned_func = llvm::dyn_cast_or_null<func::FuncOp>(
              rewriter.clone(*func.getOperation()));
          manager.insert(cloned_func);
          rewriter.setInsertionPointToStart(&cloned_func.getBody().front());
          auto result_type =
              RankedTensorType::get({3}, rewriter.getType<TF::StringType>());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/unfold_large_splat_constant.cc

              UnfoldLargeSplatConstantPass> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(UnfoldLargeSplatConstantPass)
    
      void runOnOperation() override {
        auto module = getOperation();
    
        mlir::OpBuilder op_builder(&module.getBodyRegion());
        module.walk([&](mlir::arith::ConstantOp const_op) {
          MaybeUnfoldLargeSplatConstant(&op_builder, const_op);
        });
      }
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/cast_bf16_ops_to_f32.cc

    void CastBf16OpsToF32Pass::runOnOperation() {
      MLIRContext* ctx = &getContext();
      RewritePatternSet patterns(ctx);
      auto module_op = getOperation();
    
      patterns.add<CastBf16OpsToF32>(ctx);
      populateWithGenerated(patterns);
    
      if (failed(applyPatternsAndFoldGreedily(module_op, std::move(patterns)))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top