Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 67 for NamedAttribute (0.25 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/tflite_import_export.cc

            !llvm::isa<func::ReturnOp, func::FuncOp, CallOpInterface>(op))
          return;
    
        // Attach cost per target.
        // Unsupported op will have negative values.
        mlir::SmallVector<mlir::NamedAttribute, 4> device_costs;
        for (const auto& device : processed_device_specs) {
          auto* target_hardware = mlir::TFL::tac::GetTargetHardware(device);
          float cost = -1;
          if (target_hardware->IsOpSupported(op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

        auto body_attr =
            mlir::SymbolRefAttr::get(builder.getContext(), func_names.at(body_idx));
    
        return llvm::SmallVector<mlir::NamedAttribute, 4>{
            builder.getNamedAttr("cond", cond_attr),
            builder.getNamedAttr("body", body_attr)};
      }
      return llvm::SmallVector<mlir::NamedAttribute, 4>{};
    }
    
    Status ConvertSubgraphIdxToStablehloRegion(
        const tflite::OperatorT& op, const std::vector<std::string>& func_names,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/export_utils.h

    // "name" and "device" attributes are ignored by default. Use attrs_to_ignore to
    // specify any other attributes that should be ignored.
    Status ConvertAttributes(
        llvm::ArrayRef<mlir::NamedAttribute> attrs,
        const absl::flat_hash_set<absl::string_view>& attrs_to_ignore,
        bool remove_ref_type, AttrValueMap* values);
    
    // Fill in the contents of TensorShapeProto for the given shape.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_executor_ops.td

        TfeTokenType:$token,
        TfeControlType:$control
      );
    
      let builders = [
        OpBuilder<(ins "Type":$result_type,
          CArg<"ArrayRef<NamedAttribute>", "{}">:$attributes),
        [{
          Type token_type = TokenType::get($_builder.getContext());
          Type control_type = ControlType::get($_builder.getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 23 19:35:12 UTC 2023
    - 22K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_calibration_statistics_saver.cc

          return true;
        }
      }
    
      SymbolTable symbol_table(op->getParentOfType<ModuleOp>());
      // Check the functions associated to CaseOp, IfOp and WhileOp.
      for (const NamedAttribute& attr : op->getAttrs()) {
        FlatSymbolRefAttr symbol_attr =
            dyn_cast_or_null<FlatSymbolRefAttr>(attr.getValue());
        if (!symbol_attr) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/readonly_references_to_resources.cc

                {}, TF::ResourceType::get(ArrayRef<TensorType>{tensor_type},
                                          builder.getContext()))},
            ArrayRef<Value>{},
            ArrayRef<NamedAttribute>{
                builder.getNamedAttr("device", device_attr),
                builder.getNamedAttr("container",
                                     variable_v2_op.getContainerAttr()),
                builder.getNamedAttr("shared_name",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/utils/perception_ops_utils_test.cc

                                              const ArrayAttr& pool_size,
                                              const ArrayAttr& strides) {
      SmallVector<::mlir::NamedAttribute, 3> fields;
    
      auto padding_id = ::mlir::StringAttr::get(context, "padding");
      fields.emplace_back(padding_id, StringAttr::get(context, padding));
    
      auto pool_size_id = ::mlir::StringAttr::get(context, "pool_size");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 21:02:21 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

      if (!device_set) return;
    
      mlir::MLIRContext* ctx = op->getContext();
      mlir::Builder builder(ctx);
    
      // Collect devices with attached metadata.
      llvm::SmallVector<mlir::NamedAttribute, 8> devices;
      devices.reserve(device_set->devices().size());
    
      // For device that do not have any metadata, or if we failed to parse metadata
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.h

                                             ArrayRef<Value> arguments,
                                             ArrayRef<Value> results,
                                             ArrayRef<NamedAttribute> attributes);
    
    // Same as above but with empty attributes.
    SmallVector<Value, 4> LiftAsFunctionCall(OpBuilder& builder, Location location,
                                             FunctionCallOpType call_op_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/python/jax_to_tfl_flatbuffer.cc

        input_names.push_back(input.name());
      }
    
      const auto& inputs = absl::StrJoin(input_names, ",");
      mlir::OpBuilder builder(*module);
      llvm::SmallVector<mlir::NamedAttribute> attrs;
      attrs.push_back(
          builder.getNamedAttr("inputs", builder.getStringAttr(inputs)));
      // Jax wrapped the output nodes in a tuple, so it's pretty hard to us
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top