- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 303 for constexpr (0.58 sec)
-
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h
#include "tensorflow/compiler/mlir/tensorflow/utils/xla_call_module_attrs.h" namespace mlir::quant { constexpr char kAttrMapAttribute[] = "attr_map"; // Name of the string attribute attached to `XlaCallModuleOp`, which is the // textproto representation of `Method`. inline constexpr StringRef kQuantizationMethodAttr = "_quantization_method"; // Permutation from the NHWC tensor format to NCHW. This is an inverse
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc
std::unique_ptr<xla::PjRtClient> pjrt_client_; xla::PjRtDevice* device_; absl::BitGen bitgen_; }; TEST_F(ConvertTfQuantToMhloIntTest, UniformQuantizeAndDequantizeToValidGraph) { constexpr absl::string_view kProgram = R"mlir( func.func @main(%arg0: tensor<10xf32>) -> tensor<10xf32> { %scale = "tf.Const"() { value = dense<0.347> : tensor<f32> } : () -> tensor<f32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 03 01:03:21 UTC 2024 - 35.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_partitioned_op_conversion.cc
TPUPartitionedOpConversionPass> { void runOnOperation() override; }; template <typename T> LogicalResult ReplacePartitionedOp(IntegerAttr num_cores_per_replica, T op) { constexpr bool is_input = std::is_same_v<std::decay_t<T>, TF::TPUPartitionedInputOp>; static_assert( is_input || std::is_same_v<std::decay_t<T>, TF::TPUPartitionedOutputOp>,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc
namespace mlir { namespace TFTPU { namespace { constexpr char kStepMarkerLocationAttr[] = "step_marker_location"; constexpr char kUseXlaSpmdAttr[] = "use_spmd_for_xla_partitioning"; constexpr char kBadStringArrayElementMsg[] = "bad '{0}' attribute at index {1}, not a string"; constexpr char kBadArrayElementMsg[] = "bad '{0}' attribute at index {1} with value '{2}': failed to parse to {3}"; constexpr char kBadArrayAttrLengthMsg[] =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/inference/inference_metrics_pass_test.cc
namespace { using ::mlir::MLIRContext; using ::mlir::ModuleOp; using ::mlir::OwningOpRef; using ::mlir::mhlo::test::GetMlirModuleFromString; using ::tensorflow::monitoring::testing::CellReader; static constexpr char kHasTpuPartitionedCallStreamzName[] = "/tensorflow/core/tf2xla/internal/inference/tpu_partitioned_call"; class InferenceMetricsPassTest : public ::testing::Test { protected:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/constant_fold.cc
int64_t operands_size = get_size(inst->getOperandTypes()); constexpr int kSizeFactor = 2; // TODO(b/233827625): Remove TF_DISABLE_CONSTANT_FOLDING macro. #ifdef TF_DISABLE_CONSTANT_FOLDING constexpr int64_t kResultsSizeThreshold = 0; #else constexpr int64_t kResultsSizeThreshold = (1 << 23); // 1 MB #endif constexpr int64_t kOperandsSizeThreshold = (1 << 30); // 128 MB
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc
using ::testing::SizeIs; using ::testing::StrEq; using ::tsl::protobuf::util::MessageDifferencer; using ::tsl::testing::IsOk; using ::tsl::testing::StatusIs; using LiftAsFunctionCallTest = QuantizationTestBase; constexpr absl::string_view kModuleLifted = R"mlir( module {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 26.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor.cc
"/tensorflow/core/tf2xla/api/v2/tf_dialect_to_executor_dialect_status", "Counts how often a successful export from TF Dialect to Executor Dialect " "is", "status"); constexpr char kExportSuccess[] = "success"; constexpr char kExportFailed[] = "failed"; namespace { void AddTfDialectToExecutorPasses(OpPassManager &pm) { pm.addPass(mlir::TF::CreateTFRegionControlFlowToFunctional());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 13 23:22:50 UTC 2024 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/tf_dialect_to_executor.cc
"/tensorflow/core/tf2xla/api/v1/tf_dialect_to_executor_dialect_status", "Counts how often a successful export from TF Dialect to Executor Dialect " "is", "status"); constexpr char kExportSuccess[] = "success"; constexpr char kExportFailed[] = "failed"; namespace { void AddTfDialectToExecutorPasses(OpPassManager &pm) { auto add_pass = [&](std::unique_ptr<Pass> pass) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 16 03:41:02 UTC 2024 - 7.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/lstm_utils.h
#include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h" namespace mlir { namespace TFL { constexpr char kTFImplements[] = "tf._implements"; constexpr char kLstmCellSimple[] = "LSTMCellSimple"; constexpr char kLayerNormalizedLstmCellSimple[] = "LayerNormalizedLstmCellSimple"; constexpr char kCoupleInputForgetGates[] = "CoupleInputForgetGates";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 03 00:14:05 UTC 2023 - 7.3K bytes - Viewed (0)