Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 56 for attrName (0.14 sec)

  1. tensorflow/c/kernels.cc

      case DataTypeToEnum<type>::value: {                            \
        kernel_builder->cc_builder->TypeConstraint<type>(attr_name); \
        break;                                                       \
      }
    
    void AddTypeConstraint(TF_KernelBuilder* kernel_builder, const char* attr_name,
                           const DataType dtype, TF_Status* status) {
      // This needs to be under tensorflow:: namespace so that
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 36K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

        }
        desc->node_builder.Attr(attr_name, v);
      }
    }
    
    void TF_SetAttrInt(TF_OperationDescription* desc, const char* attr_name,
                       int64_t value) {
      desc->node_builder.Attr(attr_name, static_cast<int64_t>(value));
    }
    
    void TF_SetAttrIntList(TF_OperationDescription* desc, const char* attr_name,
                           const int64_t* values, int num_values) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc

                                                 const std::string& attr_name,
                                                 int N) {
      ArrayAttr array_attr =
          mlir::dyn_cast_or_null<ArrayAttr>(attrs.get(attr_name));
      if (array_attr == nullptr || array_attr.size() != N) {
        return func->emitWarning()
               << "'" << attr_name << "' attribute for " << kMaxUnpooling
               << " must be set and has size of " << N;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/encapsulate_util.cc

      if (!s.ok() && s.code() != error::NOT_FOUND) {
        return s;
      }
    
      n->ClearAttr(attr_name);
      attr_value.push_back(value);
      n->AddAttr(attr_name, attr_value);
      return absl::OkStatus();
    }
    
    // Replaces attribute value.
    template <typename T>
    void ReplaceAttr(Node* n, const string& attr_name, const T& value) {
      n->ClearAttr(attr_name);
      n->AddAttr(attr_name, value);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.cc

      return true;
    }
    
    bool GetI32VectorFromDenseI64CompositeAttr(
        const DictionaryAttr& composite_attrs, const std::string& attr_name,
        std::vector<int32_t>* out_vec) {
      DenseIntElementsAttr attr;
      if (!EnsureAttribute<DenseIntElementsAttr>(composite_attrs, attr_name,
                                                 &attr)) {
        return false;
      }
    
      return DenseI64AttrToI32Vector(attr, out_vec);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 18:33:05 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

          op_name: Name of the op to match.
          attr_name: Name of the attribute of the op to match.
          attr_val: Value of the attr_name to check.
          node_name: Name of the node to match. Accepts regex2 format.
    
        Returns:
          True if there exists a node whose name matches `op_name` and 'attr_val' if
          'attr_name' is given.
        """
    
        def match_node_name(name):
          if not node_name:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

      for (auto& attr : func->getAttrs()) {
        StringRef attr_name = attr.getName().getValue();
        if (attr_name.starts_with("tf_saved_model.")) {
          func->removeAttr(attr_name);
        }
      }
    
      auto iface = cast<FunctionOpInterface>(func.getOperation());
      for (int i = 0; i < func.getNumArguments(); ++i) {
        for (auto& attr : iface.getArgAttrs(i)) {
          const StringAttr& attr_name = attr.getName();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_function.cc

      }
    
      (*(fdef_or.value()->mutable_attr()))[string(attr_name)] = attr_value;
    
      status->status = absl::OkStatus();
    }
    
    void TF_FunctionGetAttrValueProto(TF_Function* func, const char* attr_name,
                                      TF_Buffer* output_attr_value,
                                      TF_Status* status) {
      const auto& it = func->record->fdef().attr().find(attr_name);
      if (it == func->record->fdef().attr().end()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

            [&](const tensorflow::NameRangeMap& arg_ranges,
                const tensorflow::protobuf::RepeatedPtrField<
                    tensorflow::OpDef::ArgDef>& args,
                llvm::StringRef attr_name) {
              std::vector<int32_t> values;
              values.reserve(args.size());
              for (const auto& arg : args) {
                auto range = arg_ranges.at(arg.name());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.td

    // Creates a NamedAttribute given its name and value. Essentially creates
    // a pair: {attribute_name, attribute_value}.
    class NamedAttr<string attr_name> :
        NativeCodeCall<"NamedAttribute{$_builder.getStringAttr(\"" # attr_name # "\"), $0}">;
    
    // Checks if the value is not defined inside a lifted function by checking the
    // `tf_quant.composite_function` attribute.
    def IsNotInLiftedFunc :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 00:32:20 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top