Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for new_operands (0.17 sec)

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

      // 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];
      for (int i = 0; i < num_resource_inputs; ++i) {
        new_operands.push_back(const_output);
        new_result_types.push_back(const_output.getType());
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      builder.setInsertionPoint(call);
      auto new_operands = llvm::to_vector(call.getArgOperands());
      new_operands.push_back(token);
      auto new_result_types = llvm::to_vector(call.getResultTypes());
      new_result_types.push_back(token.getType());
      auto new_call = builder.create<func::CallOp>(
          call.getLoc(), new_result_types,
          new_symbol ? *new_symbol : call.getCallee(), new_operands);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/deadness_analysis.cc

          std::vector<Predicate*> new_operands;
          absl::c_transform(pred->GetOperands(), std::back_inserter(new_operands),
                            [&](Predicate* p) { return MakeNotPredicate(p); });
          return kind == Predicate::Kind::kOr ? MakeAndPredicate(new_operands)
                                              : MakeOrPredicate(new_operands);
        }
    
        return nullptr;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 60.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h

    SmallVector<Value> CloneOpWithReplacedOperands(OpBuilder& builder,
                                                   Operation* op,
                                                   ArrayRef<Value> new_operands);
    
    // Tries casting `op` with a concrete op type `T`. If the cast fails or `op` is
    // a `nullptr`, returns `failure` and prints a debugging message identifying
    // the cast attempt as `name`.
    template <typename T>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

          }
        }
    
        // The While ops operands and result types need to match
        SmallVector<Value, 4> new_operands;
        SmallVector<Value, 4> new_body_yield;
        SmallVector<bool, 4> removed_operand(while_op.getNumOperands(), false);
        llvm::SmallVector<Type, 4> types;
        new_operands.reserve(while_op.getNumOperands());
        new_body_yield.reserve(while_op.getNumOperands());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/decompose_hybrid_quantization.cc

        Location loc = op->getLoc();
        SmallVector<Value> newOperands;
        newOperands.reserve(op->getNumOperands());
        for (auto operand : op->getOperands()) {
          if (QuantizedType::getQuantizedElementType(operand.getType())) {
            auto newTy = QuantizedType::castToExpressedType(operand.getType());
            newOperands.push_back(
                rewriter.create<TFL::DequantizeOp>(loc, newTy, operand));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

      for (int i = 0; i < op->getNumOperands(); ++i) {
        auto operand = op->getOperand(i);
        auto new_operand = converter.materializeArgumentConversion(
            rewriter, op->getLoc(), converter.convertType(operand.getType()),
            {operand});
        op->setOperand(i, new_operand);
      }
    }
    
    // vhlo.op %1 : vhlo.tensor<...>
    //   ==>
    // vhlo.op %1 : tensor<...>
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_ops.td

      }];
      let arguments = (ins
        Variadic<TF_Tensor>:$operands_and_static_shapes,
        DenseI32ArrayAttr:$constant_operand_indices,
        StrAttr:$metadata,
        StrAttr:$mlir_module,
        UI32Attr:$num_operands,
        DenseI32ArrayAttr:$operands_with_static_shape,
        StrAttr:$producer_name
      );
    
      let results = (outs
        TF_Tensor:$rendezvous_key_base,
        Variadic<TF_Tensor>:$results
      );
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:35:32 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc

    // number or a zero, it is returned as it is. If it is a negative number, it
    // means it is counting backwards and will return the zero-based operand index
    // for `op`.
    //
    // `operand_idx` should be within the range: [-num_operands, num_operands - 1].
    int EvaluateOperandIdx(const int operand_idx, Operation& op) {
      if (operand_idx < 0) {
        // Calculate the actual index if a negative value is provided for
        // `operand_idx`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

          return InvalidArgument(
              "Capturing tensors from other context is not supported.");
        ret_operands.push_back(operand->getValue());
      }
      builder_.create<func::ReturnOp>(func_.getLoc(), ret_operands);
    
      auto arg_types = body.getArgumentTypes();
      auto result_types = body.getTerminator()->getOperandTypes();
      func_.setType(FunctionType::get(func_.getContext(), arg_types, result_types));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
Back to top