Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for constexpr (0.2 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

    using ::tensorflow::Session;
    using ::tensorflow::Status;
    using ::tensorflow::StatusOr;
    using ::tensorflow::Tensor;
    using ::tensorflow::Var;
    
    namespace {
    
    constexpr char kResourceNameArgAttr[] = "tf.resource_name";
    constexpr char kSavedModelArgAttr[] = "tf_saved_model.bound_input";
    
    LogicalResult LiftVariablesFromSession(
        ModuleOp module, Session* session,
        const SmallSet<StringRef, 4>& resource_names) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/string_utils.h

    #define TENSORFLOW_COMPILER_MLIR_LITE_UTILS_STRING_UTILS_H_
    
    #include <stdint.h>
    
    #include <cstddef>
    #include <limits>
    #include <vector>
    
    #include "absl/status/status.h"
    
    namespace mlir::TFL {
    
    constexpr uint64_t kDefaultMaxLength = std::numeric_limits<int>::max();
    
    class MiniDynamicBuffer {
     public:
      explicit MiniDynamicBuffer(size_t max_length = kDefaultMaxLength)
          : offset_({0}), max_length_(max_length) {}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v1/cluster_tf_test.cc

    namespace v1 {
    namespace {
    
    using ::mlir::DialectRegistry;
    using ::mlir::MLIRContext;
    using ::mlir::ModuleOp;
    using ::mlir::OwningOpRef;
    using ::tensorflow::monitoring::testing::CellReader;
    
    static constexpr char kCompilationStreamz[] =
        "/tensorflow/core/tf_mlir_bridge_first_phase_v2_count";
    
    std::string TestDataPath() {
      return tensorflow::GetDataDependencyFilepath(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:44:37 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tf2xla/api/v2/cluster_tf_test.cc

    using ::tensorflow::monitoring::testing::CellReader;
    
    std::string TestDataPath() {
      return tensorflow::GetDataDependencyFilepath(
          "tensorflow/compiler/mlir/tf2xla/api/v2/testdata/");
    }
    
    static constexpr char kCompilationStreamz[] =
        "/tensorflow/core/tf_mlir_bridge_first_phase_v2_count";
    
    class FunctionClusterTensorflowDialectTest : public ::testing::Test {
     public:
      FunctionClusterTensorflowDialectTest() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:44:37 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.h

    class CalibrationComponent : public Component {
     public:
      // Name of the post-training quantization post-calibration step. Used for
      // debugging purposes.
      static constexpr absl::string_view kName = "quant_ptq_calibration";
    
      // `CalibrationComponent` ctor with necessary information required to run
      // calibration on a `ModuleOp`. Meta information like `function_aliases`,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/lower_cluster_to_runtime_ops_test.cc

    using tsl::DeviceType;
    
    std::string TestDataPath() {
      return tensorflow::GetDataDependencyFilepath(
          "tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/testdata/");
    }
    
    static constexpr char kCompilationStreamz[] =
        "/tensorflow/core/tf_mlir_bridge_first_phase_v2_count";
    
    class LowerClusterToRuntimeOpsTest : public ::testing::Test {
     public:
      LowerClusterToRuntimeOpsTest() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:44:37 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc

          llvm::ArrayRef<mlir::Value>{var_handle_op_in_init->getResult(0),
                                      const_op.getResult()});
    }
    
    func::FuncOp CreateSessionInitFunc(ModuleOp module) {
      constexpr char kSessionInitFuncName[] = "SessionInitializerFunction";
    
      mlir::OpBuilder builder(module.getBodyRegion());
      auto func_type =
          FunctionType::get(module.getContext(), /*inputs=*/{}, /*results=*/{});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.h"
    #include "tensorflow/compiler/mlir/tensorflow/translate/import_model.h"
    
    namespace mlir {
    namespace quant {
    namespace {
    
    constexpr StringRef kSharedNameAttr = "shared_name";
    
    class LiftHashTableOpsAsArgsPass
        : public PassWrapper<LiftHashTableOpsAsArgsPass, OperationPass<ModuleOp>> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config_test.cc

    #include "tsl/lib/core/status_test_util.h"
    #include "tsl/platform/status.h"
    #include "tsl/platform/statusor.h"
    
    namespace mlir {
    namespace mhlo {
    
    using func::FuncOp;
    using mlir::ModuleOp;
    
    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 30 03:31:01 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top