Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 241 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. tensorflow/compiler/mlir/tfr/passes/rewrite_quantized_io.cc

        for (BlockArgument arg : block.getArguments()) {
          Type arg_type = arg.getType();
          if (auto quant_type = arg_type.cast<TensorType>()
                                    .getElementType()
                                    .dyn_cast<quant::QuantizedType>()) {
            if (arg.hasOneUse() && llvm::isa<TFR::CastOp>(*arg.user_begin())) {
              arg.setType(
                  arg_type.cast<TensorType>().clone(quant_type.getStorageType()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. pkg/proxy/ipvs/ipset/ipset_test.go

    func Test_validIPSetType(t *testing.T) {
    	testCases := []struct {
    		setType   Type
    		expectErr bool
    	}{
    		{ // case[0]
    			setType:   Type("foo"),
    			expectErr: true,
    		},
    		{ // case[1]
    			setType:   HashIPPortNet,
    			expectErr: false,
    		},
    		{ // case[2]
    			setType:   HashIPPort,
    			expectErr: false,
    		},
    		{ // case[3]
    			setType:   HashIPPortIP,
    			expectErr: false,
    		},
    		{ // case[4]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 41.5K bytes
    - Viewed (0)
Back to top