Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 70 for StringAttr (0.16 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

        if (clone.getName() == entry_func.getName()) {
          // We can simply change name of TPU program's main function because there
          // should be no other reference to it.
          clone.setName(StringAttr::get(clone.getContext(), "main"));
          clone.setPublic();
        } else {
          clone.setPrivate();
        }
        symbol_table.insert(clone);
      }
    
      *serialized_func_module =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc

    // initializer function. Assumes that there exists such an attribute.
    std::string GetInitializerType(func::FuncOp init_func_op) {
      return init_func_op
          ->getAttrOfType<StringAttr>(kTfSavedModelInitializerTypeAttr)
          .str();
    }
    
    // An initializer function should satisfy the follwing conditions:
    // * Its GraphOp should only have control outputs.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:54:52 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/python/saved_model_to_tfl_flatbuffer.cc

      auto input_attr = tf_attrs.get("inputs");
      if (!input_attr) {
        return errors::InvalidArgument("no inputs attribute found");
      }
      auto input_names = mlir::cast<mlir::StringAttr>(input_attr).getValue();
      input_names.split(function_input_names, ",", /*MaxSplit=*/-1,
                        /*KeepEmpty=*/false);
      const int function_input_names_size = function_input_names.size();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/tf_xla_mlir_translate.cc

      size_t numRead;
      mlir::Attribute attr = mlir::parseAttribute(input, context, {}, &numRead);
      if (!attr || !mlir::isa<mlir::StringAttr>(attr)) {
        LOG(ERROR) << "Input is not parsable as a MLIR StringAttr.";
        return nullptr;
      }
      auto str_attr = mlir::cast<mlir::StringAttr>(attr);
    
      mlir::DialectRegistry registry;
      RegisterMlirInputDialects(registry);
      context->appendDialectRegistry(registry);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h

    // Checks whether the given op contains QuantizationTrait::FullyQuantizable.
    inline bool HasQuantizableTrait(Operation* op) {
      return op->hasAttrOfType<StringAttr>(kQuantTraitAttrName) &&
             op->getAttrOfType<StringAttr>(kQuantTraitAttrName).getValue().str() ==
                 QuantTraitValues[QuantizationTrait::FullyQuantizable];
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

    // returns `std::nullopt`.
    std::optional<llvm::StringRef> GetTpuClusterName(Operation* op) {
      if (auto tpu_status = op->getAttrOfType<StringAttr>(kTpuStatusAttr)) {
        // Borrow cluster name from TPU status (for `TPUCompilationResult` op).
        return tpu_status.getValue();
      }
      auto device_type = op->getAttrOfType<StringAttr>(TF::kCompileDeviceTypeAttr);
      if (!device_type || device_type.getValue() != TF::kTpuDevice) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.cc

    }
    
    Value PadForDynamicShapedInputSamePadding(
        OpBuilder &builder, Location loc, Value input, Value filter,
        int8_t input_zp_value, ArrayAttr strides, ArrayAttr dilations,
        StringAttr conv_padding, Value &padding, int num_dims) {
      Value zero_rank1 = CreateConstValue<int32_t>(builder, loc, {1}, {0});
      SmallVector<Value> temp_padding_values{zero_rank1, zero_rank1};
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc

    Value CreateXlaConvOp(OpBuilder &builder, Location loc, Value input,
                          Value filter, Value input_zp, Value conv_output,
                          ArrayAttr strides, ArrayAttr dilations,
                          StringAttr conv_padding, ArrayAttr explicit_paddings,
                          int feature_group_cnt, bool four_bit = false,
                          int num_dims = 4) {
      int32_t input_zp_value;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

      llvm::StringRef device;
      if (auto attr = op->getAttrOfType<mlir::StringAttr>("device")) {
        device = attr.getValue();
      }
    
      llvm::StringRef container;
      if (auto attr = op->getAttrOfType<mlir::StringAttr>("container")) {
        container = attr.getValue();
      }
    
      llvm::StringRef shared_name;
      if (auto attr = op->getAttrOfType<mlir::StringAttr>("shared_name")) {
        shared_name = attr.getValue();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

      }
      if (replicate_arg_to_execute_arg.empty()) return mapping;
    
      // Parse the original compile metadata.
      Operation& compile = compile_launch.GetBody().front();
      auto metadata_str = compile.getAttrOfType<StringAttr>("metadata");
      assert(metadata_str && "Missing compilation metadata");
      tensorflow::tpu::TPUCompileMetadataProto metadata;
      metadata.ParseFromString(std::string(metadata_str.getValue()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top