Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 126 for attrName (0.13 sec)

  1. tensorflow/c/c_api.h

      int64_t total_size;
    } TF_AttrMetadata;
    
    // Returns metadata about the value of the attribute `attr_name` of `oper`.
    TF_CAPI_EXPORT extern TF_AttrMetadata TF_OperationGetAttrMetadata(
        TF_Operation* oper, const char* attr_name, TF_Status* status);
    
    // Fills in `value` with the value of the attribute `attr_name`.  `value` must
    // point to an array of length at least `max_length` (ideally set to
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. tensorflow/c/python_api.cc

    }
    
    void SetAttr(TF_Graph* graph, TF_Operation* op, const char* attr_name,
                 TF_Buffer* attr_value_proto, TF_Status* status) {
      TF_SetAttr(graph, op, attr_name, attr_value_proto, status);
    }
    
    void ClearAttr(TF_Graph* graph, TF_Operation* op, const char* attr_name,
                   TF_Status* status) {
      TF_ClearAttr(graph, op, attr_name, status);
    }
    
    void SetFullType(TF_Graph* graph, TF_Operation* op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 12 18:48:56 UTC 2023
    - 3.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/kernels_test.cc

    // Helper macros for the TF_OpKernelConstruction_GetAttr* tests.
    #define EXPECT_TF_SIZE(attr_name, expected_list_size, expected_total_size) \
      do {                                                                     \
        int32_t list_size, total_size;                                         \
        TF_OpKernelConstruction_GetAttrSize(ctx, attr_name, &list_size,        \
                                            &total_size, status);              \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  9. src/internal/trace/traceviewer/static/webcomponents.min.js

    tObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(var t=w.get(e),n=0;n<t.length;n++)if(t[n]===this){t.splice(n,1);break}},this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,n=e.relatedNode.namespaceURI,r=e.target,o=new l("attributes",r);o.attributeName=t,o.attributeNamespace=n;var a=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;i(r,function(e){if(e.attributes&&(!e.attributeFilter||!e.attributeFilter.length...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 115.6K bytes
    - Viewed (0)
  10. 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)
Back to top