Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 148 for set_type (0.43 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top