Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for Scalar (0.14 sec)

  1. tensorflow/c/c_api_test.cc

    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

    cond: A Tensor. If the tensor is a scalar of non-boolean type, the
        scalar is converted to a boolean according to the
        following rule: if the scalar is a numerical value, non-zero means
        True and zero means False; if the scalar is a string, non-empty
        means True and empty means False. If the tensor is not a scalar,
        being empty means False and being non-empty means True.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        }
      }
      return indexes;
    }
    
    // Creates a slice of the tensorlist `input_list`, starting from
    // [start_index, 0, ...0], with size [size, -1, ...-1].
    //
    // Requires that `start_index` and `size` are scalar tensors and
    // `item_position_shape` is a 1-D tensor with only one element equal to the rank
    // of an item in the tensorlist.
    TF::SliceOp CreateSliceOpForTensorList(Location loc, Value input_list,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  4. src/runtime/mbitmap.go

    // described by bitmaps with 1 bit per pointer-sized word. A "1" bit
    // means the word is a live pointer to be visited by the GC (referred to
    // as "pointer"). A "0" bit means the word should be ignored by GC
    // (referred to as "scalar", though it could be a dead pointer value).
    //
    // Heap bitmaps
    //
    // The heap bitmap comprises 1 bit for each pointer-sized word in the heap,
    // recording whether a pointer is stored in that word or not. This bitmap
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/compiler/jit/mark_for_compilation_pass_test.cc

    TEST(XlaCompilationTest, HalfSupported) {
      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
      {
        GraphDefBuilder builder(GraphDefBuilder::kFailImmediately);
        Tensor t(DT_HALF, TensorShape());
        t.scalar<Eigen::half>()() = static_cast<Eigen::half>(0.0f);
        Node* a = ops::SourceOp("Const", builder.opts()
                                             .WithName("A")
                                             .WithAttr("dtype", DT_HALF)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 10:11:10 UTC 2024
    - 79.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/decompose_resource_ops.mlir

        tf_device.return
      }) : () -> ()
      func.return
    }
    
    // Test that tf.ResourceScatterAdd operation is decomposed to
    // tf.TensorScatterAdd. Updates is scalar.
    // CHECK-LABEL: @decompose_ResourceScatterAdd_op_with_scalar_updates
    func.func @decompose_ResourceScatterAdd_op_with_scalar_updates(%resource : tensor<*x!tf_type.resource>, %indices : tensor<?xi32>, %updates: tensor<i32>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/deadness_analysis.cc

          TF_RETURN_IF_ERROR(GetNodeAttr(node->def(), "value", &proto));
    
          Tensor tensor(proto->dtype());
          TF_RET_CHECK(tensor.FromProto(*proto));
    
          *predicate = tensor.scalar<bool>()() ? MakeTrue() : MakeFalse();
          return absl::OkStatus();
        }
    
        SignatureForSymbol signature = {tensor_id, must_be_true};
        auto it = interned_symbol_instances_.find(signature);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 60.4K bytes
    - Viewed (0)
  9. src/runtime/mgcmark.go

    	if n > maxObletBytes {
    		// Large object. Break into oblets for better
    		// parallelism and lower latency.
    		if b == s.base() {
    			// Enqueue the other oblets to scan later.
    			// Some oblets may be in b's scalar tail, but
    			// these will be marked as "no more pointers",
    			// so we'll drop out immediately when we go to
    			// scan those.
    			for oblet := b + maxObletBytes; oblet < s.base()+s.elemsize; oblet += maxObletBytes {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/mark_for_compilation_pass.cc

      // node -- a NoOp node that only the Sink node control depends on.
      bool IsSinkLike(const Cluster& cluster);
    
      // Returns true if `cluster` looks like an "i++" operation on an integer
      // scalar resource variable.
      bool IsScalarIntegerResourceOperation(const Cluster& cluster);
    
      // ---------------------------------------------------------------------------
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
Back to top