Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for WrapOpInLaunch (0.65 sec)

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

              TPUColocateCompositeResourceOps> {
      void runOnOperation() override;
    };
    
    // Wraps single op in `tf_device.launch` for explicit device assignment.
    void WrapOpInLaunch(OpBuilder* builder, Location loc, Operation* op,
                        llvm::StringRef device) {
      builder->setInsertionPoint(op);
      auto launch = builder->create<tf_device::LaunchOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 17:41:12 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/device_attribute_to_launch.cc

    struct DeviceAttributeToLaunch
        : public impl::DeviceAttributeToLaunchPassBase<DeviceAttributeToLaunch> {
      void runOnOperation() override;
    };
    
    void WrapOpInLaunch(Operation* op, llvm::StringRef device) {
      OpBuilder builder(op);
    
      auto launch_op = builder.create<tf_device::LaunchOp>(
          op->getLoc(), builder.getStringAttr(device),
          /*result_types=*/op->getResultTypes());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 00:59:46 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util_test.cc

      mlir::OpBuilder builder(&context);
      auto loc = cluster->getLoc();
    
      // Wrap the cluster op into a Launch op
      auto launch_op = tensorflow::WrapOpInLaunch(&builder, loc, cluster, device);
    
      EXPECT_TRUE(llvm::isa<mlir::tf_device::LaunchOp>(launch_op));
      launch_op->erase();
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util.h

        mlir::tf_device::ParallelExecuteOp old_parallel_execute,
        mlir::tf_device::ParallelExecuteOp* new_parallel_execute);
    
    // Wraps single op in `tf_device.launch` for explicit device assignment.
    mlir::tf_device::LaunchOp WrapOpInLaunch(mlir::OpBuilder* builder,
                                             mlir::Location loc,
                                             mlir::Operation* op,
                                             llvm::StringRef device);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util.cc

        new_parallel_execute->getRegions()[new_idx].takeBody(
            old_parallel_execute.getRegions()[old_idx]);
      }
    
      return cluster_idx;
    }
    
    mlir::tf_device::LaunchOp WrapOpInLaunch(mlir::OpBuilder* builder,
                                             mlir::Location loc,
                                             mlir::Operation* op,
                                             llvm::StringRef device) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 13 03:57:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

                    builder->getStringAttr(GetRandomStateVariableName()))}));
      }
      return state_vars;
    }
    
    // Wraps single op in `tf_device.launch` for explicit device assignment.
    void WrapOpInLaunch(OpBuilder* builder, Location loc, Operation* op,
                        llvm::StringRef device) {
      OpBuilder::InsertPoint insert_point = builder->saveInsertionPoint();
    
      auto launch = builder->create<tf_device::LaunchOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

          /*compilation_status=*/compilation_status_type, /*program=*/
          llvm::SmallVector<Type, 8>(num_cores_per_replica, program_type),
          compile_op_operands, txt_module, txt_metadata);
    
      return tensorflow::WrapOpInLaunch(builder, compile_op.getLoc(), compile_op,
                                        compilation_device);
    }
    
    // Assigns explicit devices to replicate op. An aliased device is created per
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

                           before_cluster_builder.getBoolAttr(true));
      std::string device = tensorflow::GetDeviceAliasForHostOfLogicalCore(0);
      LaunchOp launch = tensorflow::WrapOpInLaunch(
          &before_cluster_builder, val_bcast.getLoc(), assigned_id, device);
    
      Value all_reduce =
          CreateAllReduce(replicate, inner_builder, launch.getResult(0));
    
      orig_to_new[val_bcast] = all_reduce;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top