Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FloatAttr (0.1 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc

      for (const auto& kv : hardware_map) {
        auto cost_attr = device_costs_attr.getNamed(kv.first);
        if (!cost_attr.has_value()) return std::nullopt;
        float cost = mlir::dyn_cast_or_null<mlir::FloatAttr>(cost_attr->getValue())
                         .getValueAsDouble();
        device_costs[kv.second] = cost;
      }
      return device_costs;
    }
    
    flatbuffers::Offset<SubgraphMetadata> CreateSubgraphMetadata(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

          ">= " # x # " && $_op.getOperand(" # n # ").getType().cast<ShapedType>()."
          "getRank() <= " # y>]>>;
    
    def TFL_FloatNonNegative : AttrConstraint<
        CPred<"$_self.isa<FloatAttr>() && "
                "!$_self.cast<FloatAttr>().getValue().isNegative()">,
        "whose value is non-negative">;
    
    def TFL_BoolTrue : AttrConstraint<
        CPred<"$_self.isa<BoolAttr>() && $_self.cast<BoolAttr>().getValue()">,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
Back to top