Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 187 for GetBody (0.44 sec)

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

      launch.replaceAllUsesWith(launch.GetBody().getTerminator()->getOperands());
    
      // For all inner ops, assign the launch device as a `device` attribute.
      if (failed(AssignDevicesInRegion(tf_dialect, launch, launch.getBody())))
        return failure();
    
      // Move all inner ops of the launch to the block containing the launch.
      auto body = launch.GetBody().without_terminator();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

          /*controlInputs=*/island.getOperands());
      new_island.getBody().push_back(new Block);
    
      // Move the operations in the new island, gather the results of the new yield.
      Block& island_body = new_island.GetBody();
      SmallVector<Value, 16> yield_operands;
      for (IslandOp island : islands) {
        Operation& wrapped_op = island.GetBody().front();
        wrapped_op.moveBefore(&island_body, island_body.end());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

          convert.GetCompositeOpName());
      EXPECT_EQ(fused_lstm_func_.getNumArguments(), 5);
      EXPECT_EQ(fused_lstm_func_.getFunctionType().getNumResults(), 1);
    
      auto transpose_op = fused_lstm_func_.getBody().front().begin();
      transpose_op++;
      EXPECT_EQ(mlir::cast<RankedTensorType>(transpose_op->getOperand(0).getType())
                    .getDimSize(0),
                3);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_cluster_formation.cc

      auto cluster = builder.create<mlir::tf_device::ClusterOp>(
          call_op->getLoc(), call_op->getResultTypes());
      cluster.getBody().push_back(new Block);
      call_op->replaceAllUsesWith(cluster.getResults());
      call_op->moveBefore(&cluster.GetBody(), cluster.GetBody().end());
      builder.setInsertionPointToEnd(&cluster.GetBody());
      builder.create<mlir::tf_device::ReturnOp>(call_op->getLoc(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 19:09:44 UTC 2023
    - 6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

          new_while_op.getCond().takeBody(while_op.getCond());
          new_while_op.getBody().takeBody(while_op.getBody());
          llvm::BitVector erase_indices;
          UpdateTerminatorArguments(new_while_op.getBody(), args_to_erase,
                                    erase_indices);
          llvm::BitVector body_bit_vector(
              new_while_op.getBody().front().getNumArguments());
          for (auto i : args_to_erase) body_bit_vector.set(i);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util.cc

          loc, builder->getStringAttr(device), op->getResultTypes());
      launch.getBody().push_back(new mlir::Block);
    
      builder->setInsertionPointToEnd(&launch.GetBody());
      builder->create<mlir::tf_device::ReturnOp>(loc, op->getResults());
    
      // Move op inside cluster.
      op->moveBefore(launch.GetBody().getTerminator());
    
      builder->restoreInsertionPoint(insert_point);
    
      return launch;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 13 03:57:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/AbstractMacroFunction.java

            this.name = name;
            this.parameters = parameters;
        }
    
        @Override
        public String toString() {
            return "#define " + getName() + "(...) " + getBody();
        }
    
        protected String getBody() {
            return "=> ???";
        }
    
        @Override
        public String getName() {
            return name;
        }
    
        @Override
        public int getParameterCount() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      auto launch_op = builder.create<mlir::tf_device::LaunchOp>(
          loc_op->getLoc(), builder.getStringAttr(host_device),
          /*result_types=*/host_result_types);
    
      launch_op.getBody().push_back(new Block);
      builder.setInsertionPointToEnd(&launch_op.GetBody());
      builder.create<mlir::tf_device::ReturnOp>(loc_op->getLoc(),
                                                return_value_from_host);
      return launch_op;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc

        if (call.getOperation()->getNumOperands() !=
            f.getBody().front().getNumArguments()) {
          return failure();  // RemoteCall et al
        }
    
        rewriter.startOpModification(f);
        bool changed = false;
        for (auto [call_arg, body_arg] :
             llvm::zip(call.getOperation()->getOperands(),
                       f.getBody().front().getArguments())) {
          if (call_arg.getType() != body_arg.getType()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

      auto launch = builder->create<tf_device::LaunchOp>(
          before_op->getLoc(), builder->getStringAttr(host_device),
          launch_result_types);
      launch.getBody().push_back(launch_block);
    
      builder->setInsertionPointToEnd(&launch.GetBody());
      builder->create<tf_device::ReturnOp>(before_op->getLoc(), launch_results);
    
      return launch;
    }
    
    // Creates a new_launch after `before_op` with `ops_to_move` from
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top