- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for FloatAttr (0.08 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/rewrite_util.h
template <typename T> DenseElementsAttr GetScalarOfType(Type ty, T raw_value) { RankedTensorType scalar_ty = RankedTensorType::get({}, ty); if (auto float_ty = mlir::dyn_cast<FloatType>(ty)) { FloatAttr attr = FloatAttr::get(float_ty, raw_value); return DenseElementsAttr::get(scalar_ty, attr); } else if (auto int_ty = mlir::dyn_cast<IntegerType>(ty)) { IntegerAttr attr = IntegerAttr::get(int_ty, raw_value);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 19:47:48 UTC 2024 - 4K bytes - Viewed (0) -
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)