Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 85 for num_elements (0.19 sec)

  1. pkg/api/testing/defaulting_test.go

    		{Group: "flowcontrol.apiserver.k8s.io", Version: "v1", Kind: "PriorityLevelConfigurationList"}:             {},
    	}
    
    	f := fuzz.New().NilChance(.5).NumElements(1, 1).RandSource(rand.NewSource(1))
    	f.Funcs(
    		func(s *runtime.RawExtension, c fuzz.Continue) {},
    		func(s *metav1.LabelSelector, c fuzz.Continue) {
    			c.FuzzNoCustom(s)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradients.cc

     public:
      explicit TapeVSpace(AbstractContext* ctx) : ctx_(ctx) {}
      ~TapeVSpace() override {}
    
      // Returns the number of elements in the gradient tensor.
      int64_t NumElements(AbstractTensorHandle* tensor) const override;
    
      // Consumes references to the tensors in the gradient_tensors list and returns
      // a tensor with the result.
      AbstractTensorHandle* AggregateGradients(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/variable_info_util.cc

      result->clear();
      result->reserve(variable_indices.size());
      for (int var_idx : variable_indices) {
        Var* variable = nullptr;
        if (inputs[var_idx]->NumElements() == 0) {
          return errors::InvalidArgument("Empty resource tensor passed  at index ",
                                         var_idx,
                                         " to GetVariableInfosFromInputs.");
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

    }
    
    // -----
    
    func.func @testSetStaticDimensionBounds(%arg0: tensor<?x?xi32>, %arg1: tensor<4xi32>) -> tensor<?x?xi32> {
      // expected-error @below {{'tf.SetStaticDimensionBounds' op static shape must have num_elements == rank of input tensor}}
      %dyn_arg0 = "tf.SetStaticDimensionBounds" (%arg0, %arg1) :(tensor<?x?xi32>, tensor<4xi32>) -> tensor<?x?xi32>
      func.return %dyn_arg0 : tensor<?x?xi32>
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/helpers_test.go

    		}
    	}
    }
    
    func TestResetObjectMetaForStatus(t *testing.T) {
    	meta := &ObjectMeta{}
    	existingMeta := &ObjectMeta{}
    
    	// fuzz the existingMeta to set every field, no nils
    	f := fuzz.New().NilChance(0).NumElements(1, 1).MaxDepth(10)
    	f.Fuzz(existingMeta)
    	ResetObjectMetaForStatus(meta, existingMeta)
    
    	// not all fields are stomped during the reset.  These fields should not have been set. False
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  6. tensorflow/cc/saved_model/bundle_v2.cc

          "SavedModel checkpoint does not contain object graph.");
      if (object_graph_tensor.dtype() != DT_STRING ||
          object_graph_tensor.dims() != 0 ||
          object_graph_tensor.NumElements() != 1) {
        return absl::Status(
            absl::StatusCode::kFailedPrecondition,
            "SavedModel checkpoint object graph was not the correct type.");
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 18:28:37 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  7. tensorflow/cc/experimental/libtf/object.h

        t.reset(imm_t->Resolve(&status));
        if (!status.ok()) {
          return status;
        }
      }
      if (data.size() != t->NumElements()) {
        return tensorflow::errors::InvalidArgument(absl::StrCat(
            "Mismatched number of elements: \n", "Expected: ", data.size(), "\n",
            "Actual: ", t->NumElements(), "\n"));
      }
      memcpy(data.data(), t->Data(), t->ByteSize());
      return ::tensorflow::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 11 08:05:36 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

      mlir::MLIRContext context;
      RegisterDialects(context);
      mlir::Builder b(&context);
    
      // Create the sample tensor to convert.
      Tensor tensor(DT_STRING, TensorShape({1, 2, 2, 1}));
      EXPECT_EQ(4, tensor.NumElements());
      auto Tt = tensor.flat<tstring>();
      Tt.setValues({"one", "two", "three", "four"});
      auto value_or_status = ConvertTensor(tensor, &b);
      ASSERT_TRUE(value_or_status.ok());
      auto attr = value_or_status.value();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/test/api_meta_help_test.go

    		}
    	}
    }
    
    func TestSetExtractListRoundTrip(t *testing.T) {
    	scheme := runtime.NewScheme()
    	codecs := serializer.NewCodecFactory(scheme)
    	fuzzer := fuzz.New().NilChance(0).NumElements(1, 5).Funcs(metafuzzer.Funcs(codecs)...).MaxDepth(10)
    	for i := 0; i < 5; i++ {
    		start := &testapigroup.CarpList{}
    		fuzzer.Fuzz(&start.Items)
    
    		list, err := meta.ExtractList(start)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  10. src/cmd/link/internal/wasm/asm.go

    func writeTableSec(ctxt *ld.Link, fns []*wasmFunc) {
    	sizeOffset := writeSecHeader(ctxt, sectionTable)
    
    	numElements := uint64(funcValueOffset + len(fns))
    	writeUleb128(ctxt.Out, 1)           // number of tables
    	ctxt.Out.WriteByte(0x70)            // type: anyfunc
    	ctxt.Out.WriteByte(0x00)            // no max
    	writeUleb128(ctxt.Out, numElements) // min
    
    	writeSecSize(ctxt, sizeOffset)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top