Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DeserializeMlirModule (0.49 sec)

  1. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.cc

      mlir::RegisterAllTensorFlowDialects(registry);
      mlir::mhlo::registerAllMhloDialects(registry);
      mlir::MLIRContext context(registry);
    
      mlir::OwningOpRef<mlir::ModuleOp> mlir_module;
      TF_RETURN_IF_ERROR(DeserializeMlirModule(mlir_computation.mlir_module,
                                               &context, &mlir_module));
      if (!mlir::SetTPUInfeedLayout(mlir_module))
        return errors::Internal("Failed to set layouts attribute");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 14K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/tf_xla_mlir_translate.cc

      mlir::DialectRegistry registry;
      RegisterMlirInputDialects(registry);
      context->appendDialectRegistry(registry);
      mlir::OwningOpRef<mlir::ModuleOp> module_ref;
      auto status =
          DeserializeMlirModule(str_attr.getValue().str(), context, &module_ref);
      if (!status.ok()) {
        LOG(ERROR) << status;
        return nullptr;
      }
    
      return module_ref;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util_test.cc

      mlir::DialectRegistry mlir_registry;
      RegisterAllTensorFlowDialects(mlir_registry);
      context->appendDialectRegistry(mlir_registry);
      mlir::OwningOpRef<mlir::ModuleOp> mlir_module;
      auto status =
          tensorflow::DeserializeMlirModule(string, context, &mlir_module);
      if (!status.ok()) {
        return status;
      }
      return mlir_module;
    }
    
    using Device = DeviceNameUtils::ParsedName;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

      mlir::DialectRegistry mlir_registry;
      RegisterDialects(mlir_registry);
      mlir::MLIRContext mlir_context(mlir_registry);
      mlir::OwningOpRef<mlir::ModuleOp> mlir_module;
    
      TF_RETURN_IF_ERROR(
          DeserializeMlirModule(mlir_module_string, &mlir_context, &mlir_module));
      llvm::SmallVector<TensorOrResourceShape, 4> tensor_or_resource_shapes;
      tensor_or_resource_shapes.reserve(arg_shapes.size());
      for (const auto& arg_shape : arg_shapes)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
Back to top