Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetNumReplicatedBlockArguments (0.27 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

    unsigned ReplicateOp::GetNumPackedBlockArguments() {
      return getPackedInputs().size();
    }
    
    // Returns the number of replicated block arguments.
    unsigned ReplicateOp::GetNumReplicatedBlockArguments() {
      return GetBody().getNumArguments() - GetNumPackedBlockArguments();
    }
    
    // Returns the replicated block arguments. A copy should be made if the
    // replicate op is being modified.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

      llvm::SmallVector<Value, 8> new_packed_inputs;
      llvm::SmallVector<llvm::SmallVector<Value, 8>, 8> replicated_inputs;
      replicated_inputs.reserve(replicate.GetNumReplicatedBlockArguments());
      new_packed_inputs.reserve(replicate.GetNumPackedBlockArguments());
      for (const auto& arg : replicate.GetReplicatedBlockArguments()) {
        replicated_inputs.emplace_back();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

               << ") to append to replicate to be num_replicas ("
               << replicate.getN() << ")";
      }
    
      // add block arg to region. This is in $body.
      unsigned block_arg_idx = replicate.GetNumReplicatedBlockArguments();
      Block& block = replicate.GetBody();
      block_arg = block.insertArgument(block_arg_idx, type, replicate.getLoc());
    
      // add to $replicated_inputs. This also updates OperandSegmentSizeAttr.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td

      );
    
      let regions = (region SizedRegion<1>:$body);
    
      let extraClassDeclaration = [{
        Block &GetBody() { return getOperation()->getRegion(0).front(); }
        unsigned GetNumReplicatedBlockArguments();
        unsigned GetNumPackedBlockArguments();
        llvm::ArrayRef<BlockArgument> GetPackedBlockArguments();
        llvm::ArrayRef<BlockArgument> GetReplicatedBlockArguments();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 23:53:20 UTC 2024
    - 14.8K bytes
    - Viewed (0)
Back to top