Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TPUCopyWithDynamicShapeOp (0.29 sec)

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

      return value.getDefiningOp();
    }
    
    // Check if the TPUCopyWithDynamicShapeOp is valid.
    // 1. The op should be wrapped inside a launch op.
    // 2. The wrapped launch op should be placed on CPU.
    LogicalResult CheckOpIsValid(Operation* op) {
      auto launch_op = llvm::dyn_cast<tf_device::LaunchOp>(op->getParentOp());
      if (!launch_op) {
        op->emitError() << "TPUCopyWithDynamicShapeOp is not in a launch";
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/colocate_tpu_copy_with_dynamic_shape.cc

      solver.load<dataflow::SparseConstantPropagation>();
      solver.load<DeviceDataflowAnalysis>(symbolTables);
      if (failed(solver.initializeAndRun(module))) return signalPassFailure();
    
      module->walk([&](TF::TPUCopyWithDynamicShapeOp op) {
        const Device *state;
        for (auto result : op->getResults()) {
          state = solver.lookupState<Device>(result);
          if (state) break;
        }
        if (!state || !state->hasDevice()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 23 00:30:27 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top