Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for NamedAttribute (0.23 sec)

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

        const llvm::DenseMap<Value, llvm::StringRef>& value_to_device) {
      // We apply all result attributes at once to avoid excessive allocations when
      // we have many result values.
      llvm::SmallVector<std::vector<NamedAttribute>, 8> result_attrs;
      {
        llvm::SmallVector<DictionaryAttr, 8> tmp;
        func.getAllResultAttrs(tmp);
    
        for (const auto& res : tmp) {
          result_attrs.push_back(res.getValue().vec());
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

                                rewriter.getIntegerType(64)),
          padding_nums);
      return padding_attr;
    }
    
    template <typename UniformQuantizedConvolutionOp>
    FailureOr<SmallVector<NamedAttribute>> ConvertToMhloConvolutionOpAttrs(
        UniformQuantizedConvolutionOp op, PatternRewriter &rewriter) {
      // TODO(b/261005147): Update the lowering logic after migration to mhlo
      // ConvolutionDimensionNumbers.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_dynamic_layout_pass.cc

          llvm::ArrayRef<Type>{RankedTensorType::get({ShapedType::kDynamic},
                                                     builder->getIntegerType(64))},
          llvm::ArrayRef<Value>{compilation_key},
          llvm::ArrayRef<NamedAttribute>{
              builder->getNamedAttr("index",
                                    builder->getI64IntegerAttr(execute_arg_index)),
              builder->getNamedAttr("is_output", builder->getBoolAttr(false))});
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc

        for (auto [value, aggregator_id] :
             llvm::zip_equal(quantizable_values, aggregator_ids)) {
          // ID attribute will have empty value for now.
          SmallVector<NamedAttribute, 5> attributes{
              rewriter.getNamedAttr("id", rewriter.getStringAttr(aggregator_id)),
              rewriter.getNamedAttr(
                  "calibration_method",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      auto rendezvous_name = StringAttr::get(context, formatted_key);
      auto rendezvous_name_attr = NamedAttribute(
          StringAttr::get(context, xla::kXlaHostTransferRendezvousNameAttr),
          rendezvous_name);
    
      auto host_handler_name_value =
          StringAttr::get(context, host_handler_name.str());
      auto host_handler_name_attr = NamedAttribute(
          StringAttr::get(context, xla::kXlaHostTransferHandlerNameAttr),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      std::optional<DictionaryAttr> devices_attr;
      if (!devices.empty()) {
        llvm::SmallVector<mlir::NamedAttribute, 1> device_list;
        device_list.reserve(devices.size());
        for (auto alias_and_devices : devices) {
          NamedAttribute device_name_attr = builder.getNamedAttr(
              alias_and_devices.getFirst(),
              builder.getStrArrayAttr(alias_and_devices.getSecond()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/flatbuffer_operator.cc

    }
    
    Status mlir::CustomOptionsToAttributes(
        const std::string& custom_code, const std::vector<uint8_t>& custom_options,
        mlir::Builder builder, mlir::Location loc,
        llvm::SmallVectorImpl<mlir::NamedAttribute>* attributes) {
      attributes->emplace_back(
          builder.getNamedAttr("custom_code", builder.getStringAttr(custom_code)));
      std::string content;
      content.assign(reinterpret_cast<const char*>(custom_options.data()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 38K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

          module_op.getLoc(), kImportModelDefaultGraphFuncName, func_type);
      builder.createBlock(&main_func.getBody(), main_func.begin(), arg_types,
                          arg_locs);
      SmallVector<NamedAttribute> func_attrs;
      func_attrs.push_back(
          {StringAttr::get(context, "inputs"),
           StringAttr::get(context, absl::StrJoin(input_names, ","))});
      func_attrs.push_back(
          {StringAttr::get(context, "outputs"),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    
    namespace {
    
    using mlir::Block;
    using mlir::DialectRegistry;
    using mlir::LogicalResult;
    using mlir::ModuleOp;
    using mlir::NamedAttribute;
    using mlir::NamedAttrList;
    using mlir::OpBuilder;
    using mlir::Operation;
    using mlir::OpResult;
    using mlir::Region;
    using mlir::StringAttr;
    using mlir::success;
    using mlir::Type;
    using mlir::Value;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

      let regions = (region VariadicRegion<AnyRegion>:$body);
    
      let skipDefaultBuilders = 1;
    
      let builders = [
        OpBuilder<(ins "StringRef":$name, "FunctionType":$type,
          CArg<"ArrayRef<NamedAttribute>", "{}">:$attrs)>
      ];
    
      let extraClassDeclaration = [{
        LogicalResult verifyType() { return success(); }
    
        mlir::Region *getCallableRegion();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top