Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 431 for Scalar (3.34 sec)

  1. src/html/template/js_test.go

    		{"+ADw-script+AD4-alert(1)+ADw-/script+AD4-",
    			`\u002bADw-script\u002bAD4-alert(1)\u002bADw-\/script\u002bAD4-`,
    		},
    		// Invalid UTF-8 sequence
    		{"foo\xA0bar", "foo\xA0bar"},
    		// Invalid unicode scalar value.
    		{"foo\xed\xa0\x80bar", "foo\xed\xa0\x80bar"},
    	}
    
    	for _, test := range tests {
    		esc := jsStrEscaper(test.x)
    		if esc != test.esc {
    			t.Errorf("%q: want %q got %q", test.x, test.esc, esc)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 02:20:11 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. tensorflow/c/while_loop_test.cc

      params_->body_outputs[1] = inner_outputs[1];
    
      // Finalize outer graph
      ExpectOK();
    
      // Check for a few expected nodes
      const char* node_name = "test_loop/cond/scalar";
      EXPECT_TRUE(TF_GraphOperationByName(graph_, node_name) != nullptr);
      node_name = "test_loop/body/add";
      EXPECT_TRUE(TF_GraphOperationByName(graph_, node_name) != nullptr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 06:05:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/tests/ops.mlir

      func.return %1 : !tfr.tensor
    }
    
    // -----
    
    func.func @constant_tensor_invalid_0(%arg0: i32) -> tensor<f32> {
        // expected-error@+1 {{input and output should have the same scalar types.}}
      %0 = "tfr.constant_tensor"(%arg0) : (i32) -> tensor<f32>
      func.return %0 : tensor<f32>
    }
    
    // -----
    
    func.func @constant_tensor_invalid_1(%arg0: vector<1xi32>) -> tensor<?xi32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jan 14 22:15:06 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types/type.go

    	return t.IsInterface() && len(t.AllMethods()) == 0
    }
    
    // IsScalar reports whether 't' is a scalar Go type, e.g.
    // bool/int/float/complex. Note that struct and array types consisting
    // of a single scalar element are not considered scalar, likewise
    // pointer types are also not considered scalar.
    func (t *Type) IsScalar() bool {
    	switch t.kind {
    	case TBOOL, TINT8, TUINT8, TINT16, TUINT16, TINT32,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.td

    include "tensorflow/compiler/mlir/tensorflow/transforms/rewrite_util.td"
    
    def NonScalarRankedType : Type<And<[Neg<HasAnyRankOfPred<[0]>>, HasRankPred]>,
                             "Non scalar type">;
    
    def HasSingleElement: Constraint<CPred<"($0.size() == 1)">>;
    
    def EmptyList: NativeCodeCall<"llvm::SmallVector<mlir::Value>{}">;
    
    // Creates a tf.ReadVariable op that reads a resource `$2` that has the same
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.td

      let description = [{
        This op loads a restored variable tensor as a tensor future. It is a
        replacement of `tf.ReadVariableOp`.
    
        This op returns a scalar string tensor containing the restored variable name, which can be
        used as a key within the runtime, as well as a future for the tensor.
    
        The `tf.IfrtCall` kernel uses the output $array_key.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultAttributesSchemaTest.groovy

    class DefaultAttributesSchemaTest extends Specification {
        def schema = new DefaultAttributesSchema(TestUtil.instantiatorFactory(), SnapshotTestUtil.isolatableFactory())
    
        def "can create an attribute of scalar type #type"() {
            when:
            Attribute.of('foo', type)
    
            then:
            noExceptionThrown()
    
            where:
            type << [
                String,
                Number,
                MyEnum,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_experimental.h

    // Platform-specific implementation to return an unused port. (This should used
    // in tests only.)
    TF_CAPI_EXPORT int TF_PickUnusedPortOrDie(void);
    
    // Fast path method that makes constructing a single scalar tensor require less
    // overhead and copies.
    TF_CAPI_EXPORT extern TFE_TensorHandle* TFE_NewTensorHandleFromScalar(
        TF_DataType data_type, void* data, size_t len, TF_Status* status);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      %0 = "tf.Const"() { value = dense<1> : tensor<i32> } : () -> tensor<i32>
      // Mul of a tensor and a scalar const.
      %1 = "tf.Mul"(%arg0, %arg2) : (tensor<?x1xf32>, tensor<f32>) -> tensor<?x1xf32>
      %2 = "tf.Mul"(%arg1, %arg3) : (tensor<?x1xf32>, tensor<f32>) -> tensor<?x1xf32>
      // Add of a scalar const and a tensor.
      %3 = "tf.AddV2"(%arg2, %1) : (tensor<f32>, tensor<?x1xf32>) -> tensor<?x1xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

        TFR_TensorType.predicate,
        TFR_TensorListType.predicate]>, "all tensor related types">;
    
    // attribute argument types
    def TFR_AttrType : TFR_Type<"TFRAttr">;
    def TFR_AttrScalarType: TypeAlias<TF_ElementType, "scalar attribute">;
    def TFR_AttrVectorType : VectorOf<[TF_ElementType, TFR_AttrType]>;
    def TFR_AllAttrTypes : Type<Or<[
        TFR_AttrType.predicate,
        Index.predicate,
        TFR_AttrScalarType.predicate,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top