Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for BoolAttr (0.15 sec)

  1. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        "whose value is non-negative">;
    
    def TFL_BoolTrue : AttrConstraint<
        CPred<"$_self.isa<BoolAttr>() && $_self.cast<BoolAttr>().getValue()">,
        "whose value is true">;
    
    def TFL_BoolFalse : AttrConstraint<
        CPred<"$_self.isa<BoolAttr>() && !$_self.cast<BoolAttr>().getValue()">,
        "whose value is false">;
    
    class TFL_StringEqualsTo<string value> : AttrConstraint<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

                                          ImplicitLocOpBuilder& builder,
                                          bool is_lhs) {
      auto operand_type = mlir::cast<ShapedType>(operand.getType());
      BoolAttr true_attr = builder.getBoolAttr(true);
      auto operand_shape = builder.create<TF::ShapeOp>(operand, true_attr);
      const int64_t operand_rank = operand_type.getRank();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

        // Set to `nullptr` because this attribute only matters when the input is
        // dynamic-range quantized.
        const BoolAttr asymmetric_quantize_inputs = nullptr;
    
        const int lhs_rank = lhs_value.getType().cast<TensorType>().getRank();
        const BoolAttr adj_x =
            (lhs_contracting_dims[0] == lhs_rank - 2 ? rewriter.getBoolAttr(true)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

                        Attribute value) {
      ShapedType type;
      if (auto elem_attr = mlir::dyn_cast<ElementsAttr>(value)) {
        return ConstOp::build(builder, result, elem_attr);
      } else if (mlir::isa<BoolAttr, FloatAttr, IntegerAttr>(value)) {
        // All TensorFlow types must be tensor types. In the build() method,
        // we want to provide more flexibility by allowing attributes of scalar
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

      auto array = attr.cast<mlir::ArrayAttr>().getValue();
    
      for (int i = 0; i < array.size(); i++) {
        if (llvm::isa<mlir::BoolAttr>(array[i])) {
          flex_builder->Bool(name.c_str(),
                             array[i].cast<mlir::BoolAttr>().getValue());
        } else if (llvm::isa<mlir::StringAttr>(attr)) {
          flex_builder->String(name.c_str(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/optimize.cc

                            Value filter, Value bias,
                            StringAttr fused_activation_function,
                            StringAttr weights_format, BoolAttr keep_num_dims,
                            BoolAttr asymmetric_quantize_inputs) {
      auto fc_op = builder->create<FullyConnectedOp>(
          result[0].getLoc(), result.getTypes(), input, filter, bias,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      return mlir::OpTrait::impl::verifyCompatibleOperandBroadcast(
          op.getOperation());
    }
    
    void NotEqualOp::build(OpBuilder &builder, OperationState &result, Value x,
                           Value y, BoolAttr incompatible_shape_error) {
      auto result_type = DeduceEqualCmpOpType(&builder, result.location, x, y,
                                              incompatible_shape_error);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      }
    
      // Default to non-time_major.
      std::optional<mlir::NamedAttribute> time_major_attr =
          attr.getNamed("time_major");
      bool time_majored =
          time_major_attr ? time_major_attr->getValue().cast<BoolAttr>().getValue()
                          : false;
    
      int64_t batch =
          time_majored ? input_type.getDimSize(1) : input_type.getDimSize(0);
      int64_t time =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      auto composite_control_flow_op = [&](const std::string& name) {
        result.name = mlir::OperationName(get_full_op_name(name), context_);
        bool stateless = absl::StartsWith(node_type_name, "Stateless");
        mlir::BoolAttr val = builder_.getBoolAttr(stateless);
        result.attributes.push_back(builder_.getNamedAttr("is_stateless", val));
      };
    
      // Map Case/If/While and StatelessCase/If/While op in TensorFlow to the common
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
Back to top