Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 91 for foo_attr (0.12 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc

    // of the tensor dimension.
    bool FloatValueEquals(const Attribute& attr, const double value) {
      const auto fp_attr = mlir::dyn_cast_or_null<DenseFPElementsAttr>(attr);
      if (!fp_attr) 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: Fri May 10 04:07:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/lite/quantization/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: Thu Oct 13 12:46:08 UTC 2022
    - 10.2K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top