Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 181 for SmallVector (0.33 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_save_op.cc

    // `tf.AssignVariableOp`s and `tf.Const`s. Collects and returns the
    // `tf.VarHandleOp`s that are initialized by these `tf.AssignVariableOp`s.
    SmallVector<TF::VarHandleOp> CollectVariableOps(
        func::FuncOp session_init_func) {
      SmallVector<TF::VarHandleOp> var_handle_ops{};
    
      for (auto assign_variable_op : llvm::make_early_inc_range(
               session_init_func.getOps<TF::AssignVariableOp>())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/lstm_utils.h

      Value output_layer_norm_coefficients_;
    
      mlir::TFL::LSTMOp lstm_;
    
      Value none_;
      SmallVector<int64_t, 1> bias_slice_shape_;
      SmallVector<int64_t, 1> bias_size_values_;
      SmallVector<int64_t, 2> weight_slice_shape_;
      SmallVector<int64_t, 2> weight_slice_size_input_values_;
      SmallVector<int64_t, 2> weight_slice_size_recurrent_values_;
      OpBuilder builder_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference_pass.cc

          : input_shapes_(input_shapes) {}
      void runOnOperation() override {
        // Parse `input_arg_shapes_` if provided (test only)
        SmallVector<ArrayRef<int64_t>> input_shapes_vec;
        absl::StatusOr<SmallVector<SmallVector<int64_t>>> parsed_shapes;
        if (!input_arg_shapes_.empty()) {
          parsed_shapes = ParseArgumentShapes(input_arg_shapes_);
          if (!parsed_shapes.ok()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.h

        mlir::OpBuilder* builder,
        llvm::SmallVectorImpl<llvm::SmallVector<mlir::Value, 4>>* input_list);
    
    // Extracts a list of OpSharding that represent output sharding configuration of
    // `tf_device.cluster`.
    mlir::LogicalResult ParseAndValidateOutputSharding(
        int num_cores_per_replica, mlir::tf_device::ClusterFuncOp cluster_func,
        mlir::SmallVector<xla::OpSharding, 4>* output_sharding_list);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 22:18:34 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/cc/permutation.h

    #include <type_traits>
    
    #include "llvm/ADT/ArrayRef.h"  // IWYU pragma: keep; required to include the definition of ArrayRef
    #include "llvm/ADT/STLExtras.h"
    #include "llvm/ADT/SmallVector.h"  // IWYU pragma: keep; required to include the definition of SmallVector
    #include "mlir/Support/LLVM.h"  // from @llvm-project
    
    namespace mlir::quant {
    
    // Permutes `values` with `permutation`. Returns the permuted values. Sizes of
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 00:14:00 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/fold_constant_transpose.cc

      SmallVector<float> TransposeValues(const ArrayRef<float> values) const {
        SmallVector<float> transposed_values(values.size());
        SmallVector<int64_t> current_indices = {};
        TransposeRecursively(values, transposed_values, current_indices);
    
        return transposed_values;
      }
    
      // Returns the shape after permutation.
      SmallVector<int64_t> GetTargetShape() const { return target_shape_; }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/xla_validate_inputs.cc

      void runOnOperation() override;
    };
    
    LogicalResult HasNoNestedEntryFunctions(
        const llvm::SmallVector<func::FuncOp> &entry_funcs, SymbolTable &symtab) {
      auto calls_entry_functions = [&](SymbolUserOpInterface op) {
        llvm::SmallVector<func::FuncOp> callees;
        if (GetCallees(op, symtab, callees).failed()) {
          return false;
        }
        for (auto &callee : callees) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 19:29:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.h

    // BlockArg or as a result of an Operation.
    llvm::SmallVector<Value> AccumulateOperandsDefinedAbove(
        const llvm::SetVector<Operation*>& partition_ops);
    
    // Similar to `AccumulateOperandsDefinedAbove()`, computes the Value(s) that are
    // defined within a Subgraph and referenced in a descendant Operation. These
    // Values(s) are to be returned by the new raised function.
    llvm::SmallVector<Value> AccumulateResultsDefinedWithin(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 17 18:49:43 UTC 2022
    - 6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tpu_parallel_execute_sink_resource_write.cc

      bool rewrite = false;
      const int num_regions = parallel_execute.getNumRegions();
      llvm::SmallVector<Value, 4> results_to_remap;
    
      // Go through each region and find AssignVariableOps that can be moved into
      // the parallel_execute region. Result indices by region index are collected,
      // so they can be removed afterwards.
      llvm::SmallVector<llvm::SmallVector<int, 4>, 4> results_to_remove_by_region;
      results_to_remove_by_region.resize(num_regions);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 06 04:46:18 UTC 2022
    - 6.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.h

    bool IsEntryFunction(func::FuncOp func);
    
    // Get all the entry functions in an MLIR module.
    llvm::SmallVector<func::FuncOp> GetEntryFunctions(ModuleOp module);
    
    // Get all the functions referenced in a symber user op and save them in
    // `callees`.
    LogicalResult GetCallees(SymbolUserOpInterface op, SymbolTable &symtab,
                             llvm::SmallVector<func::FuncOp> &callees);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Dec 16 06:18:49 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top