- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 134 for constexpr (0.33 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
#include "tensorflow/core/protobuf/tpu/compile_metadata.pb.h" namespace mlir { namespace TFTPU { namespace { constexpr char kDeviceAttr[] = "device"; constexpr char kFuncDeviceAttr[] = "tf.device"; constexpr char kDefaultShardingValue[] = ""; constexpr char kMirroredVariableIndicesAttr[] = "_mirrored_variable_indices"; std::string GetRandomStateVariableName() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc
using mlir::stablehlo::ConstantOp; using mlir::stablehlo::ConvertOp; using ::stablehlo::quantization::QuantizationComponentSpec; // Min/Max values used for creating ConstantOp. constexpr float kMaxFloat16Value = 65504.f; constexpr float kMinFloat16Value = -65504.f; class QuantizeWeightPass : public impl::QuantizeWeightPassBase<QuantizeWeightPass> { public: explicit QuantizeWeightPass(
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/lite/transforms/dense_to_sparse.cc
constexpr float kMinSparsityLevel = 0.3; // Heuristic to check if a block configuration is correct for float constants. constexpr float kBlockOverRandomSparsityRatio = 0.9; // After quantization, some non-zero values are set to 0. // Lower the ratio for identifying block configuration for quantized constants. constexpr float kBlockOverRandomSparsityRatioQuant = 0.8;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h" namespace mlir { namespace quant { namespace { constexpr StringRef kDequantizeFunctionName = "composite_dequantize"; constexpr StringRef kUniformQuantizationFunctionName = "uniform"; // Pre-actions before adding quantization logics. It creates a function with the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h" #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h" namespace mlir { namespace TFDevice { namespace { constexpr char kDeviceAttr[] = "device"; constexpr char kMiniBatchSplitsAttr[] = "mini_batch_splits"; constexpr char kMiniBatchCsrAttr[] = "mini_batch_in_csr"; #define GEN_PASS_DEF_EMBEDDINGPROGRAMKEYPASS
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h" namespace mlir { namespace TF { namespace { constexpr char kResourceFunctionMsg[] = "expects function level resource argument"; constexpr char kInvalidResourceMsg[] = "expects resource to be a VarHandleOp or function argument"; constexpr char kResourceNameArgAttr[] = "tf.resource_name"; // Checks if a function has only one block.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc
#include "tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h" namespace mlir { namespace TFDevice { namespace { constexpr char kDeviceAttr[] = "device"; constexpr char kReplicaIdAttr[] = "_xla_replica_id"; constexpr char kDeviceOrdinalAttr[] = "device_ordinal"; #define GEN_PASS_DEF_REPLICATETOISLANDPASS #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jul 24 21:01:40 UTC 2023 - 16.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc
using mlir::ValueRange; using mlir::WalkResult; constexpr llvm::StringRef kDeviceAttr = "device"; constexpr llvm::StringRef kNameAttr = "name"; constexpr llvm::StringRef kNumCoresPerReplicaAttr = "num_cores_per_replica"; constexpr llvm::StringRef kNumReplicasAttr = "num_replicas"; constexpr llvm::StringRef kMirroredVariableIndicesAttr = "_mirrored_variable_indices"; constexpr llvm::StringRef kBadReplicateInfoAttrMsg =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 22:03:30 UTC 2024 - 39.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h" #include "tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h" namespace mlir { namespace TFTPU { namespace { constexpr char kDeviceAttr[] = "device"; constexpr char kFuncDeviceAttr[] = "tf.device"; // Checks if a function only contains a tf_executor.graph. bool IsSupportedGraph(func::FuncOp func) { if (!llvm::hasSingleElement(func)) return false;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc
DenseFPElementsAttr value_attr = mlir::cast<DenseFPElementsAttr>(op.getValue()); new_values.reserve(value_attr.getNumElements()); constexpr float kMaxFloat16Value = 65504.f; constexpr float kMinFloat16Value = -65504.f; for (auto value : value_attr.template getValues<float>()) { new_values.push_back(Eigen::half(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.8K bytes - Viewed (0)