Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 3,659 for casts (0.29 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc

      func.setVisibility(mlir::func::FuncOp::Visibility::Public);
      auto func_builder = OpBuilder::atBlockBegin(func.addEntryBlock());
      func_builder.create<mlir::func::ReturnOp>(func.getLoc());
      // In cases where there is a session initializer op with empty initializer,
      // replace the session initializer with the new one that points to the session
      // initializer func.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc

        // This is the argument used to refer to the pass in
        // the textual format (on the commandline for example).
        return "quant-replace-cast-hacks-with-tf-xla-ops";
      }
      StringRef getDescription() const final {
        // This is a brief description of the pass.
        return "Replace mixed-type Conv and Matmul cast hacks with TF XLA ops.";
      }
    
      void runOnOperation() override;
    };
    
    // Generates params for the XLA Convolution op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/lower_tf.mlir

    // CHECK-DAG:       %[[CST1:.*]] = "tf.Const"() <{value = dense<0> : tensor<1x24xi32>}> : () -> tensor<1x24xi32>
    // CHECK:           %[[CAST0:.*]] = "tf.Cast"(%arg0) <{Truncate = false}> : (tensor<1x24xi1>) -> tensor<1x24xi32>
    // CHECK:           %[[CAST1:.*]] = "tf.Cast"(%arg2) <{Truncate = false}> : (tensor<1x2xi1>) -> tensor<1x2xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 18:35:42 UTC 2024
    - 92K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc

      const bool has_variant_input = llvm::any_of(op->getOperands(), [](Value val) {
        return val.getType().cast<TensorType>().getElementType().isa<VariantType>();
      });
      const bool has_variant_output =
          llvm::any_of(op->getResultTypes(), [](Type t) {
            return t.cast<TensorType>().getElementType().isa<VariantType>();
          });
      return has_variant_input || has_variant_output;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/python/saved_model_to_tfl_flatbuffer.cc

        if (auto tf_attrs =
                func->getAttrOfType<mlir::DictionaryAttr>("tf.entry_function")) {
          // TODO(b/184697652): There could be multiple entry functions. Let's
          // handle such cases if there are any needs for that.
          if (entry_function != nullptr) {
            return errors::InvalidArgument(
                "There should be only one tf.entry_function");
          }
          entry_function = func;
        }
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types_test.go

    		}
    	}
    }
    
    func TestVerbsJsonIterUnmarshalJSON(t *testing.T) {
    	cases := []struct {
    		input  string
    		result APIResource
    	}{
    		{`{}`, APIResource{}},
    		{`{"verbs":null}`, APIResource{}},
    		{`{"verbs":[]}`, APIResource{Verbs: Verbs([]string{})}},
    		{`{"verbs":["delete"]}`, APIResource{Verbs: Verbs([]string{"delete"})}},
    	}
    
    	for i, c := range cases {
    		var result APIResource
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 16:49:23 UTC 2021
    - 4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_test.go

    }
    
    func TestMicroTimeMarshalYAML(t *testing.T) {
    	cases := []struct {
    		input  MicroTime
    		result string
    	}{
    		{MicroTime{}, "t: null\n"},
    		{DateMicro(1998, time.May, 5, 1, 5, 5, 50, time.FixedZone("test", -4*60*60)), "t: \"1998-05-05T05:05:05.000000Z\"\n"},
    		{DateMicro(1998, time.May, 5, 5, 5, 5, 0, time.UTC), "t: \"1998-05-05T05:05:05.000000Z\"\n"},
    	}
    
    	for _, c := range cases {
    		input := MicroTimeHolder{c.input}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go

    	T Time `json:"t"`
    }
    
    func TestTimeMarshalYAML(t *testing.T) {
    	cases := []struct {
    		input  Time
    		result string
    	}{
    		{Time{}, "t: null\n"},
    		{Date(1998, time.May, 5, 1, 5, 5, 50, time.FixedZone("test", -4*60*60)), "t: \"1998-05-05T05:05:05Z\"\n"},
    		{Date(1998, time.May, 5, 5, 5, 5, 0, time.UTC), "t: \"1998-05-05T05:05:05Z\"\n"},
    	}
    
    	for _, c := range cases {
    		input := TimeHolder{c.input}
    		result, err := yaml.Marshal(&input)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. tools/istio-iptables/pkg/config/validation_test.go

    		},
    	}
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			err := ValidateOwnerGroups(tc.include, tc.exclude)
    			assert.NoError(t, err)
    		})
    	}
    }
    
    func TestValidateOwnerGroups_Invalid(t *testing.T) {
    	cases := []struct {
    		name    string
    		include string
    		exclude string
    	}{
    		{
    			name:    "capture 65 groups",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 11 02:38:28 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. src/math/dim_amd64.s

    #define NegInf 0xFFF0000000000000
    
    // func ·archMax(x, y float64) float64
    TEXT ·archMax(SB),NOSPLIT,$0
    	// +Inf special cases
    	MOVQ    $PosInf, AX
    	MOVQ    x+0(FP), R8
    	CMPQ    AX, R8
    	JEQ     isPosInf
    	MOVQ    y+8(FP), R9
    	CMPQ    AX, R9
    	JEQ     isPosInf
    	// NaN special cases
    	MOVQ    $~(1<<63), DX // bit mask
    	MOVQ    $PosInf, AX
    	MOVQ    R8, BX
    	ANDQ    DX, BX // x = |x|
    	CMPQ    AX, BX
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 15:48:19 UTC 2021
    - 1.9K bytes
    - Viewed (0)
Back to top