Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for while_v1 (1.98 sec)

  1. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/vhlo.mlir

    //CHECK-NEXT: return %0#0 : tensor<448xf32>
    //CHECK-NEXT:}
    
    func.func @while(%init_i: tensor<i64>, %init_sum: tensor<i64>) -> tensor<i64>{
      %0, %1 = "vhlo.while_v1"(%init_i, %init_sum) ({
        ^bb0(%arg0: tensor<i64>, %arg1: tensor<i64>):
          %cond = "vhlo.compare_v1"(%arg0, %arg1) {
            comparison_direction = #vhlo<comparison_direction_v1 LT>,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 31.9K bytes
    - Viewed (1)
  2. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

      for (auto extra_operand : extra_operands)
        new_types.push_back(extra_operand.getType());
    
      auto new_while_op = OpBuilder(while_op).create<WhileOp>(
          while_op.getLoc(), new_types, operands, while_op->getAttrs());
      new_while_op.getCond().takeBody(while_op.getCond());
      new_while_op.getBody().takeBody(while_op.getBody());
      while_op.replaceAllUsesWith(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

      for (int64_t i = 0; i < while_op.getNumResults(); ++i) {
        auto it = buffer_to_size->find(while_op.getOperand(i));
        if (it == buffer_to_size->end()) continue;
        new_while_operands.push_back(it->getSecond().size);
      }
      auto new_while = builder.create<TF::WhileRegionOp>(
          while_op.getLoc(), body_region.front().getTerminator()->getOperandTypes(),
          new_while_operands, while_op->getAttrs());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc

    }
    
    LogicalResult ConvertWhileOp(WhileOp while_op, bool allow_passthrough_args) {
      auto while_region = OpBuilder(while_op).create<TF::WhileRegionOp>(
          while_op.getLoc(), while_op.getResultTypes(), while_op.getInput(),
          while_op.getParallelIterations(), while_op.getIsStateless(),
          while_op.getShapeInvariant());
      CopyDeviceAndUnderscoredAttributes(while_op, while_region);
    
      YieldOp cond_yield =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/reduce_while_operands.cc

          id_map[i] = j++;
          new_operands.push_back(while_op.getOperand(i));
          new_result_types.push_back(while_op.getResultTypes()[i]);
        }
      }
    
      auto new_while_op = OpBuilder(while_op).create<WhileOp>(
          while_op.getLoc(), new_result_types, new_operands, while_op->getAttrs());
      new_while_op.getCond().takeBody(while_op.getCond());
      new_while_op.getBody().takeBody(while_op.getBody());
    
      for (auto i = 0; i < n; ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

          read_var->erase();
        } else if (auto while_op = dyn_cast<TF::WhileOp>(user_op)) {
          GetUpdatedWhileOp<TF::WhileOp>(
              while_op, while_op.cond_function().getArgumentTypes(), args_to_erase);
          while_op->erase();
        } else if (auto while_op = dyn_cast<TF::WhileRegionOp>(user_op)) {
          auto new_while_op = GetUpdatedWhileOp(
              while_op, while_op.getCond().getArgumentTypes(), args_to_erase);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc

      // Create the new while op.
      auto new_while_operands = llvm::to_vector<8>(while_op.getOperands());
      OpBuilder builder(while_op);
      assert(while_op.getNumOperands() == while_op.getNumResults());
      for (int64_t i = 0; i < while_op.getNumResults(); ++i) {
        auto it = data_var_to_size_var.find(while_op.getOperand(i));
        if (it == data_var_to_size_var.end()) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

    llvm::SmallVector<std::pair<int64_t, llvm::SmallVector<Value, 4>>, 4>
    AnnotateCompileOpAndGetExecuteArgToWhileArgsMapping(
        TF::WhileRegionOp while_op, tf_device::ReplicateOp replicate,
        TF::TPUExecuteAndUpdateVariablesOp execute,
        tf_device::LaunchOp compile_launch) {
      Region& body = while_op.getBody();
      Region& cond = while_op.getCond();
    
      llvm::SmallVector<std::pair<int64_t, llvm::SmallVector<Value, 4>>, 4> mapping;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

      for (int64_t i = 0; i < while_op.getNumOperands(); ++i) {
        if (ta_arg_buffer_type(i)) {
          while_op.getResult(i).replaceAllUsesWith(while_op.getOperand(i));
        } else {
          while_op.getResult(i).replaceAllUsesWith(new_while.getResult(i));
        }
      }
      while_op.erase();
      return success();
    }
    
    LogicalResult HandleIfOp(TF::IfOp if_op, ModuleOp module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

      auto loc = NameLoc::get(
          builder.getStringAttr("chain_control_outputs@" + while_op.getBody()));
      IslandOp const_wrapper = GetDummyConstant(builder, const_type, loc);
    
      // Get new operand and result types.
      auto new_operands = llvm::to_vector<4>(while_op->getOperands());
      auto new_result_types = llvm::to_vector<4>(while_op->getResultTypes());
      Value const_output = const_wrapper.getOutputs()[0];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
Back to top