Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 91 for foo_attr (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

                                    PatternRewriter& rewriter) const override {
        const auto f_attr = mlir::dyn_cast<FlatSymbolRefAttr>(call_op.getFAttr());
        // removeAttr will return nullptr if no attribute was removed.
        if (!call_op->removeAttr(kQuantTraitAttrName) || !f_attr) {
          return failure();
        }
        if (!f_attr.getValue().starts_with(kCompositeFuncPrefix)) {
          return failure();
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/node_matchers.cc

      props.set_control_deps(std::move(control_deps_vector));
      return props;
    }
    
    std::pair<string, AttrValue> impl::AttrLiteralHelper(
        const std::pair<string, bool>& bool_attr) {
      AttrValue attr_value;
      attr_value.set_b(bool_attr.second);
      return {bool_attr.first, attr_value};
    }
    
    std::pair<string, AttrValue> impl::AttrLiteralHelper(
        const std::pair<string, absl::Span<const int>>& int_list_attr) {
      AttrValue attr_value;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 03 16:15:20 UTC 2022
    - 16.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc

        // Note: this information is duplicated and can be removed from the proto
        // and here once MLIR bridge phase 2 doesn't fallback to the old bridge.
        auto attr = op.getFuncOp().getArgAttrOfType<mlir::BoolAttr>(
            index, replication_attr_name);
        arg->set_is_same_data_across_replicas(attr != nullptr && attr.getValue());
    
        // Currently only support first dimension to be bounded dynamic.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

          TF_RETURN_IF_ERROR(ConvertLocation(locations[i], node_name, debug_info));
        }
      }
      return absl::OkStatus();
    }
    
    Status ConvertAttribute(const mlir::BoolAttr& attr, AttrValue* value) {
      value->set_b(attr.getValue());
      return absl::OkStatus();
    }
    
    Status ConvertAttribute(const mlir::IntegerAttr& attr, AttrValue* value) {
      value->set_i(attr.getInt());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/legalize_variables.cc

        // If TFLite variable legalization is not allowed, then we skip this pass.
        if (auto legalize_tfl_variables_attr =
                module->getAttr(kLegalizeTflVariables)) {
          if (!mlir::cast<BoolAttr>(legalize_tfl_variables_attr).getValue()) return;
        }
    
        RewritePatternSet patterns(&getContext());
        populateWithGenerated(patterns);
        (void)applyPatternsAndFoldGreedily(module, std::move(patterns));
      }
    };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/canonicalize_compile_and_replicate_attributes.cc

        }
    
        // Convert `_XlaMustCompile`.
        if (op->hasAttr(tensorflow::kMustCompileAttr)) {
          bool must_compile_attr_val =
              op->getAttrOfType<BoolAttr>(tensorflow::kMustCompileAttr).getValue();
          op->removeAttr(tensorflow::kMustCompileAttr);
          if (!must_compile_attr_val) {
            if (op->hasAttr(tensorflow::kCompileDeviceTypeAttr)) {
              op->emitOpError()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/propagate_quantize_type.cc

      }
    
      LogicalResult matchAndRewrite(TF::PartitionedCallOp op,
                                    PatternRewriter& rewriter) const override {
        const auto f_attr = mlir::dyn_cast<FlatSymbolRefAttr>(op.getFAttr());
        StringRef function_name = f_attr.getValue();
        if (!function_name.starts_with(kDequantizeFunctionName)) return failure();
    
        llvm::SmallVector<Operation*> users(op->getUsers().begin(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top