Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 89 for getIpr (0.35 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/propagate_quantize_type.cc

      FrozenRewritePatternSet frozen_patterns(std::move(patterns));
      // Propagation can happen recursively with multiple functions so keep this
      // module level.
      for (auto func : module_op.getOps<func::FuncOp>()) {
        if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) {
          func.emitError() << "quant-propagate-quantize-type failed.";
          signalPassFailure();
        }
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.cc

    }
    
    }  // namespace
    
    ResourceAnalyzer::ResourceAnalyzer(ModuleOp module, bool skip_session_init) {
      auto session_init_func = GetSessionInitializerFunc(module);
      for (auto func : module.getOps<func::FuncOp>()) {
        if (skip_session_init && func == session_init_func) continue;
        (void)AnalyzeRegion(func.getRegion());
      }
    }
    
    void ResourceAnalyzer::SetPotentiallyWritten(Value resource) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc

      auto func_arg_types = llvm::to_vector<4>(func_type.getInputs());
      llvm::SmallDenseMap<llvm::StringRef, int> var_arg_index_by_name;
      for (auto var_handle_op :
           llvm::make_early_inc_range(block.getOps<TF::VarHandleOp>())) {
        if (add_validation && failed(ValidateVarHandle(var_handle_op)))
          return failure();
        // In the case of variables that are not initialized at graph creation
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc

          return false;
        }
      }
      return true;
    }
    
    void FoldConstantsToSubgraphPass::runOnOperation() {
      auto module = getOperation();
    
      for (auto fn : module.getOps<func::FuncOp>()) {
        fn.walk([&](Operation* op) {
          if (!llvm::isa<TFL::ConstOp, TFL::QConstOp, arith::ConstantOp>(op))
            return;
    
          // We only fold int32/int64 for Const and i32 for QConst if not specify
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/transforms/tac_filter.cc

      if (tac_filter.has_function_filter()) {
        llvm::Regex func_regex(
            tac_filter.function_filter().function_name_pattern());
        for (auto func : module.getOps<func::FuncOp>()) {
          if (!func_regex.match(func.getName())) {
            continue;
          }
    
          ApplyFunctionTacFilter(func, tac_filter.function_filter().filter_type(),
                                 builder);
    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/quantization/stablehlo/ops/stablehlo_op_quant_spec.cc

          const SymbolTable symbol_table(module_op);
          auto entry_func_op =
              dyn_cast_or_null<func::FuncOp>(symbol_table.lookup(function_name));
          auto dot_general_op = *entry_func_op.getOps<DotGeneralOp>().begin();
          if (auto optional_dim = GetDotGeneralQuantizationDim(dot_general_op);
              optional_dim) {
            spec->coeff_op_quant_dim[1] = optional_dim.value();
          } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc

          if (!call_op->getResult(i).use_empty()) return failure();
        }
      }
      return success();
    }
    
    LogicalResult CheckFusableKerasLstm(func::FuncOp lstm_func, ModuleOp module) {
      for (auto func : module.getOps<func::FuncOp>()) {
        if (func == lstm_func) continue;
        auto result = func.walk([&](CallOpInterface op) {
          if (dyn_cast<func::FuncOp>(op.resolveCallable()) == lstm_func) {
            // Keras LSTM have 5 outputs.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions_drq.cc

                                        min_num_elements_for_weights_);
      FrozenRewritePatternSet frozen_patterns(std::move(patterns));
      for (auto func : module.getOps<func::FuncOp>()) {
        if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) {
          func.emitError()
              << "quant-lift-quantizable-spots-as-functions-drq failed.";
          signalPassFailure();
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util.cc

      return IsReplicatedGraph(module);
    }
    
    bool HasTPUPartitionedCallOpInModule(mlir::ModuleOp module) {
      bool has_tpu_partitioned_call = false;
      for (auto func_op : module.getOps<mlir::func::FuncOp>()) {
        func_op->walk([&](mlir::TF::TPUPartitionedCallOp op) {
          has_tpu_partitioned_call = true;
        });
        if (has_tpu_partitioned_call) break;
      }
      return has_tpu_partitioned_call;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 12:22:33 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/internal/service/scopes/GradleUserHomeScopeServices.java

        DefaultGlobalScopedCacheBuilderFactory createGlobalScopedCache(GlobalCacheDir globalCacheDir, UnscopedCacheBuilderFactory unscopedCacheBuilderFactory) {
            return new DefaultGlobalScopedCacheBuilderFactory(globalCacheDir.getDir(), unscopedCacheBuilderFactory);
        }
    
        @Provides
        ScopedListenerManager createListenerManager(ScopedListenerManager parent) {
            return parent.createChild(Scope.UserHome.class);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top