Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 345 for SmallVector (6.38 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/hoist_broadcast_read.cc

    limitations under the License.
    ==============================================================================*/
    
    #include <memory>
    #include <string>
    
    #include "llvm/ADT/SmallVector.h"
    #include "llvm/Support/Casting.h"
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/BuiltinAttributes.h"  // from @llvm-project
    #include "mlir/IR/Operation.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/transforms/tac_filter.cc

        } else if (type == FunctionFilter::INCLUDE_TARGET_ANNOTATION) {
          op.removeAttr(kSkipTargetAnnotation);
        }
      }
    }
    
    void ApplyTacFilter(ModuleOp module, const TacFilter& tac_filter,
                        SmallVector<Operation*>& filtered_ops, OpBuilder& builder) {
      if (tac_filter.has_function_filter()) {
        llvm::Regex func_regex(
            tac_filter.function_filter().function_name_pattern());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/pre_calibration_test.cc

      absl::StatusOr<ModuleOp> pre_calibration_result =
          component.Run(*module_op, quantization_config);
    
      EXPECT_THAT(pre_calibration_result, IsOk());
    
      SmallVector<func::FuncOp> func_ops;
      for (auto func_op : pre_calibration_result->getOps<func::FuncOp>()) {
        func_ops.push_back(func_op);
      }
      ASSERT_THAT(func_ops, SizeIs(2));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 21:41:08 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.h

    // Returns the exported name for the session initializer function.
    SmallVector<StringRef, 2> GetSessionInitializerExportedName(ModuleOp module_op);
    
    // Returns initializer function ops. These functions' symbols are in the
    // "initializers" attribute of the session initializer op.
    SmallVector<func::FuncOp, 2> GetInitializerFunctions(ModuleOp module_op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 18 03:21:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

    // tuple type, a new tuple type with `type` and `mhlo.token` type is created
    // instead.
    SmallVector<Type> GetTypeWithToken(OpBuilder& builder, ArrayRef<Type> types,
                                       bool flatten_tuple) {
      SmallVector<Type> new_result_types;
      auto token_type = TokenType::get(builder.getContext());
    
      if (flatten_tuple) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.cc

    //===----------------------------------------------------------------------===//
    
    namespace mlir {
    namespace TF {
    
    llvm::SmallVector<ResourceHandleValueAndId, 4>
    _TfrtGetResourceOp::GetResourceHandleValueAndIdList(
        llvm::SmallDenseMap<ResourceHandle, int64_t> &resource_handle_id_map,
        int64_t &next_id) {
      llvm::SmallVector<ResourceHandleValueAndId, 4> resource_vec;
      llvm::StringRef device = GetDeviceOrEmpty(getOperation());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/folders.cc

          return std::nullopt;
        }
        return FoldAdaptor(operation);
      }
    
      // Gets a list of ElementsAttr behind each constant operand.
      llvm::SmallVector<ElementsAttr> OperandData() {
        llvm::SmallVector<ElementsAttr> res;
        res.reserve(operation_->getNumOperands());
        for (auto opr : operation_->getOperands()) {
          auto op = llvm::dyn_cast<stablehlo::ConstantOp>(opr.getDefiningOp());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 06:11:55 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top