Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 97 for attr_value (0.35 sec)

  1. 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)
  2. 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)
  3. tensorflow/cc/experimental/libtf/tests/value_test.cc

    TEST(Test1, TestCapsule) {
      TaggedValue test_moved, test_copy;
      ASSERT_EQ(alloc_count, 0);
      void* ptr_value = new Cool();
      {
        TaggedValue capsule =
            TaggedValue::Capsule(static_cast<void*>(ptr_value),
                                 [](void* x) { delete static_cast<Cool*>(x); });
        ASSERT_EQ(alloc_count, 1);
        ASSERT_EQ(capsule.capsule(), ptr_value);
        test_moved = std::move(capsule);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 01 11:18:25 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc

                                                         .begin())>::value>::type>
    Status SetTypeAttribute(absl::string_view name, ContainerT types,
                            AttrValueMap* values) {
      AttrValue value;
      auto& type_list = *value.mutable_list();
      for (auto type : types) {
        DataType dtype;
        TF_RETURN_IF_ERROR(ConvertScalarTypeToDataType(type, &dtype));
        type_list.add_type(dtype);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

          if attr_val.type == types_pb2.DT_FLOAT:
            return 'f32'
          elif attr_val.type == types_pb2.DT_INT32:
            return 'i32'
          elif attr_val.type == types_pb2.DT_INT64:
            return 'i64'
          elif attr_val.type == types_pb2.DT_BOOL:
            return 'i1'
        # list
        if attr_val.HasField('list'):
          if attr_val.list.f:
            elt_ty = TFRTypes.F32
            values = attr_val.list.f
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  6. 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)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyManagementResultsAsInputsIntegrationTest.groovy

                    final String attrValue
                    @Inject ChangingAttributeRule(String attrValue) { this.attrValue = attrValue }
                    void execute(ComponentMetadataContext context) {
                        context.details.allVariants {
                            attributes.attribute(Attribute.of("my.attribute.name", String), attrValue)
                        }
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_kernel_creator_test.cc

      std::unique_ptr<DeviceMgr> device_mgr_;
      std::unique_ptr<FunctionLibraryDefinition> lib_def_;
      std::unique_ptr<ProcessFunctionLibraryRuntime> pflr_;
    
      std::unique_ptr<OpKernel> kernel_;
    };
    
    AttrValue BoolAttr(bool b) {
      AttrValue v;
      v.set_b(b);
      return v;
    }
    
    TEST_F(XlaKernelCreatorTest, OneFloatOneResourceArgument) {
      FunctionDef fdef = XTimesY();
      (*fdef.mutable_attr())["_XlaMustCompile"] = BoolAttr(true);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 16 01:39:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

          `attr_name` is given, check if the `attr_val` matches with the attribute
          value of the op.
        """
        # Check the main graph
        if self._contains_op_with_name_and_attribute(
            nodes=graphdef.node,
            op_name=op_name,
            attr_name=attr_name,
            attr_val=attr_val,
            node_name=node_name,
        ):
          return True
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

        // value here because FunctionDef instantiation does not allow placeholder
        // value for attributes.
        AttrValue device_ordinal_attr;
        device_ordinal_attr.set_i(0);
        protobuf::Map<string, AttrValue> attrs;
        attrs["_device_ordinal"] = device_ordinal_attr;
        std::unique_ptr<FunctionBody> host_fbody;
        const FunctionDef* host_fdef = fld->Find(host_func);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
Back to top