Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for Memcpy (0.07 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc

          TF_RETURN_IF_ERROR(
              tensorflow::XLAShapeToTensorShape(xla_literal->shape(), &shape));
          tensorflow::Tensor tensor(data_type, shape);
          std::memcpy(static_cast<char*>(tensor.data()),
                      xla_literal->untyped_data(),
                      xla::ShapeUtil::ByteSizeOfPrimitiveType(
                          xla_literal->shape().element_type()) *
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 01:03:21 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  2. src/slices/slices_test.go

    	}
    
    	if !Equal(original, copy) {
    		t.Errorf("original slice has changed, got %v, want %v", original, copy)
    	}
    
    	if !Equal(mem, memcopy) {
    		// Changing the original tail s[len(s):cap(s)] is unwanted
    		t.Errorf("original backing memory has changed, got %v, want %v", mem, memcopy)
    	}
    }
    
    func TestReplaceClearTail(t *testing.T) {
    	a, b, c, d, e, f := 1, 2, 3, 4, 5, 6
    	mem := []*int{&a, &b, &c, &d, &e, &f}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top