Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 224 for SmallVector (0.11 sec)

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

      }
    
      return op->emitError() << "unknown tf_saved_model dialect attribute '"
                             << named_attr.getName().getValue() << "'";
    }
    
    SmallVector<StringRef, 2> GetExportedNames(Operation *op) {
      SmallVector<StringRef, 2> ret;
      auto exported_names =
          op->getAttrOfType<ArrayAttr>(kTfSavedModelExportedNamesAttr);
      if (exported_names) {
        for (auto name : exported_names) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc

      const auto result_shape = result_type.getShape();
      // Index for the broadcasted matrix.
      llvm::SmallVector<int64_t, 16> current_index(result_type.getRank(), 0);
      // Computes the new operand shape using the original shape and the broadcast
      // dimensions to match result shape.
      llvm::SmallVector<int64_t, 16> operand_new_shape(result_type.getRank(), 1);
      for (int i = 0; i < dimensions.size(); ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

        SmallVector<int64_t, 4> input_shape_extended;
        input_shape_extended.append(broadcast_shape.size() - input_shape.size(), 1);
        input_shape_extended.append(input_shape.begin(), input_shape.end());
    
        // Collect non-unit dims and corresponding dim in the input shape.
        SmallVector<int64_t, 4> input_carryover_dims;
        SmallVector<int64_t, 4> non_unit_dims;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/remove_vars_in_session_initializer.cc

    limitations under the License.
    ==============================================================================*/
    
    #include <algorithm>
    #include <memory>
    #include <vector>
    
    #include "llvm/ADT/SmallVector.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/IR/UseDefLists.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/decompose_hybrid_quantization.cc

        // This occurs when doing qi16 convolution, as bias is passed as a
        // non-quantized int64
        if (allTypesFp || allTypesQuantizedOrInt) return failure();
    
        Location loc = op->getLoc();
        SmallVector<Value> newOperands;
        newOperands.reserve(op->getNumOperands());
        for (auto operand : op->getOperands()) {
          if (QuantizedType::getQuantizedElementType(operand.getType())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

      ArrayRef<int64_t> filter_shape = filter_value_attr.getShapedType().getShape();
      SmallVector<int8_t> filter_constant_values{
          filter_value_attr.getValues<int8_t>()};
      SmallVector<int8_t> new_filter_constant_values(filter_constant_values.size(),
                                                     0);
      SmallVector<int64_t, 4> transpose_dims;
      if (is_depthwise) {
        transpose_dims = {2, 0, 1, 3};
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

      // Parse optional argument list (control dependencies only).
      SmallVector<OpAsmParser::UnresolvedOperand, 4> op_infos;
      if (parser.parseOperandList(op_infos, OpAsmParser::Delimiter::OptionalParen))
        return failure();
      if (!op_infos.empty()) {
        SmallVector<Type, 2> types(op_infos.size(), control_type);
        if (parser.resolveOperands(op_infos, types, loc, result.operands))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

        getUsedValuesDefinedAbove(island_op.getBody(), operands);
    
        SmallVector<Type, 16> func_operand_types;
        func_operand_types.reserve(operands.size());
        for (Value operand : operands)
          func_operand_types.push_back(operand.getType());
    
        // Function results are the yield operands
        SmallVector<Type, 16> func_result_types;
        for (Value operand : island_op.GetYield().getOperands())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc

      auto return_operands = llvm::to_vector<4>(return_op.getOperands());
      auto result_types = llvm::to_vector<4>(return_op.getOperandTypes());
      llvm::SmallVector<std::pair<int64_t, llvm::StringRef>, 4>
          output_only_resources;
      llvm::SmallVector<std::pair<int64_t, int64_t>, 4> input_output_alias;
    
      // Collect new return values for variable writes and either (a) output-only
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h

    // their associated host CPU devices (for outside compilation). They are ordered
    // by `num_replicas` followed by `num_cores_per_replica`.
    using TPUDevicesAndHosts =
        llvm::SmallVector<llvm::SmallVector<TPUDeviceAndHost, 8>, 8>;
    
    // TPU compilation device, execution and associated host devices, and optionally
    // execution device IDs. Execution device IDs are populated if `topology` and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top