Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 73 for BoolAttr (0.16 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_executor_ops.td

        Note: Additional result corresponds to the control output.
      }];
    
      let arguments = (ins
        AnyType:$data,
        StrAttr:$frame_name,
        DefaultValuedOptionalAttr<BoolAttr, "false">:$is_constant,
        DefaultValuedOptionalAttr<I64Attr, "10">:$parallel_iterations,
        // Optional extra control inputs.
        Variadic<TfeControlType>:$controlInputs
      );
    
    
      let results = (outs
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 23 19:35:12 UTC 2023
    - 22K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

      return Unimplemented("SetAttrFloat has not been implemented yet.");
    }
    Status MlirAbstractOp::SetAttrBool(const char* attr_name, bool value) {
      attrs_[attr_name] = BoolAttr::get(context_, value);
      return absl::OkStatus();
    }
    Status MlirAbstractOp::SetAttrShape(const char* attr_name, const int64_t* dims,
                                        const int num_dims) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/flatbuffer_operator.cc

    // F32Attr already returns a float as required by flatbuffer builders.
    static float ConvertF32AttrForOptionWriter(
        llvm::APFloat f, flatbuffers::FlatBufferBuilder* builder) {
      return f.convertToFloat();
    }
    
    // BoolAttr already returns a bool as required by flatbuffer builders.
    static bool ConvertBoolAttrForOptionWriter(
        bool b, flatbuffers::FlatBufferBuilder* builder) {
      return b;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 38K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

          TF::TensorListLengthOp op, OpAdaptor adaptor,
          ConversionPatternRewriter &rewriter) const override {
        Location loc = op.getLoc();
        Value input_handle = adaptor.getOperands()[0];
    
        BoolAttr true_attr = rewriter.getBoolAttr(true);
        auto shape = rewriter.create<TF::ShapeOp>(loc, input_handle,
                                                  /*use_32bit=*/true_attr);
        rewriter.replaceOpWithNewOp<TF::GatherOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

    };
    
    TF::ReshapeOp createOutputReshapeOpForDynamic(
        Value value, ArrayRef<int64_t> shape, Value org_lhs, Value org_rhs,
        EinsumDimensionNumbers& dnums, Location loc, PatternRewriter* rewriter) {
      BoolAttr true_attr = rewriter->getBoolAttr(true);
      // Build ShapeOp
      auto shape_lhs = rewriter->create<TF::ShapeOp>(loc, org_lhs, true_attr);
      auto shape_rhs = rewriter->create<TF::ShapeOp>(loc, org_rhs, true_attr);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

                                  result.attributes))
          return failure();
      }
      bool has_constant = succeeded(parser.parseOptionalKeyword("constant"));
      result.addAttribute("is_constant", BoolAttr::get(context, has_constant));
    
      SmallVector<Type, 1> types;
      if (parser.parseColonTypeList(types)) return failure();
      if (types.size() != 1)
        return parser.emitError(loc) << " expects only a single data type";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

                                  const Attribute min, const Attribute max,
                                  const int quant_dim, const IntegerAttr num_bits,
                                  const BoolAttr narrow_range, const bool is_signed,
                                  const bool legacy_float_scale,
                                  const bool use_fake_quant_num_bits) {
      SmallVector<double, 4> min_value, max_value;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top