Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 258 for set_type (0.17 sec)

  1. tensorflow/compiler/mlir/lite/metrics/types_util.cc

            })
            .Case<UnknownLoc>([&](UnknownLoc loc) {
              mutable_location->set_type(ConverterErrorData::UNKNOWNLOC);
            })
            .Case<FileLineColLoc>([&](FileLineColLoc loc) {
              if (!mutable_location->has_type()) {
                mutable_location->set_type(ConverterErrorData::CALLSITELOC);
              }
              auto new_call = mutable_location->mutable_call()->Add();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/aot/codegen_test.cc

      variable->set_node_name("myvar_readonly");
      variable->mutable_shape()->add_dim()->set_size(1);
      variable->set_type(DT_FLOAT);
      variable->set_readonly(true);
      tf2xla::Variable* variable2 = config.add_variable();
      variable2->set_node_name("myvar");
      variable2->mutable_shape()->add_dim()->set_size(1);
      variable2->set_type(DT_FLOAT);
      tf2xla::Variable* variable3 = config.add_variable();
      variable3->set_node_name("my/var");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 01 02:13:40 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. tensorflow/cc/gradients/functional_grad_test.cc

      TF_ASSERT_OK(scope_.graph()->AddFunctionLibrary(f_lib_proto));
    
      Output x = Placeholder(scope_, DT_FLOAT);
      NameAttrList f;
      f.set_name("XTimesTwo");
      (*f.mutable_attr())["T"].set_type(DT_FLOAT);
      auto results =
          PartitionedCall(scope_, std::initializer_list<Input>{x}, {DT_FLOAT}, f);
      RunTest(x, {}, results[0], {});
    
      auto stateful_results = StatefulPartitionedCall(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 26 14:42:24 UTC 2021
    - 3K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/device_compilation_cluster_signature_test.cc

      const int n_args = state.range(0);
    
      NameAttrList fn;
      fn.set_name("afunction");
      for (int i = 0; i < n_args; i++) {
        (*fn.mutable_attr())[absl::StrCat("T", i)].set_type(DT_FLOAT);
      }
      std::vector<XlaCompiler::Argument> args(n_args);
      for (int i = 0; i < n_args; i++) {
        args[i].kind = (((i % 3) == 0) ? XlaCompiler::Argument::kConstant
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  5. tensorflow/c/kernels_test.cc

      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;
    
      return CreateOpKernel(DeviceType(device_name), nullptr, nullptr, def, 1,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

          AttrValue attr_val;
          // For type attributes, we only propagate the element type.
          mlir::Type elt_type = attr.getValue();
          if (auto shaped_type = mlir::dyn_cast<mlir::ShapedType>(elt_type)) {
            elt_type = shaped_type.getElementType();
          }
          TF_RETURN_IF_ERROR(
              ConvertAttribute(elt_type, remove_ref_type, &attr_val));
          list->add_type(attr_val.type());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

      node_def->set_op(FunctionLibraryDefinition::kRetOp);
      DataType dtype;
      TF_RETURN_IF_ERROR(ConvertToDataType(
          mlir::cast<mlir::TensorType>(operand.getType()).getElementType(),
          &dtype));
      AttrValue type_attr;
      type_attr.set_type(dtype);
      (*node_def->mutable_attr())["T"] = type_attr;
      AttrValue index_attr;
      index_attr.set_i(index);
      (*node_def->mutable_attr())["index"] = index_attr;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

      node_def->set_op(FunctionLibraryDefinition::kRetOp);
      DataType dtype;
      TF_RETURN_IF_ERROR(ConvertToDataType(
          mlir::cast<mlir::TensorType>(operand.getType()).getElementType(),
          &dtype));
      AttrValue type_attr;
      type_attr.set_type(dtype);
      (*node_def->mutable_attr())["T"] = type_attr;
      AttrValue index_attr;
      index_attr.set_i(index);
      (*node_def->mutable_attr())["index"] = index_attr;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

          fld->ReplaceFunction(shape_inference_graph_name, fdef_replace));
    
      return absl::OkStatus();
    }
    
    void SetMaximalSharding(NodeDefBuilder& node_builder) {
      xla::OpSharding sharding;
      sharding.set_type(xla::OpSharding::MAXIMAL);
      sharding.add_tile_assignment_dimensions(1);
      sharding.add_tile_assignment_devices(0);
      node_builder.Attr("_XlaSharding", sharding.SerializeAsString());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/ClassMetaData.java

        public ClassMetaData(String className, String packageName, MetaType metaType, boolean isGroovy, String rawClassComment) {
            super(rawClassComment);
            this.className = className;
            this.packageName = packageName;
            this.metaType = metaType;
            this.isGroovy = isGroovy;
        }
    
        public ClassMetaData(String className) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 10.1K bytes
    - Viewed (0)
Back to top