Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 258 for set_type (0.19 sec)

  1. src/cmd/compile/internal/typecheck/universe.go

    }
    
    // InitUniverse initializes the universe block.
    func InitUniverse() {
    	types.InitTypes(func(sym *types.Sym, typ *types.Type) types.Object {
    		n := ir.NewDeclNameAt(src.NoXPos, ir.OTYPE, sym)
    		n.SetType(typ)
    		n.SetTypecheck(1)
    		sym.Def = n
    		return n
    	})
    
    	for _, s := range &builtinFuncs {
    		ir.NewBuiltin(types.BuiltinPkg.Lookup(s.name), s.op)
    	}
    
    	for _, s := range &unsafeFuncs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/merge_fusion_with_dequantize.cc

        if (!req_op) return failure();
    
        // Create a new func.call op with f32 output.
        auto new_call_op = call_op.clone();
        new_call_op->getResult(0).setType(
            mlir::cast<ShapedType>(call_op.getResult(0).getType())
                .clone(rewriter.getF32Type()));
        rewriter.setInsertionPoint(call_op);
        rewriter.insert(new_call_op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

      TFRTensorType unconstrainted_type = rewriter.getType<TFRTensorType>();
      SmallVector<Value, 4> new_results;
      for (auto res : llvm::enumerate(call_op.getResultTypes())) {
        Type res_type = res.value();
        if (mlir::dyn_cast<TFRTensorType>(res_type)) {
          Value new_res = new_op->getResult(res.index());
          auto casted = rewriter.create<CastOp>(loc, res_type, new_res);
          new_results.push_back(casted.getOut());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/internal/classpath/transforms/InstrumentingClassTransform.java

        private static final Type SYSTEM_TYPE = getType(System.class);
        private static final Type INTEGER_TYPE = getType(Integer.class);
        private static final Type INSTRUMENTED_TYPE = getType(Instrumented.class);
        private static final Type LONG_TYPE = getType(Long.class);
        private static final Type BOOLEAN_TYPE = getType(Boolean.class);
        public static final Type PROPERTIES_TYPE = getType(Properties.class);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 01:16:36 UTC 2024
    - 32K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/quantization_options.proto

      }
    
      QuantizationComponent quantization_component = 1;
    
      // Defines the target bit of the data.
      BitWidth bit_width = 2;
    
      // Defines the type of data of the quantized component.
      BitType bit_type = 3;
    
      // Defines whether quantization is done in narrow range.
      bool enable_narrow_range = 4;
    
      // Defines whether quantiation is done per-channel.
      bool enable_per_channel_quantization = 5;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 22 02:20:05 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/inline/interleaved/interleaved.go

    			return n // already visited n.X before wrapping
    		}
    
    		ok := match(n)
    
    		ir.EditChildren(n, mark)
    
    		if ok {
    			paren := ir.NewParenExpr(n.Pos(), n)
    			paren.SetType(n.Type())
    			paren.SetTypecheck(n.Typecheck())
    
    			parens = append(parens, paren)
    			n = paren
    		}
    
    		return n
    	}
    	ir.EditChildren(fn, mark)
    
    	// Edit until stable.
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/modelreader/impl/TypeMirrorToType.java

        @Override
        public Type visitPrimitive(PrimitiveType t, Void unused) {
            TypeKind kind = t.getKind();
            if (kind == TypeKind.INT) {
                return Type.INT_TYPE;
            }
            if (kind == TypeKind.BYTE) {
                return Type.BYTE_TYPE;
            }
            if (kind == TypeKind.BOOLEAN) {
                return Type.BOOLEAN_TYPE;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 02 15:44:14 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/link.go

    	ldr := ctxt.loader
    	s := ldr.LookupOrCreateSym(name, version)
    	ldr.SetIsGeneratedSym(s, true)
    	sb := ldr.MakeSymbolUpdater(s)
    	sb.SetType(t)
    	sb.SetSize(size)
    	ctxt.generatorSyms[s] = gen
    	return s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 19 15:59:22 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

          if (out_type.isa<TFRTensorType>()) {
            new_cst = rewriter.create<CastOp>(loc, out_type, new_cst->getResult(0));
          }
          rewriter.replaceOp(cst_tensor_op, new_cst->getResult(0));
          return success();
        }
    
        TypedAttr scalar;
        if (matchPattern(cst_tensor_op.getArg(), m_Constant(&scalar))) {
          Type new_out_type = RankedTensorType::get({}, scalar.getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/legalize_tf_quant_test.cc

        for (int i = 0; i < arg_shapes.size(); ++i) {
          auto metadata_arg = metadata_proto.add_args();
          metadata_arg->set_kind(
              tensorflow::tpu::TPUCompileMetadataProto::Arg::PARAMETER);
          metadata_arg->set_dtype(dtype);
        }
        // Set up one dummy retval.
        metadata_proto.add_retvals();
        bool use_tuple_args = true;
        std::vector<tensorflow::tpu::ShardingAndIndex> arg_core_mapping;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 18:43:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top