Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 118 for output_types (0.21 sec)

  1. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

      auto output_types = fused_lstm_func_.getFunctionType().getResults();
      SmallVector<int64_t, 2> output_shape{1, mlir::ShapedType::kDynamic};
      EXPECT_EQ(mlir::cast<RankedTensorType>(output_types[0]).getShape().size(),
                output_shape.size());
      for (int i = 0; i < output_shape.size(); i++) {
        EXPECT_EQ(mlir::cast<RankedTensorType>(output_types[0]).getDimSize(i),
                  output_shape[i]);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h

          }
    
          // Collect all the quantized outputs and replace them by the results of
          // the new quantized op.
          llvm::SmallDenseMap<Value, int> outputs_replaced;
          SmallVector<Type, 4> output_types;
          output_types.reserve(candidate_op->getNumResults());
          for (const auto& enumerated_result :
               llvm::enumerate(candidate_op->getResults())) {
            Value result = enumerated_result.value();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

    // (inclusive) to `end` index region (exclusive) to `output_types` and returns
    // the number of types added.
    int AppendTypes(llvm::SmallVectorImpl<Type>* output_types,
                    tf_device::ParallelExecuteOp parallel_execute, int start,
                    int end) {
      const int size_before = output_types->size();
      for (int index = start; index < end; ++index) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

                                      SmallVectorImpl<Type>* output_types) const;
    
      // Creates the TF op and also the necessary tfr.cast ops to replace the
      // original TFR call op.
      LogicalResult CreateAndReplaceOp(
          PatternRewriter& rewriter, CallOp call_op,
          const SmallVectorImpl<Type>& output_types,
          const SmallVectorImpl<Value>& inputs, const NamedAttrList& attr_list,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

                                         const StringRef func_name,
                                         const TypeRange output_types,
                                         const ValueRange args) {
      TF::PartitionedCallOp call_op = builder.create<TF::PartitionedCallOp>(
          location, output_types, args,
          FlatSymbolRefAttr::get(builder.getStringAttr(func_name)),
          /*config=*/"", /*config_proto=*/"", /*executor_type=*/"");
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

          Value dequantized_result = dequantize_op.getInput();
          output_types.push_back(dequantized_result.getType());
          terminator->setOperand(i, dequantized_result);
          returned_op->erase();
        } else {
          output_types.push_back(returned_value.getType());
        }
      }
      auto new_func_type = builder.getFunctionType(input_types, output_types);
      func.setType(new_func_type);
    }
    
    enum RemoveVolatileOpsType {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/encapsulate_xla_computations_pass.cc

        }
    
        // Outputs.
        const int num_outputs = launch->output_types().size();
        absl::flat_hash_set<Node*> control_outputs;
        std::vector<std::vector<std::pair<Node*, int>>> data_outputs(num_outputs);
        const DataTypeVector& output_types(launch->output_types());
    
        for (const Edge* le : launch->out_edges()) {
          if (le->IsControlEdge()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

          size_of_splits = dim / splits;
          output_shape.push_back(size_of_splits);
        } else {
          output_shape.push_back(dim);
        }
      }
    
      SmallVector<mlir::Type, 4> output_types;
      for (int i = 0; i < splits; ++i) {
        output_types.push_back(
            mlir::RankedTensorType::get(output_shape, input_type.getElementType()));
      }
      auto size_of_splits_op = Create1DConstantOp(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc

          shape[split_dimension] = shape[split_dimension] / num_split;
          output_type =
              mlir::RankedTensorType::get(shape, input_type.getElementType());
        }
      } else {
        output_type = input_type;
      }
    
      // Creates a split op that splits |src_input| along |split_dimension|.
      llvm::SmallVector<mlir::Type, 4> output_types(num_split, output_type);
      *split_op = builder->create<mlir::TF::SplitOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:28:13 UTC 2024
    - 34K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

          }
    
          // Collect all the quantized outputs and replace them by the results of
          // the new quantized op.
          llvm::SmallDenseMap<Value, int> outputs_replaced;
          SmallVector<Type, 4> output_types;
          output_types.reserve(quantizing_op->getNumResults());
          for (const auto& enumerated_result :
               llvm::enumerate(quantizing_op->getResults())) {
            Value result = enumerated_result.value();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
Back to top