- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 330 for constexpr (0.14 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h" #include "tensorflow/core/lib/io/path.h" namespace mlir { namespace TF { namespace { static constexpr int kTextFileIndex_WholeLine = -2; static constexpr int kTextFileIndex_LineNumber = -1; #define GEN_PASS_DEF_INITTEXTFILETOIMPORTPASS #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 6.1K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc
// // This method uses a temporary buffer to hold contents. int CopyFileContents(int dst_fd, int src_fd, off_t size) { // Use a copy buffer of 128KB but don't store it on the stack. constexpr static size_t kPosixCopyFileBufferSize = 128 * 1024; std::unique_ptr<char[]> buffer(new char[kPosixCopyFileBufferSize]); off_t offset = 0; int bytes_transferred = 0; int rc = 1;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Nov 22 21:23:55 UTC 2019 - 1.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf.cc
{tsl::monitoring::Buckets::Exponential(1, 1.5, 45)}); // Name of component for error logging. This name is fixed and required to // enable logging. constexpr char kBridgeComponent[] = "TFXLABridge"; constexpr char kFullBridge[] = "full_bridge"; namespace { bool ShouldFallbackToGraphCompiler( const std::variant<MlirToHloArgs, FunctionToHloArgs>& computation) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 29 00:40:46 UTC 2024 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/common/cost.h
#include "mlir/IR/Builders.h" // from @llvm-project #include "mlir/IR/Operation.h" // from @llvm-project namespace mlir { namespace TFL { namespace tac { // Cost attribute string on the TFL dialect. constexpr char kCost[] = "tac.cost"; inline void UpdateCost(Operation* op, float cost, OpBuilder* builder) { op->setAttr(kCost, builder->getF32FloatAttr(cost)); } // Get the cost annotated with kCost.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jul 21 01:22:53 UTC 2021 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h
#include "tensorflow/core/util/device_name_utils.h" namespace tensorflow { using tsl::StatusOr; inline constexpr absl::string_view kNumCoresPerReplicaAttr = "num_cores_per_replica"; inline constexpr absl::string_view kTopologyAttr = "topology"; inline constexpr absl::string_view kDeviceAssignmentAttr = "device_assignment"; // A TPU device for execution alongside its associated host CPU device.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 11.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops_pass.cc
namespace TFDevice { namespace { constexpr char kBadDecompositionMessage[] = "Resource ops decomposition did not converge"; // Decomposing resource ops should not take more than a few iterations (2-3) to // converge as only a few patterns create new resource ops that can be further // decomposed. The rest of the iterations are enough to clean up any dead ops // created by decomposition. constexpr int kMaxIterations = 20;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Sep 08 20:01:13 UTC 2023 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_update_embedding_enqueue_op_inputs.cc
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_types.h" #include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h" namespace mlir { namespace TFTPU { namespace { constexpr char kXlaOutsideCompilationAttr[] = "_xla_outside_compilation"; constexpr char kTPUEmbeddingAttr[] = "_tpu_embedding_layer"; #define GEN_PASS_DEF_TPUUPDATEEMBEDDINGENQUEUEOPINPUTSPASS #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 7.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate_registration.cc
#include "tsl/platform/protobuf.h" namespace mlir { using tsl::Status; using tsl::StatusOr; static constexpr char kMlirToGraphCompilationCheckName[] = "mlir-to-graph-compilation-check"; // Use CPU arbitrarily in order to check that a graph compiles at all static constexpr char kArbitraryDeviceName[] = "XLA_CPU_JIT"; namespace { inline absl::string_view StringRefToView(llvm::StringRef ref) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 22:19:26 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/pre_calibration.h
// lifted quantizable functions. class PreCalibrationComponent : public Component { public: // Name of the post-training quantization pre-calibration step. Used for // debugging purposes. static constexpr absl::string_view kName = "quant_ptq_pre_calibration"; explicit PreCalibrationComponent(absl::Nonnull<MLIRContext*> ctx); absl::StatusOr<ModuleOp> Run( ModuleOp,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 11 19:29:56 UTC 2024 - 2.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/manipulate_model_attr.cc
#include <string> #include <utility> #include "llvm/ADT/StringExtras.h" #include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project namespace mlir { namespace quant { constexpr StringRef kTfEntryFunctionAttr = "tf.entry_function"; void AddEntryFunctionInput(StringRef input_name, func::FuncOp func_op) { auto entry_func_attr = func_op->getAttrOfType<DictionaryAttr>(kTfEntryFunctionAttr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 26 01:13:26 UTC 2023 - 2.1K bytes - Viewed (0)