Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for GetMlirModuleFromString (0.31 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util_test.cc

    #include "tensorflow/core/protobuf/tpu/topology.pb.h"
    #include "tensorflow/core/util/device_name_utils.h"
    
    namespace tensorflow {
    namespace {
    
    absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> GetMlirModuleFromString(
        llvm::StringRef string, mlir::MLIRContext* context) {
      mlir::DialectRegistry mlir_registry;
      RegisterAllTensorFlowDialects(mlir_registry);
      context->appendDialectRegistry(mlir_registry);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config_test.cc

      }
    })";
    
    class LegalizationOpConfigTest : public ::testing::Test {
     public:
      absl::Status CreateMlirModule(std::string module_string = kMlirModuleStr) {
        TF_ASSIGN_OR_RETURN(
            module_, test::GetMlirModuleFromString(module_string, &context_));
    
        context_.loadAllAvailableDialects();
        return absl::OkStatus();
      }
    
      absl::StatusOr<FuncOp> GetMain() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 30 03:31:01 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc

        tensorflow::XlaOpRegistry::RegisterCompilationKernels();
      }
    
      Status CreateMlirModule(std::string module_string = kMlirModuleStr) {
        TF_ASSIGN_OR_RETURN(
            module_, test::GetMlirModuleFromString(module_string, &context_));
    
        context_.loadAllAvailableDialects();
        return absl::OkStatus();
      }
    
      Status LegalizeSingleOp(Operation& op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top