Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for getStringAttr (0.18 sec)

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

            module.getLoc(), launch.getResultTypes(), launch.getOperands(),
            SymbolRefAttr::get(builder.getContext(), launch.getFunc()),
            /*config=*/builder.getStringAttr(""),
            /*config_proto=*/builder.getStringAttr(""),
            /*executor_type=*/builder.getStringAttr(""));
        call_op->setAttr("device", launch->getAttrOfType<StringAttr>("device"));
        launch.replaceAllUsesWith(call_op);
        launch.erase();
      });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 31 21:08:09 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_save_op.cc

    TF::ConstOp CreateTensorNamesConst(const ArrayRef<std::string> tensor_names,
                                       OpBuilder& builder) {
      const auto loc = NameLoc::get(builder.getStringAttr("tensor_names"));
      return Create1DStringConst(tensor_names, loc, builder);
    }
    
    // Creates a 1D string array constant for "shape_and_slices" input of
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_dump_tensor_op.cc

                                  rewriter.getStringAttr(folder_name)),
            rewriter.getNamedAttr("file_name", rewriter.getStringAttr(file_name)),
            // The op is disabled by default. Otherwise, values will be saved
            // during calibration.
            rewriter.getNamedAttr("enabled", rewriter.getBoolAttr(enabled)),
            rewriter.getNamedAttr("func_name", rewriter.getStringAttr(func_name)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 22:55:22 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/encapsulate_util.cc

      for (const Edge* e : g->edges()) {
        if (!e->IsControlEdge()) {
          continue;
        }
    
        auto src_outside_compilation =
            GetStringAttr(*e->src(), outside_compilation_attr_name);
        auto dst_outside_compilation =
            GetStringAttr(*e->dst(), outside_compilation_attr_name);
    
        if (src_outside_compilation && dst_outside_compilation) {
          if (*src_outside_compilation != *dst_outside_compilation) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/rename_entrypoint_to_main.cc

          return fail(module, "No entrypoints found");
        }
        if (entrypoints.size() == 1) {
          auto entrypoint = entrypoints.begin()->second;
          Builder builder(entrypoint);
          entrypoint.setName(builder.getStringAttr("main"));
          return;
        }
    
        // In case we have more than 1 entry points, choose the one with
        // 'tf.entry_function' attribute set.
        llvm::SmallVector<func::FuncOp, 4> candidate_funcs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

      auto asset_op = builder.create<tf_saved_model::AssetOp>(
          module->getLoc(),
          /*sym_name=*/
          builder.getStringAttr("__tf_saved_model_variables"),  // Val unimportant.
          /*filename=*/
          builder.getStringAttr(checkpoint_path));
      // Marks the input to be inlined.
      main_func.setArgAttr(
          0, "tf_saved_model.bound_input",
    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/quantization/common/lift_as_function_call.td

    // Creates a NamedAttribute given its name and value. Essentially creates
    // a pair: {attribute_name, attribute_value}.
    class NamedAttr<string attr_name> :
        NativeCodeCall<"NamedAttribute{$_builder.getStringAttr(\"" # attr_name # "\"), $0}">;
    
    // Checks if the value is not defined inside a lifted function by checking the
    // `tf_quant.composite_function` attribute.
    def IsNotInLiftedFunc :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 00:32:20 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

                builder.getContext(), kNestedModule,
                SymbolRefAttr::get(builder.getContext(), outlined_func.getName())),
            /*config=*/builder.getStringAttr(""),
            /*config_proto=*/builder.getStringAttr(""),
            /*executor_type=*/builder.getStringAttr(""));
        SmallVector<Value, 16> yield_operands(call_op.getResults());
        builder.create<YieldOp>(island_op.getLoc(), yield_operands);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/convert_attr.cc

        const AttrValue& value, mlir::Builder* builder) {
      switch (value.value_case()) {
        case AttrValue::kI:
          return builder->getI64IntegerAttr(value.i());
        case AttrValue::kS:
          return builder->getStringAttr(value.s());
        case AttrValue::kF:
          return builder->getFloatAttr(builder->getF32Type(), value.f());
        case AttrValue::kB:
          return builder->getBoolAttr(value.b());
        case AttrValue::kType: {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

        }
        ElementsAttr tensor_attr = tensor_attr_or.value();
    
        builder.create<tf_saved_model::GlobalTensorOp>(
            NameLoc::get(builder.getStringAttr(name.str())),
            builder.getStringAttr(name), tensor_attr,
            TypeAttr::get(tensor_attr.getType()), builder.getUnitAttr());
      }
    
      return success();
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top