Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 75 for Unary (0.6 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h

        return argumentOp->getOperand(0);
      }
    
      return {};
    }
    
    }  // namespace detail
    
    // This class adds property that the operation is idempotent.
    // This means a unary to unary operation "f" that satisfies f(f(x)) = f(x),
    // or a binary operation "g" that satisfies g(x, x) = x.
    template <typename ConcreteType>
    class IsIdempotent : public TraitBase<ConcreteType, IsIdempotent> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_host_computation_expansion.cc

    }
    
    // TODO(b/158596585): Replace this with a cost model analysis.
    bool IsTrivialUnaryOperation(Operation* op) {
      return llvm::isa<TF::CastOp, TF::IdentityOp>(op);
    }
    
    // Adds outside compilation attributes to unary ops such as Identity/Cast ops
    // at the head of TPU computation that is used only by other outside compiled
    // ops. Identity ops and Cast ops is commonly added to the start of TPU
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. internal/s3select/sql/parser.go

    type In struct {
    	JPathExpr *JSONPath `parser:"@@"`
    	ListExpr  *ListExpr `parser:"| @@"`
    }
    
    // Grammar for Operand:
    //
    // operand → multOp ( ("-" | "+") multOp )*
    // multOp  → unary ( ("/" | "*" | "%") unary )*
    // unary   → "-" unary | primary
    // primary → Value | Variable | "(" expression ")"
    //
    
    // An Operand is a single term followed by an optional sequence of
    // terms separated by +/-
    type Operand struct {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/expr0.go

    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // unary expressions
    
    package expr0 
    
    type mybool bool
    
    var (
    	// bool
    	b0 = true
    	b1 bool = b0
    	b2 = !true
    	b3 = !b1
    	b4 bool = !true
    	b5 bool = !b4
    	b6 = +b0 /* ERROR "not defined" */
    	b7 = -b0 /* ERROR "not defined" */
    	b8 = ^b0 /* ERROR "not defined" */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/GroovyInteroperabilityTest.kt

            )
        }
    
        @Test
        fun `can adapt unary function using KotlinClosure1`() {
    
            fun closure(function: String.() -> String) = KotlinClosure1(function)
    
            assertEquals(
                "GROOVY",
                closure { uppercase(Locale.US) }.call("groovy")
            )
        }
    
        @Test
        fun `can adapt unary null receiving function using KotlinClosure1`() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/testdata/mips.s

    	//	LMOVW mreg ',' rreg
    	//	{
    	//		outcode(int($1), &$2, 0, &$4);
    	//	}
    	MOVW	M1, R1
    	MOVW	M1, R1
    
    
    	//
    	// integer operations
    	// logical instructions
    	// shift instructions
    	// unary instructions
    	//
    	//	LADDW rreg ',' sreg ',' rreg
    	//	{
    	//		outcode(int($1), &$2, int($4), &$6);
    	//	}
    	ADD	R1, R2, R3
    
    	//	LADDW imm ',' sreg ',' rreg
    	//	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 08 12:17:12 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/expr_test.go

    var exprTests = []exprTest{
    	// Simple
    	{"0", 0, true},
    	{"3", 3, true},
    	{"070", 8 * 7, true},
    	{"0x0f", 15, true},
    	{"0xFF", 255, true},
    	{"9223372036854775807", 9223372036854775807, true}, // max int64
    	// Unary
    	{"-0", 0, true},
    	{"~0", -1, true},
    	{"~0*0", 0, true},
    	{"+3", 3, true},
    	{"-3", -3, true},
    	{"-9223372036854775808", -9223372036854775808, true}, // min int64
    	// Binary
    	{"3+4", 3 + 4, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

      if (op->getNumOperands() != 1) {
        return rewriter.notifyMatchFailure(
            op, "Function only supports unary einsum op");
      }
      RankedTensorType lhs =
          mlir::dyn_cast_or_null<RankedTensorType>(op.getOperand(0).getType());
      if (!lhs) {
        return failure();
      }
      // unary einsum op is only supported to the case where the operation can be
      // replaced using reduce_sum and/or transpose
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/GroovyInteroperability.kt

        thisObject: Any? = null
    ) : groovy.lang.Closure<V?>(owner, thisObject) {
    
        @Suppress("unused") // to be called dynamically by Groovy
        fun doCall(): V? = function()
    }
    
    
    /**
     * Adapts an unary Kotlin function to an unary Groovy [Closure].
     *
     * @param T the type of the single argument to the closure.
     * @param V the return type.
     * @param function the function to be adapted.
     * @param owner optional owner of the Closure.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/universe.go

    	okfor[ir.OOR] = okforand[:]
    	okfor[ir.OOROR] = okforbool[:]
    	okfor[ir.OSUB] = okforarith[:]
    	okfor[ir.OXOR] = okforand[:]
    	okfor[ir.OLSH] = okforand[:]
    	okfor[ir.ORSH] = okforand[:]
    
    	// unary
    	okfor[ir.OBITNOT] = okforand[:]
    	okfor[ir.ONEG] = okforarith[:]
    	okfor[ir.ONOT] = okforbool[:]
    	okfor[ir.OPLUS] = okforarith[:]
    
    	// special
    	okfor[ir.OCAP] = okforcap[:]
    	okfor[ir.OLEN] = okforlen[:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top