Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 51 for AttrValue (0.29 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

          const std::string& func_name);
    
      // Converts the given non-function-call AttrValue to an MLIR Attribute.
      absl::StatusOr<mlir::Attribute> ConvertAttributeValue(const AttrValue& value);
    
      // Converts the given function-call AttrValue to MLIR Attributes and pushes
      // them to the given attributes list. For example, if there is a kFunc
      // AttrValue {name : foo, attrs : {k1 : bar, k2 : rfc}}, it will convert it to
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_function.cc

                                      const void* proto, size_t proto_len,
                                      TF_Status* status) {
      tensorflow::AttrValue attr_value;
      if (!attr_value.ParseFromArray(proto, proto_len)) {
        status->status = InvalidArgument(
            "Unparseable AttrValue proto passed to "
            "TF_FunctionSetAttrValueProto");
        return;
      }
    
      auto fdef_or = func->record->mutable_fdef();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/custom_aggregator_op.cc

        .SetShapeFn([](::tensorflow::shape_inference::InferenceContext* c) {
          c->set_output(0, c->input(0));
          c->set_output(1, c->Scalar());
          c->set_output(2, c->Scalar());
    
          const tensorflow::AttrValue* num_bins_attr;
          TF_RETURN_IF_ERROR(c->GetAttr("num_bins", &num_bins_attr));
          c->set_output(3, c->MakeShape({num_bins_attr->i()}));
    
          return absl::OkStatus();
        });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

            }
            return new HashMap<String, Object>();
        }
    
        @Override
        protected void addChildUrlFromTagAttribute(final List<String> urlList, final URL url, final String attrValue, final String encoding) {
            final String urlValue = attrValue.trim();
            URL childUrl;
            String u = null;
            try {
                childUrl = new URL(url, urlValue.startsWith(":") ? url.getProtocol() + urlValue : urlValue);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 41.9K bytes
    - Viewed (0)
  5. tensorflow/c/kernels/summary_op_test.cc

                             error::Code expected_code) {
      // Initialize node used to fetch OpKernel
      Status status;
      NodeDef def;
      def.set_op("ScalarSummary");
    
      def.set_device(DEVICE_CPU);
    
      AttrValue valuesTypeAttr;
      SetAttrValue(values->dtype(), &valuesTypeAttr);
      (*def.mutable_attr())["T"] = valuesTypeAttr;
    
      def.add_input(strings::StrCat("input1: ", DataTypeString(tags->dtype())));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util_test.cc

      }
    
      NodeDef node;
      auto builder = NodeDefBuilder("some_node", "Const")
                         .Attr("dtype", data_type)
                         .Attr("value", tensor);
      // Create a bad output shape attr.
      AttrValue shape_attr;
      TensorShapeProto* shape_proto = shape_attr.mutable_list()->add_shape();
      shape_proto->add_dim()->set_size(1);
      builder.Attr("_output_shapes", shape_attr);
    
      TF_RETURN_IF_ERROR(builder.Finalize(&node));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 19:54:38 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util.cc

            for (const auto& attr : node->attrs()) {
              auto attr_key = attr.first;
              auto attr_value = attr.second;
              if (attr_key == attrKey &&
                  attr_value.value_case() == AttrValue::kType &&
                  attr_value.type() == DT_RESOURCE) {
                return true;
                break;
              }
            }
          }
        }
      }
      return false;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 12:22:33 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc

        }
        return false;
      }
      return EqualProtoMap<string, AttrValue>(
          a.attr(), b.attr(), [](const string& s) { return s; },
          [](const AttrValue& v) { return v.DebugString(); },
          [](const string& key, const AttrValue& av, const AttrValue& bv) {
            if (key == "ancestors") {
              // The ancestors are added from a set so the order is unpredictable;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/IvyXmlModuleDescriptorParser.java

                    if (leftOp.equals("org") || leftOp.equals("organization")) {
                        leftOp = "organisation";
                    }
    
                    String attrValue = dd.getAttribute(leftOp);
                    if (!rightOp.equals(attrValue)) {
                        return null;
                    }
                } else {
                    String leftOp = condition.substring(0, notEqualIndex).trim();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 65K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

        }
    
        OpBuilder builder(loc.getContext());
        for (const auto& name_and_value : node_def.attr()) {
          const std::string& attr_name = name_and_value.first;
          const tensorflow::AttrValue& attr_value = name_and_value.second;
          absl::StatusOr<Attribute> mlir_attr =
              tensorflow::ConvertAttributeValue(attr_value, &builder);
          if (!mlir_attr.ok()) {
    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