Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 832 for Auto (0.08 sec)

  1. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_common.cc

      if (options.has_chain) result.types.push_back(chain_type);
      result.types.append(num_results, tensor_type);
    
      llvm::SmallVector<mlir::Attribute, 4> op_attr_array;
      for (const auto &key_value : op_attrs) {
        auto key = key_value.getName();
        auto value = key_value.getValue();
        op_attr_array.push_back(builder.getArrayAttr({key, value}));
      }
    
      result.attributes.push_back(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/lower_variable_ops_to_ml_program.cc

      Value resource;
      if (auto read = llvm::dyn_cast<TF::ReadVariableOp>(op)) {
        resource = read.getResource();
      } else if (auto write = llvm::dyn_cast<TF::AssignVariableOp>(op)) {
        resource = write.getResource();
      }
      const TF::ResourceDataflowState* state =
          solver.lookupState<TF::ResourceDataflowState>(resource);
      if (!state) {
        return nullptr;
      }
      auto ops = state->getValue().ops;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/optimize_global_tensors.cc

      GlobalTensorUsesMap global_tensor_uses;
    
      SymbolTable symbol_table(module);
      for (auto func : module.getOps<func::FuncOp>()) {
        for (size_t i = 0, e = func.getNumArguments(); i < e; i++) {
          auto sym =
              func.getArgAttrOfType<SymbolRefAttr>(i, "tf_saved_model.bound_input");
          if (!sym) {
            continue;
          }
          auto global_tensor = symbol_table.lookup<GlobalTensorOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/reduce_type_precision.cc

                                    PatternRewriter &rewriter) const override {
        auto const_type = mlir::dyn_cast<ShapedType>(op.getType());
        if (!const_type || !const_type.getElementType().isSignlessInteger(8)) {
          return failure();
        }
    
        auto attr = mlir::cast<ElementsAttr>(op.getValue());
        for (mlir::APInt v : attr.getValues<mlir::APInt>()) {
          auto v_int = static_cast<int8_t>(*(v.getRawData()));
          if (v_int > 7 || v_int < -8) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

                                      func::CallOp to_graph) {
      int64_t total_size_transferred = 0;
      for (auto input : to_graph.getOperands()) {
        Operation* input_op = input.getDefiningOp();
        if (input_op && input_op == from_graph.getOperation()) {
          auto input_type =
              mlir::dyn_cast_or_null<RankedTensorType>(input.getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

        if (!HasTfSavedModelSemantics(module)) {
          return;
        }
    
        auto init_op = GetSessionInitializerOp(module);
        if (init_op == nullptr || init_op.getInitializers().empty()) {
          return;
        }
    
        SymbolTable symbol_table(module);
        for (auto initializer : init_op.getInitializers()) {
          auto func = symbol_table.lookup<func::FuncOp>(
              mlir::cast<FlatSymbolRefAttr>(initializer).getValue());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/test_matchers.h

      bool is_ok = arg.ok();
      auto graph_analysis_failure = WasGraphAnalysisFailure(arg);
      return testing::ExplainMatchResult(
          testing::IsTrue(), is_ok || graph_analysis_failure, result_listener);
    }
    
    MATCHER_P2(IncrementedOrFiltered, metric, value,
               "Metric was incremented by value or Status equal to the Graph "
               "Analysis failure") {
      auto graph_analysis_failure = WasGraphAnalysisFailure(arg);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 19 22:54:26 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/constant_utils.cc

      if (element_type.isF16()) {
        auto floatType = mlir::FloatType::getF16(element_type.getContext());
        auto floatAttr = mlir::FloatAttr::get(floatType, static_cast<float>(value));
        std::vector<Attribute> floatValues({floatAttr});
        return DenseElementsAttr::get(shaped_type, floatValues);
      } else if (element_type.isBF16()) {
        auto floatType = mlir::FloatType::getBF16(element_type.getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_cluster_formation.cc

        return mlir::failure();
      }
      // Cluster outermost partitioned calls with _xla_compile_device_type
      // attribute.
      for (auto &pcall_op : outermost_pcall_ops) {
        auto call = llvm::cast<CallOpInterface>(pcall_op.getOperation());
        CallInterfaceCallable callable = call.getCallableForCallee();
        auto sym = callable.get<mlir::SymbolRefAttr>();
        EncapsulatePartitionedCall(pcall_op, sym.getRootReference());
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 19:09:44 UTC 2023
    - 6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_restore_op.cc

    BlockArgument InsertFilePrefixArgument(func::FuncOp func_op,
                                           OpBuilder& builder) {
      const auto filename_op_type = RankedTensorType::get(
          /*shape=*/{}, /*elementType=*/builder.getType<TF::StringType>());
      const auto file_prefix_attr = builder.getStringAttr(kTfFilePrefix);
      const auto arg_attrs = builder.getDictionaryAttr({builder.getNamedAttr(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 12 06:02:20 UTC 2023
    - 9K bytes
    - Viewed (0)
Back to top