Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 303 for legality (0.13 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc

     public:
      BFloat16TypeConverter() {
        addConversion([](const Type type) -> Type {
          return IsLargeFloatType(type) ? ToBfloat16Type(type) : type;
        });
      }
    };
    
    // This helper function makes legality check easier. Both convert ops in the
    // patterns below are considered legal:
    //  - `BitcastConvertOp` (i32 -> f32) + `ConvertOp` (f32 -> bf16)
    //  - `ConvertOp` (bf16 -> f32) -> `BitcastConvertOp` (f32 -> i32)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc

    auto *mlir_failed_legalization_count = tensorflow::monitoring::Counter<2>::New(
        "/tensorflow/core/tf2xla/v1/mlir_failed_xla_legalize_tf_pass_count",
        "Counts the failure of legalization of ops", "op_name", "legality");
    
    class LegalizeTF : public impl::LegalizeTFBase<LegalizeTF> {
     public:
      explicit LegalizeTF(bool legalize_chlo,
                          std::optional<StringRef> tf2xla_fallback_device_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      // attached to a TF Device operation.
      bool isLegalToInline(Region* dest, Region* src, bool wouldBeCloned,
                           IRMapping& valueMapping) const final {
        return true;
      }
    
      // Defines the legality of inlining TF Device operations into a region.
      bool isLegalToInline(Operation* call, Region*, bool, IRMapping&) const final {
        return true;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  4. pkg/test/loadbalancersim/locality/locality.go

    //  limitations under the License.
    
    package locality
    
    import (
    	"fmt"
    	"strings"
    )
    
    type Instance struct {
    	Zone   string
    	Region string
    }
    
    func (l Instance) String() string {
    	return fmt.Sprintf("%s/%s", l.Region, l.Zone)
    }
    
    func Parse(s string) Instance {
    	parts := strings.Split(s, "/")
    	if len(parts) != 2 {
    		panic("invalid locality string: " + s)
    	}
    	return Instance{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 27 20:55:37 UTC 2022
    - 979 bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/mark_for_compilation_pass.cc

            //  b. A and B cannot be placed in the same cluster.
            //  c. There is no path from B to A in the cycles graph (but there may
            //     be a path from A to B).
            //
            // So check the legality of the edge contraction by checking if any of
            // the n^2 pairs of resource variable operations are forbidden.
            if (unsafe_resource_deps_.contains(
                    {resource_var_from, resource_var_to})) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/legalize-tf-while.mlir

    // RUN: tf-opt --tfl-legalize-tf-while %s -o - | FileCheck %s
    // RUN: tf-opt --tfl-legalize-tf-while %s -o - --tfl-legalize-tf-while --inline='default-pipeline=''' | FileCheck %s --check-prefix=INLINE
    // RUN: tf-opt --tfl-legalize-tf-while %s -o - --tfl-legalize-tf-while --inline | FileCheck %s --check-prefix=CANON
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. releasenotes/notes/locality-service.yaml

    apiVersion: release-notes/v2
    kind: feature
    area: traffic-management
    releaseNotes:
      - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 07 21:53:05 UTC 2023
    - 218 bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/legalize-tf-variables.mlir

    // RUN: tf-opt %s -split-input-file -tfl-legalize-variables-tf --cse | FileCheck %s
    
    // Test for case with no session initialize op.
    module attributes {tf_saved_model.semantics} {
      // CHECK-LABEL: serving_default
      func.func @serving_default(%arg0: tensor<1x10xf32> {tf_saved_model.index_path = ["x"]}) ->
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize-stablehlo-vhlo.mlir

    // RUN: odml-to-stablehlo-opt %s --stablehlo-legalize-vhlo -split-input-file | FileCheck %s
    // RUN: odml-to-stablehlo-opt --stablehlo-legalize-vhlo %s | odml-to-stablehlo-opt --vhlo-legalize-stablehlo > %t.0
    // RUN: odml-to-stablehlo-opt %s > %t.1
    // RUN: diff %t.0 %t.1
    
    // CHECK-LABEL: op_tfl
    func.func @op_tfl(%arg0 : tensor<f32>) -> (tensor<f32>) {
      // CHECK: %0 = tfl.add %arg0, %arg0 {fused_activation_function = "NONE"} : tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 07 22:39:35 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/legalize-tf-assert.mlir

    // RUN: tf-opt %s -tfl-legalize-tf='preserve-assert-op=true' | FileCheck %s --dump-input=fail
    
    func.func @preserve_assert(%arg0: tensor<1xi32>, %arg1: tensor<1xi32>) -> tensor<1xi1> {
      %0 = "tf.LessEqual"(%arg0, %arg1) : (tensor<1xi32>, tensor<1xi32>) -> tensor<1xi1>
      "tf.Assert"(%0, %arg1) {summarize = 3} : (tensor<1xi1>, tensor<1xi32>) -> ()
      func.return %0 : tensor<1xi1>
      // CHECK-LABEL: preserve_assert
      // CHECK: tfl.less_equal
      // CHECK: Assert
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 14:24:59 UTC 2022
    - 481 bytes
    - Viewed (0)
Back to top