Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 84 for foo_attr (0.14 sec)

  1. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

    def LegalizeMin : Pat<
      (TF_MinOp $arg0, $axes, BoolAttr:$arg2),
      (TFL_ReduceMinOp $arg0, (CreateTFCastToInt32Op $axes), $arg2)>;
    
    def LegalizeMax : Pat<
      (TF_MaxOp $arg0, $axes, BoolAttr:$arg2),
      (TFL_ReduceMaxOp $arg0, (CreateTFCastToInt32Op $axes), $arg2)>;
    
    def LegalizeProd : Pat<
      (TF_ProdOp $arg0, $axes, BoolAttr:$arg2),
      (TFL_ReduceProdOp $arg0, (CreateTFCastToInt32Op $axes), $arg2)>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.h

    Type DeduceEqualCmpOpType(Builder *builder, Location loc, Value x, Value y,
                              BoolAttr incompatible_shape_error);
    
    Type InferReductionOpType(Value input, Value reduction_indices,
                              BoolAttr keep_dims);
    
    // Verifies that the given types are cast compatible. If not, emits appropriate
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc

    static bool FloatValueEquals(const Attribute &attr, double value) {
      auto fp_attr = mlir::dyn_cast_or_null<DenseFPElementsAttr>(attr);
      if (fp_attr == nullptr) return false;
    
      if (fp_attr.isSplat()) {
        return fp_attr.getSplatValue<APFloat>().isExactlyValue(value);
      }
      return llvm::all_of(fp_attr.getValues<APFloat>(), [value](const APFloat &f) {
        return f.isExactlyValue(value);
      });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/ir/QuantOps.td

        I64Attr:$num_bits,
        // Quantization range starts from 0 or 1; starts from 1 if true.
        DefaultValuedOptionalAttr<BoolAttr, "false">:$narrow_range,
        // The sign of the quantization.
        DefaultValuedOptionalAttr<BoolAttr, "false">:$is_signed
      );
    
      let results = (outs
        F32Tensor:$outputs
      );
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 09 03:10:59 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.cc

                                    PatternRewriter& rewriter) const override {
        auto f_attr = mlir::dyn_cast<FlatSymbolRefAttr>(call_op.getFAttr());
        auto module_op = call_op->getParentOfType<ModuleOp>();
        SymbolTable symbol_table(module_op);
    
        auto f_name = f_attr.getValue();
        func::FuncOp float_func =
            dyn_cast<func::FuncOp>(symbol_table.lookup(f_name));
        if (!float_func) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc

        if (callable->hasAttr("tf._XlaMustCompile")) return true;
        auto noinline_attr_name = absl::StrCat("tf.", tensorflow::kNoInlineAttr);
        if (auto noinline_attr =
                callable->getAttrOfType<BoolAttr>(noinline_attr_name))
          return !noinline_attr.getValue();
        return true;
      }
    
      // Returns if its legal to inline 'src' region into the 'dest' region
      // attached to a TF operation.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

        DefaultValuedOptionalAttr<BoolAttr, "false">:$adj_x,
        DefaultValuedOptionalAttr<BoolAttr, "false">:$adj_y,
        DefaultValuedOptionalAttr<BoolAttr, "false">:$grad_x,
        DefaultValuedOptionalAttr<BoolAttr, "false">:$grad_y
      );
    
      let results = (outs
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

        auto c_false =
            rewriter.create<arith::ConstantOp>(loc, rewriter.getBoolAttr(false));
        TypeAttr f32_attr = TypeAttr::get(rewriter.getF32Type());
        TFRAttrType output_type = TFRAttrType::get(rewriter.getContext());
        auto constant_f32_op = rewriter.create<ConstOp>(loc, output_type, f32_attr);
        TypeAttr i32_attr = TypeAttr::get(rewriter.getI32Type());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

        Variadic<TF_Tensor>:$input,
    
        ConfinedAttr<SymbolRefArrayAttr, [ArrayMinCount<1>]>:$branches,
    
        // Used to map StatelessCase and Case op defined in TensorFlow to a common
        // op.
        BoolAttr:$is_stateless
      );
    
      let results = (outs
        Variadic<TF_Tensor>:$output
      );
    
      TF_DerivedOperandTypeListAttr Tin = TF_DerivedOperandTypeListAttr<1>;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc

    // incompatible shapes. Otherwise, returns a tensor type with unknown rank.
    Type DeduceEqualCmpOpType(Builder *builder, Location loc, Value x, Value y,
                              BoolAttr incompatible_shape_error) {
      auto result_type =
          OpTrait::util::getBroadcastedType(x.getType(), y.getType());
      if (!result_type) {
        if (incompatible_shape_error.getValue()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top