- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 303 for constexpr (0.2 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.h
#include "xla/xla_data.pb.h" #include "tensorflow/core/protobuf/tpu/compile_metadata.pb.h" namespace tensorflow { inline constexpr llvm::StringRef kInputShardingAttr = "input_sharding_configuration"; inline constexpr llvm::StringRef kOutputShardingAttr = "output_sharding_configuration"; // Parses the sharding string. This sharding string can be binary (serialized) // or human readable.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 22:18:34 UTC 2024 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc
namespace { constexpr StringRef kStablehloModuleAttrsAttrName = "_stablehlo_module_attrs"; constexpr StringRef kUsesShapePolymorphismAttr = "jax.uses_shape_polymorphism"; // Default version number for native serialization. constexpr int64_t kDefaultVersion = 9; // Platforms for XlaCallModuleOp. constexpr StringRef kPlatformCpu = "CPU"; constexpr StringRef kPlatformTpu = "TPU";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/examples/example_hardware.cc
#include "tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.h" #include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h" namespace mlir { namespace TFL { namespace tac { constexpr char ExampleHardware::kId[]; // Define kId. mlir::RewritePatternSet ExampleHardware::GetTransformations( MLIRContext* context) const { mlir::RewritePatternSet patterns(context);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 03:08:33 UTC 2023 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/xla_sharding_util_test.cc
#include "tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.h" #include <string> #include <gtest/gtest.h> #include "mlir/Support/LogicalResult.h" // from @llvm-project #include "xla/xla_data.pb.h" inline constexpr llvm::StringRef kXlaShardingAttrName = "_XlaSharding"; namespace tensorflow { namespace { TEST(DecodeShardingAttributeTest, CheckInvalidString) { xla::OpSharding sharding;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 1.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/common/subgraph.h
// both implement "func_1". // // The attribute on the FuncOp means what it actually implements while the // attribute on the CallOp means what it actually looks for. constexpr char kInterfaceNameAttr[] = "tac.interface_name"; inline std::optional<std::string> GetInterFaceName(Operation* op) { auto name_attr = op->getAttrOfType<StringAttr>(kInterfaceNameAttr); if (!name_attr) return std::nullopt;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 28 05:18:47 UTC 2023 - 1.8K bytes - Viewed (0) -
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/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc
using ::mlir::func::FuncOp; using ::tsl::Status; using ::tsl::StatusOr; using ::xla::ReplicaGroup; using ::xla::ShapeUtil; using ::xla::XlaBuilder; using ::xla::XlaComputation; using ::xla::XlaOp; static constexpr char kMlirModuleStr[] = R"( module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 1442 : i32}} {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 11.7K 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/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/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)