Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 330 for constexpr (0.16 sec)

  1. 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)
  2. tensorflow/cc/experimental/libtf/tests/runtime_test.cc

    namespace tf {
    namespace libtf {
    namespace runtime {
    
    using ::tensorflow::testing::StatusIs;
    using ::testing::HasSubstr;
    using ::tf::libtf::impl::TaggedValueTensor;
    
    constexpr char kSimpleModel[] =
        "tensorflow/cc/experimental/libtf/tests/testdata/simple-model";
    
    TEST_P(RuntimeTest, SimpleModelCallableFloatTest) {
      Runtime runtime = RuntimeTest::GetParam()();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 09 12:27:54 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_mlir_test.cc

    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    namespace {
    
    using tpu::MlirToHloArgs;
    using tpu::ShardingAndIndex;
    using tpu::TPUCompileMetadataProto;
    
    static constexpr char kMlirModuleStr[] = R"(
      module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} {
        func.func @main() -> tensor<1xi32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/mlir_pass_instrumentation_test.cc

    };
    
    TEST_F(TestPassInstrumentation, CreatedCalledAndSetsPassName) {
      RegisterPassInstrumentor(kTestInstrumentationName, [&]() {
        return std::make_unique<TestInstrumentor>(this);
      });
      constexpr char legalization[] = R"(
      module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 19 22:54:26 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. tensorflow/cc/saved_model/experimental/tests/saved_model_api_test.cc

    
    namespace {
    
    using tensorflow::experimental::cc::Runtime;
    using tensorflow::experimental::cc::RuntimeBuilder;
    using tensorflow::experimental::cc::SavedModelAPI;
    using tensorflow::experimental::cc::Status;
    
    constexpr char kTestData[] = "cc/saved_model/testdata";
    
    std::string SavedModelPath(tensorflow::StringPiece saved_model_dir) {
      return tensorflow::io::JoinPath(tensorflow::testing::TensorFlowSrcRoot(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jul 14 23:59:14 UTC 2020
    - 3.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_inline_tpu_island.cc

    #include "tensorflow/compiler/mlir/tensorflow/utils/error_util.h"
    
    #define DEBUG_TYPE "tf-executor-tpu-v1-island-inlining"
    
    namespace mlir {
    namespace tf_executor {
    
    namespace {
    constexpr llvm::StringRef kNestedModule = "_tpu_v1_compat_outlined";
    
    #define GEN_PASS_DEF_EXECUTORTPUV1ISLANDINLININGPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/tf2xla/internal/utils/test_metadata_config.cc

    #include "tensorflow/core/protobuf/tpu/compile_metadata.pb.h"
    #include "tsl/platform/errors.h"
    
    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    namespace {
    
    constexpr char kEntryFuncName[] = "main";
    
    absl::Status SetupArguments(mlir::ModuleOp module,
                                std::vector<TensorShape>& arg_shapes,
                                tpu::TPUCompileMetadataProto& metadata_proto) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top