Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for rawCopy (0.18 sec)

  1. src/cmd/compile/internal/ir/mini.go

    // at a cost of 8 bytes.
    //
    // A miniNode is NOT a valid Node by itself: the embedding struct
    // must at the least provide:
    //
    //	func (n *MyNode) String() string { return fmt.Sprint(n) }
    //	func (n *MyNode) rawCopy() Node { c := *n; return &c }
    //	func (n *MyNode) Format(s fmt.State, verb rune) { FmtNode(n, s, verb) }
    //
    // The embedding struct should also fill in n.op in its constructor,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 22:09:44 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/examples/mnist/ops_defs.py

    def _composite_fully_connected(input_, filter_, bias, act):
      res = tf.raw_ops.MatMul(
          a=input_, b=filter_, transpose_a=False, transpose_b=True)
      res = tf.raw_ops.Add(x=res, y=bias)
      if act == 'RELU':
        return tf.raw_ops.Relu(features=res)
      elif act == 'RELU6':
        return tf.raw_ops.Relu6(features=res)
      elif act == 'TANH':
        return tf.raw_ops.Tanh(x=res)
      else:
        return res
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 31 20:23:51 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  3. RELEASE.md

    *   Fixes a security vulnerability caused by lack of validation in
        `tf.raw_ops.DataFormatVecPermute` and `tf.raw_ops.DataFormatDimMap`
        ([CVE-2020-26267](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-26267))
    *   Fixes a vulnerability caused by attempting to write to immutable memory
        region in `tf.raw_ops.ImmutableConst`
        ([CVE-2020-26268](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-26268)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

        // safe.
        if (auto tensor_array_v3_op = dyn_cast<TF::TensorArrayV3Op>(tf_op)) {
          // The "flow" in TensorArrayV3 is always a scalar float tensor.
          // https://www.tensorflow.org/api_docs/python/tf/raw_ops/TensorArrayWriteV3
          Value flow = tensor_array_v3_op.getFlow();
          Type scalar_f32_tensor_type =
              RankedTensorType::get(/*shape=*/{}, rewriter.getF32Type());
          flow.setType(scalar_f32_tensor_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/rulegen.go

    		}
    
    		loc := fmt.Sprintf("%s%s.rules:%d", arch.name, suff, ruleLineno)
    		for _, rule2 := range expandOr(rule) {
    			r := Rule{Rule: rule2, Loc: loc}
    			if rawop := strings.Split(rule2, " ")[0][1:]; isBlock(rawop, arch) {
    				blockrules[rawop] = append(blockrules[rawop], r)
    				continue
    			}
    			// Do fancier value op matching.
    			match, _, _ := r.parse()
    			op, oparch, _, _, _, _ := parseValue(match, arch, loc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

      def model_fn(args):
        # do something with dynamic tensor
    
      @function.Defun(capture_resource_var_by_value=False)
      def tpu_subgraph():
          return tf.tpu.rewrite(model_fn, args)
    
      return tf.raw_ops.TPUPartitionedCall(
          args=tpu_subgraph.captured_inputs,
          Tout=[o.type for o in tpu_subgraph.definition.signature.output_arg],
          f=tpu_subgraph,
          device_ordinal=[0])
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

    elements in `x` must be complex numbers of the form \\(a + bj\\). The absolute
    value is computed as \\( \sqrt{a^2 + b^2}\\).
    
    For example:
    
    >>> x = tf.complex(3.0, 4.0)
    >>> print((tf.raw_ops.ComplexAbs(x=x, Tout=tf.dtypes.float32, name=None)).numpy())
    5.0
      }];
    
      let arguments = (ins
        TensorOf<[TF_Complex128, TF_Complex64]>:$x
      );
    
      let results = (outs
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir

    // AllToAll op legalizations.
    //===----------------------------------------------------------------------===//
    
    // -----
    
    // CHECK-LABEL: func @alltoall_basic
    // See https://www.tensorflow.org/api_docs/python/tf/raw_ops/AllToAll
    func.func @alltoall_basic(%input: tensor<1x2xf32>) -> tensor<2x1xf32> {
      %group_assignment = "tf.Const" () {
        value = dense<[[0, 1]]> : tensor<1x2xi32>
      } : () -> tensor<1x2xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 335.5K bytes
    - Viewed (0)
Back to top