Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Scalar (0.12 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/c/c_api_function_test.cc

      Run({{func_feed, Int32Tensor(3)}}, func_op, 2 + 3);
      VerifyFDef(
          {"add_0", "scalar"}, M({{"feed1"}, {"feed2"}}), M({{"add"}}),
          {{"feed1", "add_0:0"}, {"feed2", "add_0:1"}, {"add_0:sum:0", "add"}},
          {{"^scalar", "add_0:2"}});
    }
    
    TEST_F(CApiFunctionTest, ControlDependencyOutsideOfBody) {
      /*
       *                  |  |    scalar
       *                  |  |    .
       *                  v  v   . <---- control dependency
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  4. tensorflow/c/kernels_test.cc

        p.op_kernel = kernel.get();
        OpKernelContext ctx(&p);
        kernel->Compute(&ctx);
    
        ASSERT_EQ(2, num_inputs);
        ASSERT_EQ(1, num_outputs);
        ASSERT_EQ(123, ctx.mutable_output(0)->scalar<tensorflow::uint8>()());
      }
    }
    
    TEST(TestKernel, DeleteKernelBuilderIsOkOnNull) {
      TF_DeleteKernelBuilder(nullptr);
    }
    
    std::string ExpectedString(const char* type) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top