Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 60 for AttrValue (0.28 sec)

  1. tensorflow/c/eager/c_api.cc

                              const tensorflow::AttrValue& default_value,
                              const char* attr_name, TF_Status* status) {
      switch (default_value.value_case()) {
        case tensorflow::AttrValue::kS: {
          const string& v = default_value.s();
          TFE_OpSetAttrString(op, attr_name, v.data(), v.size());
          break;
        }
        case tensorflow::AttrValue::kI:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/cc_op_gen_util.cc

          }
        }
        case AttrValue::kB:
          return attr_value.b() ? "true" : "false";
        case AttrValue::kType:
          return DataType_Name(attr_value.type());
        case AttrValue::kShape:
          return PrintTensorShape(attr_value.shape());
        case AttrValue::kTensor:
          return PrintTensorProto(attr_value.tensor());
        case AttrValue::kList: {
          string ret = "{";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 25K bytes
    - Viewed (0)
  3. tensorflow/c/kernels_test.cc

      def.add_input("input1");
      def.add_input("input2");
      def.add_input("input3");
      def.add_input("input3");
      def.add_input("input3");
    
      AttrValue v0;
      v0.set_type(DataType::DT_INT32);
      v0.set_i(3);
      (*def.mutable_attr())["NumInput3"] = v0;
      AttrValue v1;
      v1.set_type(DataType::DT_FLOAT);
      (*def.mutable_attr())["SomeDataTypeAttr"] = v1;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  4. tensorflow/c/eager/tfe_op_attrs_internal.h

    typedef struct TFE_Op TFE_Op;
    
    namespace tensorflow {
    DEFINE_CONVERSION_FUNCTIONS(tensorflow::AbstractOpAttrs, TFE_OpAttrs);
    
    // Set an AttrValue on the op. Doesn't handle the list types.
    void SetOpAttrValueScalar(TFE_Context* ctx, TFE_Op* op,
                              const tensorflow::AttrValue& default_value,
                              const char* attr_name, TF_Status* status);
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 10 05:41:19 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/ops/gen/model/attr_spec.h

      const string& base_type() const { return base_type_; }
      const AttrValue& default_value() const { return default_value_; }
      const bool is_list() const { return is_list_; }
    
     private:
      explicit AttrSpec(const OpDef::AttrDef& attr_def);
    
      string name_;
      string description_;
      string full_type_;
      string base_type_;
      AttrValue default_value_;
      bool is_list_;
    };
    
    }  // namespace generator
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/node_matchers.h

    impl::NodeMatcherProperties Attr(std::pair<string, AttrValue> attrs);
    impl::NodeMatcherProperties Attr(string name);
    
    std::pair<string, AttrValue> AttrLiteralHelper(
        const std::pair<string, bool>& bool_attr);
    
    std::pair<string, AttrValue> AttrLiteralHelper(
        const std::pair<string, absl::Span<const int>>& int_list_attr);
    
    std::pair<string, AttrValue> AttrLiteralHelper(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

      EXPECT_EQ(shape_inference_graphs.size(), 0);
    
      // Check host graph: verify we have key placeholder and sequencer.
      std::unique_ptr<FunctionBody> host_fbody;
      AttrValue device_ordinal_temp_value;
      device_ordinal_temp_value.set_i(0);
      protobuf::Map<string, AttrValue> host_func_attrs;
      host_func_attrs["_device_ordinal"] = device_ordinal_temp_value;
      TF_CHECK_OK(FunctionDefToBodyHelper(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
  8. tensorflow/c/kernels.cc

          LIST_CASE(tensor, TF_ATTR_FUNC);
    #undef LIST_CASE
          break;
    
        case tensorflow::AttrValue::kPlaceholder:
          *list_size = -1;
          *total_size = -1;
          break;
    
        case tensorflow::AttrValue::kFunc:
          *list_size = -1;
          *total_size = -1;
          break;
    
        case tensorflow::AttrValue::VALUE_NOT_SET:
          status->status = absl::InvalidArgumentError(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 36K bytes
    - Viewed (0)
  9. tensorflow/c/kernels/bitcast_op_test.cc

                       TensorShape expected_shape, error::Code expected_code) {
      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)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/GradleModuleMetadataParser.java

                    boolean attrValue = reader.nextBoolean();
                    attributes = attributesFactory.concat(attributes, Attribute.of(attrName, Boolean.class), attrValue);
                } else if (reader.peek() == NUMBER) {
                    Integer attrValue = reader.nextInt();
                    attributes = attributesFactory.concat(attributes, Attribute.of(attrName, Integer.class), attrValue);
                } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:07:04 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top