Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 86 for StringAttr (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc

      auto device_attr =
          func.getArgAttrOfType<mlir::StringAttr>(arg_no, kFuncDeviceAttr);
      return device_attr ? device_attr.getValue() : "";
    }
    
    // Extracts and canonicalizes the device attribute.
    inline StringRef GetDeviceAttr(Operation* op) {
      auto device_attr = op->getAttrOfType<mlir::StringAttr>(kDeviceAttr);
      return device_attr ? device_attr.getValue() : "";
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td

    // A string attribute whose value are one of the values in `cases`.
    class TF_AnyStrAttrOf<list<string> cases> : StringBasedAttr<
      CPred<!foldl(
          "$_self.cast<StringAttr>().getValue() == \"" # !head(cases) # "\"",
          !foreach(case, !tail(cases),
                   "$_self.cast<StringAttr>().getValue() == \"" # case # "\""),
          prev, cur, prev # " || " # cur)>,
      "string attribute whose value is " #
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 30.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/utils/tftext_utils.cc

      if (!width) {
        return func.emitError() << "'width' attribute is not set or not an integer";
      }
      fbb.Int("width", width.getInt());
    
      auto string_separator =
          mlir::dyn_cast_or_null<StringAttr>(attrs.get("string_separator"));
      if (!string_separator) {
        return func.emitError()
               << "'string_separator' attribute is not set or not a string";
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

      // "axis" operand could be a i64 tensor. Resolve it here.
      IntegerAttr axis_i32;
      if (failed(ConvertToI32Attr(axis_int, &axis_i32))) return failure();
    
      StringAttr fused_activation_function =
          StringAttr::get(rewriter.getContext(), "NONE");
      rewriter.replaceOpWithNewOp<ConcatenationOp>(
          op, output_type, values, axis_i32, fused_activation_function);
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  9. 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)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td

      let extraClassDeclaration = [{
        Block &GetBody() { return getOperation()->getRegion(0).front(); }
        bool WrapsSingleOp();
      }];
    
      let builders = [
        OpBuilder<(ins "StringAttr":$device, "TypeRange":$result_types),
        [{
          $_state.addAttribute("device", device);
          $_state.addTypes(result_types);
          $_state.addRegion();
        }]>
      ];
    
      let hasCanonicalizer = 1;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 23:53:20 UTC 2024
    - 14.8K bytes
    - Viewed (0)
Back to top