Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 445 for FuncOp (0.18 sec)

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

      ModuleOp module = getOperation();
      if (llvm::size(functions_) == 0) {
        functions_ = {"main"};
      }
      SymbolTable symbolTable(module);
      for (const std::string& f : functions_) {
        func::FuncOp func = symbolTable.lookup<func::FuncOp>(f);
        if (!func) continue;
    
        // This routine should only be called when control flow operations are still
        // represented with TF IfOp and WhileOp operations. In this case, there
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

              continue;
            }
    
            if (auto call_op = llvm::dyn_cast<mlir::CallOpInterface>(owner)) {
              mlir::func::FuncOp func =
                  llvm::dyn_cast<mlir::func::FuncOp>(call_op.resolveCallable());
              if (!func) continue;
              next_values_to_visit.push_back(
                  func.getArgument(use.getOperandNumber()));
            }
          }
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types_test.cc

        }
      )mlir";
    
      OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kFullyQuantizedAdd);
      ASSERT_TRUE(module_op);
    
      auto func_op = module_op->lookupSymbol<func::FuncOp>("fully_quantized_add");
      ASSERT_THAT(func_op, NotNull());
    
      auto add_op_itr = func_op.getBody().op_begin<mlir::stablehlo::AddOp>();
      ASSERT_THAT(add_op_itr,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/canonicalize_compile_and_replicate_attributes.cc

              CanonicalizeCompileAndReplicateAttributesPass> {
      void runOnOperation() override;
    };
    
    void CanonicalizeCompileAndReplicateAttributesPass::runOnOperation() {
      func::FuncOp func_op = getOperation();
      ModuleOp module_op = func_op->getParentOfType<ModuleOp>();
      mlir::OpBuilder builder(module_op.getContext());
    
      auto walk_result = func_op->walk([&](mlir::Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_calibration_statistics_saver.cc

      for (const NamedAttribute& attr : op->getAttrs()) {
        FlatSymbolRefAttr symbol_attr =
            dyn_cast_or_null<FlatSymbolRefAttr>(attr.getValue());
        if (!symbol_attr) continue;
    
        func::FuncOp target_func = dyn_cast_or_null<func::FuncOp>(
            symbol_table.lookup(symbol_attr.getValue()));
        if (!target_func) continue;
    
        if (!target_func.getBody()
                 .getOps<TF::CalibrationStatisticsSaverOp>()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/mlprogram.cc

      pm.addPass(mlir::tf_saved_model::CreateOptimizeGlobalTensorsPass());
    
      pm.addPass(
          mlir::tf_saved_model::CreateConvertSessionInitializerToFunctionPass());
      pm.addNestedPass<mlir::func::FuncOp>(
          mlir::TFDevice::CreateDecomposeResourceOpsPass());
      pm.addPass(mlir::TF::CreateNameAnonymousIteratorsPass());
    
      // This will add regions to IfOp/WhileOp (turning them into IfRegionOp
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 09 22:39:15 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/optimize_global_tensors.cc

    };
    
    // A global tensor is bound to arguments of multiple funcs.
    // This struct tracks which funcs (and which argument to that func) the global
    // tensor is bound to.
    struct GlobalTensorUse {
      mutable func::FuncOp func;
      size_t arg_index;
    };
    
    using GlobalTensorUsesMap =
        std::map<GlobalTensorOp, std::vector<GlobalTensorUse>>;
    
    bool IsImmutable(GlobalTensorOp global_tensor,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

      }
      return false;
    }
    
    SmallVector<func::FuncOp> GetSortedFunctions(ModuleOp module_op) {
      auto iterator_range = module_op.getOps<func::FuncOp>();
      SmallVector<func::FuncOp> func_ops(iterator_range.begin(),
                                         iterator_range.end());
      absl::c_sort(func_ops, [](func::FuncOp op1, func::FuncOp op2) {
        return op1.getName() < op2.getName();
      });
      return func_ops;
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_gpu.cc

    namespace mlir {
    namespace TFL {
    namespace tac {
    namespace {
    
    struct DeviceTransformGPUPass
        : public mlir::PassWrapper<DeviceTransformGPUPass,
                                   OperationPass<func::FuncOp>> {
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(DeviceTransformGPUPass)
    
      llvm::StringRef getArgument() const final {
        return "tfl-device-transform-gpu";
      }
      llvm::StringRef getDescription() const final {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 07 18:43:51 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

      }
    
      llvm::SetVector<Value> all_resources;
      bool is_func = false;
      // For functions, the resources to analyze are the function arguments.
      // Otherwise, its the region captures.
      if (func::FuncOp func = dyn_cast<func::FuncOp>(op_)) {
        is_func = true;
        Region& body = func.getBody();
        for (BlockArgument arg : body.getArguments()) {
          if (IsResource(arg)) all_resources.insert(arg);
        }
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top