Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 229 for getOperation (0.2 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_nnapi.cc

        registry.insert<TF::TensorFlowDialect>();
      }
      void runOnOperation() override;
    };
    
    void DeviceTransformNNAPIPass::runOnOperation() {
      auto func = getOperation();
      auto* ctx = &getContext();
      NNAPIHardware nnapi_hardware;
      RewritePatternSet patterns = nnapi_hardware.GetTransformations(ctx);
      (void)applyPatternsAndFoldGreedily(func, std::move(patterns));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 07 18:43:51 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass.cc

     public:
      void runOnOperation() override;
    };
    
    void InputMetricsLoweringPass::runOnOperation() {
      bool has_dynamic_op = false;
      Operation* func_op = getOperation();
    
      func_op->walk([&](Operation* op) {
        auto abstractOp = op->getRegisteredInfo();
        if (!abstractOp) return WalkResult::advance();
    
        if (mlir::mhlo::IsDynamicPadderOp(abstractOp->getTypeID())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 08:55:35 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/infeed_ops_xla_adjust_layout.cc

          if (failed(layout)) return;
    
          op->setAttr("layout", layout.value());
        }
      }
    };
    
    void InfeedsOpsXlaAdjustLayout::runOnOperation() {
      getOperation().walk(runOnInfeedOp);
    }
    
    }  // anonymous namespace
    
    std::unique_ptr<mlir::OperationPass<func::FuncOp>>
    CreateInfeedsOpsXlaAdjustLayoutPass() {
      return std::make_unique<InfeedsOpsXlaAdjustLayout>();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/rename_entrypoint_to_main.cc

        auto fail = [&](Operation* op, std::string message) {
          op->emitError(message);
          signalPassFailure();
        };
    
        DenseMap<StringRef, func::FuncOp> entrypoints;
        auto module = getOperation();
        module.walk([&](func::FuncOp op) {
          auto visibility = SymbolTable::getSymbolVisibility(op);
          if (visibility != SymbolTable::Visibility::Public) return;
          entrypoints[op.getSymName()] = op;
        });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/hoist_replicate_invariant_resource_writes.cc

      }
      return std::move(tail_assign_variable_ops);
    }
    
    void HoistReplicateInvariantResourceWritesPass::runOnOperation() {
      SmallVector<tf_device::ReplicateOp, 2> replicate_ops;
      getOperation().walk([&](tf_device::ReplicateOp replicate_op) {
        replicate_ops.push_back(replicate_op);
      });
      for (auto replicate_op : replicate_ops) {
        SmallVector<TF::AssignVariableOp> tail_writes =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/passes/rewrite_quantized_io.cc

               "storage types.";
      }
      void runOnOperation() override;
    };
    
    void RewriteQuantizedIOPass::runOnOperation() {
      ModuleOp module = getOperation();
      OpBuilder builder(module);
      module.walk([&](func::FuncOp func) {
        Block& block = func.front();
        Operation* terminator = block.getTerminator();
    
        // Replace input_arg(tensor<quant_type>) -> tfr.cast
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc

      cluster_func_op.replaceAllUsesWith(xla_launch_op.getResults());
      cluster_func_op.erase();
    }
    
    void XlaRewritePass::runOnOperation() {
      ModuleOp module = getOperation();
      SymbolTable symtab(module);
      OpBuilder builder(&getContext());
      module.walk([&](tf_device::ClusterFuncOp cluster_func_op) {
        RewriteCall(cluster_func_op, symtab, builder);
      });
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/smuggle_disallowed_ops.cc

        ConversionTarget target(getContext());
        target.addIllegalOp<TF::ResizeBilinearOp, TF::ResizeNearestNeighborOp>();
        target.addLegalDialect<mlir::stablehlo::StablehloDialect>();
        if (failed(applyPartialConversion(getOperation(), target,
                                          std::move(patterns)))) {
          signalPassFailure();
        }
      }
    };
    
    std::unique_ptr<Pass> CreateSmuggleDisallowedOpsPass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 19 01:14:04 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_tf_to_stablehlo_pass.cc

     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(TestTFToStablehloPass)
    
     private:
      void runOnOperation() override;
    };
    
    void TestTFToStablehloPass::runOnOperation() {
      ModuleOp module_op = getOperation();
      MLIRContext* ctx = &getContext();
      mlir::PassManager pm(ctx);
    
      AddTFToStablehloPasses(pm);
      if (!RunPassesOnModuleOp(
               /*mlir_dump_file_name=*/"test_tf_to_stablehlo_pass", pm, module_op)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 17:19:36 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_gpu.cc

        registry.insert<TF::TensorFlowDialect>();
      }
      void runOnOperation() override;
    };
    
    void DeviceTransformGPUPass::runOnOperation() {
      auto func = getOperation();
      auto* ctx = &getContext();
      RewritePatternSet patterns = GetHardwareRewritePatternsGPU(ctx);
      (void)applyPatternsAndFoldGreedily(func, std::move(patterns));
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 07 18:43:51 UTC 2022
    - 3.1K bytes
    - Viewed (0)
Back to top