Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 94 for modulemap (0.44 sec)

  1. tensorflow/compiler/mlir/lite/tf_tfl_translate.cc

        } else if (hlo_import_type == HloImportType::proto) {
          module = xla::HloToMlirHloTranslateFunction(content, &context, false);
        } else {
          module = mlir::OwningOpRef<mlir::ModuleOp>(
              mlir::parseSourceString<mlir::ModuleOp>(content, &context));
        }
      } else {
        // Graphdef import path.
        module = tensorflow::LoadFromGraphdefOrMlirSource(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 14K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

          }
        }
        return WalkResult::advance();
      });
    
      return success();
    }
    
    void XlaBroadcast::runOnOperation() {
      FuncOp func = getOperation();
      mlir::ModuleOp module = func->getParentOfType<mlir::ModuleOp>();
      if (!module) return signalPassFailure();
      func.walk([&](ClusterOp cluster) {
        if (auto replicate = cluster->getParentOfType<ReplicateOp>()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc

      XlaComputation computation = GetTestXlaComputation();
    
      TF_ASSERT_OK_AND_ASSIGN(TupleOp root_tuple,
                              ImportXlaComputationIntoModule(computation));
    
      ModuleOp parent_module =
          root_tuple.getOperation()->getParentOfType<ModuleOp>();
      EXPECT_EQ(parent_module, *module_);
    }
    
    TEST_F(Tf2XlaRewriterTest, FailsWithoutRootTuple) {
      TF_ASSERT_OK(CreateMlirModule());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc

      }
    
      void removeAttrMapAttribute(TF::PartitionedCallOp call_op,
                                  StringRef function_name,
                                  StringRef error_message) const {
        ModuleOp module = call_op->getParentOfType<ModuleOp>();
        SymbolTable symbol_table(module);
        mlir::func::FuncOp composite_func =
            dyn_cast<func::FuncOp>(symbol_table.lookup(function_name));
        if (!composite_func) return;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/passes/decompose.cc

    class DecomposeTFOpsPass
        : public PassWrapper<DecomposeTFOpsPass, OperationPass<func::FuncOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(DecomposeTFOpsPass)
    
      explicit DecomposeTFOpsPass(std::optional<ModuleOp> external_tfr_module)
          : external_tfr_module_(external_tfr_module) {}
    
      StringRef getArgument() const final { return "tfr-decompose"; }
    
      StringRef getDescription() const final {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc

                                             std::string* tpu0_device) {
      // Fetch the TPU devices.
      mlir::ModuleOp moduleOp = op->getParentOfType<mlir::ModuleOp>();
      mlir::TF::RuntimeDevices devices;
      if (failed(tensorflow::GetDevicesFromOp(moduleOp, &devices)))
        return moduleOp.emitOpError() << "No available devices.";
      llvm::ArrayRef<tensorflow::DeviceNameUtils::ParsedName> device_names =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:10:40 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/clustering_passes.td

        that the device attribute exists.
      }];
    
      let constructor = "tensorflow::tf2xla::internal::CreateVerifyClusteringPass()";
    }
    
    def TPUClusterFormationPass : Pass<"tf-tpu-cluster-formation", "ModuleOp"> {
      let summary = "Forms clusters from operations assigned to the same TPU computation";
    
      let description = [{
        TPU computations from the frontend are composed of a `tf.TPUReplicateMetadata`
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc

      });
      if (result.wasInterrupted()) return signalPassFailure();
    }
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateTFFunctionalControlFlowToRegions() {
      return std::make_unique<FunctionalControlFlowToRegions>();
    }
    std::unique_ptr<OperationPass<ModuleOp>> CreateTFFunctionalControlFlowToRegions(
        bool allow_passthrough_args) {
      return std::make_unique<FunctionalControlFlowToRegions>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

      ModuleOp module = entry_func->getParentOfType<ModuleOp>();
      SymbolTable entry_module_table(module);
      llvm::SmallVector<func::FuncOp, 4> referenced({entry_func});
    
      // Create a new module to hold func and all referenced functions.
      OwningOpRef<mlir::ModuleOp> module_for_func =
          ModuleOp::create(mlir::UnknownLoc::get(entry_func.getContext()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

      // fixed_size).
      llvm::SmallVector<std::tuple<int64_t, int64_t, bool>, 8>
          buffer_ret_to_size_ret;
    };
    
    LogicalResult DecomposeTensorListOpsInternal(
        Block*, ModuleOp, llvm::SmallDenseMap<Value, SizeInfo>*,
        llvm::StringMap<PartitionedCallDecompositionInfo>*);
    
    // Adds the corresponding sizes of tensor list buffers in block's terminator
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
Back to top