Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 96 for type_attr (0.26 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc

          if (IsQI8Type(result_type) || IsQUI8Type(result_type)) {
            builder->setInsertionPoint(op);
            TFL::QuantizeOp quant_op = builder->create<TFL::QuantizeOp>(
                op->getLoc(), result_type, new_result, TypeAttr::get(result_type));
            new_result = quant_op.getResult();
          }
    
          // Rewire the outputs.
          result.replaceAllUsesWith(new_result);
        }
    
        // Remove the old op.
        op->erase();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

    def TFR_allowedArgType : Type<Or<[
        TFR_AllTensorTypes.predicate,
        TFR_AllAttrTypes.predicate]>, "allowed tfr.call operand types">;
    
    def TFR_allowedConstValues : Attr<Or<[
        FlatSymbolRefAttr.predicate,
        TypeAttr.predicate,
        StrAttr.predicate,
        ArrayAttr.predicate]>, "allowed tfr.constant value"> {
      let storageType = "Attribute";
      let returnType = "Attribute";
      let convertFromStorage = "$_self";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

    // the casting, the quantization dimension of the result type needs to be set
    // this new `axis` value.
    TypeAttr CastQuantizedTypeAttrFromExpressedType(Builder builder,
                                                    TypeAttr source, Type target,
                                                    int axis);
    
    // Quantizes the elements in the attribute `real_value` by the quantization
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/arm/obj5.go

    	// internally defined symbols.
    	if p.From.Type == obj.TYPE_ADDR && p.From.Name == obj.NAME_EXTERN && !p.From.Sym.Local() {
    		// MOVW $sym, Rx becomes MOVW sym@GOT, Rx
    		// MOVW $sym+<off>, Rx becomes MOVW sym@GOT, Rx; ADD <off>, Rx
    		if p.As != AMOVW {
    			c.ctxt.Diag("do not know how to handle TYPE_ADDR in %v with -dynlink", p)
    		}
    		if p.To.Type != obj.TYPE_REG {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 21.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/s390x/ssa.go

    		p.From.Scale = 1
    		if i == s390x.REGSP {
    			r, i = i, r
    		}
    		p.From.Type = obj.TYPE_ADDR
    		p.From.Reg = r
    		p.From.Index = i
    		ssagen.AddAux(&p.From, v)
    		p.To.Type = obj.TYPE_REG
    		p.To.Reg = v.Reg()
    	case ssa.OpS390XMOVDaddr:
    		p := s.Prog(s390x.AMOVD)
    		p.From.Type = obj.TYPE_ADDR
    		p.From.Reg = v.Args[0].Reg()
    		ssagen.AddAux(&p.From, v)
    		p.To.Type = obj.TYPE_REG
    		p.To.Reg = v.Reg()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 01:26:58 UTC 2023
    - 27.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

        builder.create<tf_saved_model::GlobalTensorOp>(
            NameLoc::get(builder.getStringAttr(name.str())),
            builder.getStringAttr(name), tensor_attr,
            TypeAttr::get(tensor_attr.getType()), builder.getUnitAttr());
      }
    
      return success();
    }
    
    }  // namespace
    
    LogicalResult LiftVariables(ModuleOp module, Session* session) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model_ops.td

        sense of `tf.TensorShape` compatibility. And the element types must match.
      }];
    
      let arguments = (ins
        StrAttr:$sym_name,
        OptionalAttr<ElementsAttr>:$value,
        TypeAttr:$type,
        UnitAttr:$is_mutable
      );
    
      let hasVerifier = 1;
    }
    
    def TfSavedModel_SessionInitializerOp: TfSavedModel_Op<"session_initializer"> {
      let summary = "Initializes TensorFlow session state.";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:49:35 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/s390x/objz.go

    	// symbol in the Go sense, and p.Sym.Local is true for a few
    	// internally defined symbols.
    	// Rewrites must not clobber flags and therefore cannot use the
    	// ADD instruction.
    	if p.From.Type == obj.TYPE_ADDR && p.From.Name == obj.NAME_EXTERN && !p.From.Sym.Local() {
    		// MOVD $sym, Rx becomes MOVD sym@GOT, Rx
    		// MOVD $sym+<off>, Rx becomes MOVD sym@GOT, Rx or REGTMP2; MOVD $<off>(Rx or REGTMP2), Rx
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 19:28:53 UTC 2023
    - 21K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/utils/utils.h

          values.begin(), values.end(),
          [](const APInt& element_value) { return element_value.isNegative(); });
    }
    
    // Utility function to get the offset between two dense attribute values.
    inline TypedAttr GetOffSet(Attribute begin, Attribute end) {
      auto begin_values = begin.cast<DenseElementsAttr>().getValues<int32_t>();
      auto end_values = end.cast<DenseElementsAttr>().getValues<int32_t>();
    
      SmallVector<int32_t> offsets;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/optimize.cc

        return f.isExactlyValue(value);
      });
    }
    
    // Returns true if `value` is compile-time constant and its splat value equals
    // to `raw_value`.
    template <typename T>
    bool IsConstantValueOf(mlir::TypedAttr value, T raw_value) {
      auto element_type = mlir::cast<ShapedType>(value.getType()).getElementType();
    
      if (mlir::isa<FloatType>(element_type)) {
        return FloatValueEquals(value, raw_value);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top