Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 66 for qtype_attr (0.4 sec)

  1. tensorflow/c/experimental/ops/gen/model/op_spec.cc

      for (const OpDef::ArgDef& arg_def : op_def.input_arg()) {
        ArgSpec arg = ArgSpec::CreateInput(arg_def, input_args_.size());
        input_args_.push_back(arg);
        if (!arg_def.type_attr().empty()) {
          inferred_attrs.insert(arg_def.type_attr());
          if (!arg_def.number_attr().empty()) {
            inferred_attrs.insert(arg_def.number_attr());
          }
        } else if (!arg_def.type_list_attr().empty()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 01 21:05:56 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/ops/gen/model/arg_type.cc

      return ArgType(arg_def, kOutput);
    }
    
    ArgType::ArgType(const OpDef::ArgDef& arg_def, Kind kind)
        : kind_(kind), data_type_(arg_def.type()) {
      if (!arg_def.type_attr().empty()) {
        type_attr_name_ = arg_def.type_attr();
      }
      if (!arg_def.type_list_attr().empty()) {
        type_attr_name_ = arg_def.type_list_attr();
      }
    
      is_list_ =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

        for (auto type_and_name :
             llvm::zip(intermediate_types, kIntermediateNames)) {
          mlir::TypeAttr type_attr =
              mlir::TypeAttr::get(std::get<0>(type_and_name));
          auto named_attr =
              builder.getNamedAttr(std::get<1>(type_and_name), type_attr);
          op_state.addAttribute(named_attr.getName(), named_attr.getValue());
        }
      }
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/passes/decompose.cc

              }
              attribute = TypeAttr::get(type);
            }
            Value attr_cst;
            // Wrap these special attributes as a special TFR constant, so the SSA
            // value has a valid type to be used as TFR function argument. These
            // attributes are not expected to be manipulated by the lowering passes.
            if (mlir::isa<TypeAttr>(attribute) || mlir::isa<ArrayAttr>(attribute) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/utils/constant_utils.cc

    #include "tensorflow/core/framework/tensor_shape.pb.h"
    #include "tensorflow/core/platform/status.h"
    #include "tsl/platform/statusor.h"
    
    namespace mlir {
    namespace TFL {
    
    absl::StatusOr<TypedAttr> CreateTypedAttr(ShapedType shaped_type, int value) {
      Type element_type = shaped_type.getElementType();
      if (element_type.isF16()) {
        auto floatType = mlir::FloatType::getF16(element_type.getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. tensorflow/c/kernels/bitcast_op_test.cc

      Status status;
      NodeDef def;
      def.set_op("Bitcast");
      def.set_device(DEVICE_CPU);
    
      AttrValue typeAttr;
      SetAttrValue(input_tensor->dtype(), &typeAttr);
    
      AttrValue outTypeAttr;
      SetAttrValue(out_type, &outTypeAttr);
    
      (*def.mutable_attr())["T"] = typeAttr;
      (*def.mutable_attr())["type"] = outTypeAttr;
    
      def.add_input(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/utils/validators.h

    }
    
    /// Returns whether the given `a` and `b` have broadcast-compatible
    /// types.
    bool IsBroadcastableElementsAttrs(mlir::TypedAttr a, mlir::TypedAttr b);
    // Returns true if every dimension of the attribute is 1 except the last one.
    bool IsDimensionsDegenerateExceptLastOne(mlir::TypedAttr val);
    // Returns true if every element is 1 except the last one.
    bool IsDimensionsDegenerateExceptLastOne(ArrayRef<int64_t> elements_shape);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/validators.cc

      return !std::any_of(elements.begin(), elements.end(), [](Attribute e) {
        return mlir::cast<IntegerAttr>(e).getValue() != 1;
      });
    }
    
    bool IsBroadcastableElementsAttrs(mlir::TypedAttr a, mlir::TypedAttr b) {
      // This would return false if we had unranked tensors (where they should
      // probably be considered as broadcastable), but given we are working with
      // attributes here that shouldn't be an issue,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/quantization/device_target.cc

      if (!rop) return failure();
    
      llvm::SmallVector<Type, 4> input_specs, out_specs;
      for (auto spec : rop.getInputSpecs()) {
        input_specs.push_back(spec.cast<TypeAttr>().getValue());
      }
      for (auto spec : rop.getOutputSpecs()) {
        out_specs.push_back(spec.cast<TypeAttr>().getValue());
      }
    
      auto in_spec = input_specs[0].dyn_cast<UniformQuantizedType>();
      // TODO(fengliuai): handles the PerAxis QuantizedType.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 10:41:08 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

          /*asymmetric_quantize_inputs=*/mlir::BoolAttr(),
          /*input_to_input_intermediate=*/mlir::TypeAttr(),
          /*input_to_forget_intermediate=*/mlir::TypeAttr(),
          /*input_to_cell_intermediate=*/mlir::TypeAttr(),
          /*input_to_output_intermediate=*/mlir::TypeAttr(),
          /*effective_hidden_scale_intermediate=*/mlir::TypeAttr());
    
      // Cast the static shaped lstm result to FuncOp's signature -
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
Back to top