- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 155 for constexpr (0.19 sec)
-
tensorflow/compiler/mlir/lite/quantization/device_target.cc
#include "tensorflow/compiler/mlir/lite/quantization/ir/QuantOps.h" #include "tensorflow/compiler/mlir/lite/quantization/numerical_utils.h" namespace mlir { namespace quant { constexpr int k8Bits = 8; constexpr int k32Bits = 32; constexpr unsigned kSigned = QuantizationFlags::Signed; DeviceTarget::DeviceTarget(MLIRContext* ctx) : ctx_(ctx) { f32_ = FloatType::getF32(ctx_); i8_ = IntegerType::get(ctx_, k8Bits);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 08 10:41:08 UTC 2024 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h" namespace mlir { namespace TF { namespace { // Location attribute. constexpr StringRef kClassAttr = "_class"; constexpr StringRef kSharedNameAttr = "shared_name"; constexpr StringRef kLocationPrefix = "loc:@"; #define GEN_PASS_DEF_CONVERTREADONLYREFERENCEVARIABLESTORESOURCEVARIABLESPASS
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/legalize_tf_quant_test.cc
&arg_core_mapping, &per_core_arg_shapes, client) .status()); } }; TEST_F(LegalizeTFQuantTest, LegalizesModuleWithTFUniformQuantization) { constexpr char mlir_module_string[] = R"mlir( module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} { func.func @main(%arg0 : tensor<1xf32>) -> tensor<1xf32> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 29 18:43:55 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/quantization_unit_loc.cc
#include "mlir/Support/LLVM.h" // from @llvm-project namespace mlir { namespace quant { namespace { // Prefix and suffix to the QuantizationUnit string representation. constexpr std::string_view kQuantizationUnitPrefix = "QuantizationUnit("; constexpr std::string_view kQuantizationUnitSuffix = ")"; // Concatenates node name and func name with a "@" separator. std::string ConcatNodeAndFuncName(std::string_view node_name,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/nms_utils.cc
namespace mlir { namespace TFL { namespace { // TODO(b/162842801): Consolidate all util definitions of kTFImplements. constexpr char kTFImplements[] = "tf._implements"; constexpr char kCustomSSDPostprocessing[] = "TFLite_Detection_PostProcess"; constexpr char kTfNMSPadded[] = "non_max_suppression_padded_v2"; inline ConstBytesAttr CustomOption(OpBuilder* builder,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.cc
// tf.LookupTableFindV2 ops are usually more costly than tf.AddV2 with the // same input size, as it involves more operations like hashing, map lookup, // etc. constexpr int64_t kLookupTableFindCostScale = 8; constexpr int64_t kLookupTableFindStringKeyCostScale = 16; auto value_type = mlir::cast<mlir::TensorType>(op.getValues().getType()); auto key_type = mlir::cast<mlir::TensorType>(op.getKeys().getType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/annotate_parameter_replication.cc
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h" #include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h" namespace mlir { namespace TFDevice { namespace { constexpr char kReplicationAttr[] = "mhlo.is_same_data_across_replicas"; constexpr char kMirroredVariableIndicesAttr[] = "_mirrored_variable_indices"; #define GEN_PASS_DEF_ANNOTATEPARAMETERREPLICATIONPASS
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf_test.cc
pm->addPass(mlir::mhlo::createLegalizeTFPass( /* legalize_chlo=*/true, llvm::StringRef("gpu/xpu"), /* prefer_tf2xla=*/false)); }; } TEST(XlaLegalizeTest, IllegalOp) { constexpr char kMlirIllegalOpStr[] = R"( module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} { func.func @main() -> tensor<1xi32> { %0 = "tf.DoesntExist"() : () -> tensor<1xi32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.h
// `auto_control_deps.py` where it is assumed that allocated resource values // NEVER alias. We should align our assumptions in the future. static constexpr int64_t kUnknownResourceId = -1; static constexpr int64_t kInvalidResourceId = -2; static constexpr int64_t kMaxResourceTypeId = 9999; }; } // namespace detail // An analysis that runs on a module and maps each resource-type value to a
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/cluster_util_test.cc
GetMlirModuleFromString(module_with_two_clusters, &context)); auto clusters = GetClusters(module.get()); constexpr StringRef kTarget0 = "tpu0"; EXPECT_EQ(clusters.count(kTarget0), 1); EXPECT_EQ(clusters[kTarget0].size(), 1); EXPECT_EQ(clusters[kTarget0][0].ops.size(), 2); constexpr StringRef kTarget1 = "tpu1"; EXPECT_EQ(clusters.count(kTarget1), 1); EXPECT_EQ(clusters[kTarget1].size(), 1);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 7.8K bytes - Viewed (0)