- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 113 for set_type (0.12 sec)
-
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) -
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) -
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) -
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) -
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) -
src/cmd/compile/internal/typecheck/func.go
n.SetType(nil) return n } if !n.Y.Type().IsInteger() { n.SetType(nil) return n } n.SetType(n.X.Type()) return n } // tcUnsafeSlice typechecks an OUNSAFESLICE node. func tcUnsafeSlice(n *ir.BinaryExpr) *ir.BinaryExpr { n.X = Expr(n.X) n.Y = Expr(n.Y) if n.X.Type() == nil || n.Y.Type() == nil { n.SetType(nil) return n }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 15:23:18 UTC 2024 - 21.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc
const auto& input_dtype = input_tensor.dtype(); const auto& input_shape = input_tensor.shape(); Type elt_type; TF_RETURN_IF_ERROR(ConvertDataType(input_dtype, *builder, &elt_type)); SmallVector<int64_t, 4> shape; ConvertToMlirShape(input_shape, &shape); auto type = RankedTensorType::get(shape, elt_type); #define CONVERT_FLAT(DTYPE, CTYPE) \ case DTYPE: \
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 20.5K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/expr.go
if t == nil || r.Type() == nil { n.SetType(nil) return n } switch t.Kind() { default: base.Errorf("invalid operation: %v (type %v does not support indexing)", n, t) n.SetType(nil) return n case types.TSTRING, types.TARRAY, types.TSLICE: n.Index = indexlit(n.Index) if t.IsString() { n.SetType(types.ByteType) } else { n.SetType(t.Elem()) } why := "string"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 23.1K bytes - Viewed (0) -
pkg/proxy/ipvs/ipset/ipset.go
args := []string{"create", set.Name, string(set.SetType)} if set.SetType == HashIPPortIP || set.SetType == HashIPPort || set.SetType == HashIPPortNet || set.SetType == HashIP { args = append(args, "family", set.HashFamily, "hashsize", strconv.Itoa(set.HashSize), "maxelem", strconv.Itoa(set.MaxElem), ) } if set.SetType == BitmapPort { args = append(args, "range", set.PortRange) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 17.1K bytes - Viewed (0) -
src/cmd/link/internal/loadelf/ldelf.go
case elf.SHF_ALLOC: sb.SetType(sym.SRODATA) case elf.SHF_ALLOC + elf.SHF_WRITE: if sect.type_ == elf.SHT_NOBITS { sb.SetType(sym.SNOPTRBSS) } else { sb.SetType(sym.SNOPTRDATA) } case elf.SHF_ALLOC + elf.SHF_EXECINSTR: sb.SetType(sym.STEXT) } if sect.name == ".got" || sect.name == ".toc" { sb.SetType(sym.SELFGOT) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:12:12 UTC 2024 - 33.9K bytes - Viewed (0)