Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 35 of 35 for getNamedAttr (0.16 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      // This is needed for native serialization version >= 8.
      xla_call_module_op->setAttr(
          kStablehloModuleAttrsAttrName,
          builder.getDictionaryAttr(builder.getNamedAttr(
              kUsesShapePolymorphismAttr, builder.getBoolAttr(true))));
    
      for (auto [original_output_value, xla_call_module_op_result_value] :
           llvm::zip_equal(outputs, xla_call_module_op->getResults())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

      ASSERT_THAT(main_fn, NotNull());
    
      auto dot_general_op =
          FindOperationOfType<mlir::stablehlo::DotGeneralOp>(main_fn);
    
      const SmallVector<NamedAttribute>& attributes = {
          builder_.getNamedAttr(
              "precision_config",
              builder_.getArrayAttr(SmallVector<Attribute>(
                  1, mlir::stablehlo::PrecisionAttr::get(
                         ctx_.get(), mlir::stablehlo::Precision::DEFAULT)))),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

      // This is needed for native serialization version >= 8.
      call_op->setAttr(kStablehloModuleAttrsAttrName,
                       builder.getDictionaryAttr(builder.getNamedAttr(
                           kUsesShapePolymorphismAttr, builder.getBoolAttr(true))));
    
      return call_op.getOutput();
    }
    
    // Creates the function call op based on the given call_op_type argument.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/converter_gen.cc

              continue;
            StringRef attr_type = mlir::tblgen::Attribute(arg_def).getAttrDefName();
            os << formatv(
                "    attributes.emplace_back(builder.getNamedAttr(\"{0}\","
                " Build{1}(op->{0}, builder)));\n",
                arg_name, attr_type);
          }
        }
    
        os << "    return;\n";
        os << "  }\n";
      }
      if (builtin_options_id == 2) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 23.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      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()));
          device_list.emplace_back(device_name_attr);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top