Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 569 for casts (0.32 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    				},
    			},
    		},
    	}
    	for _, tc := range cases {
    		for _, op := range tc.opts {
    			for _, typ := range tc.costs {
    				t.Run(typ.comparableLiteral+op, func(t *testing.T) {
    					e := typ.comparableLiteral + op
    					testCost(t, e, typ.expectedEstimatedCost, typ.expectedRuntimeCost)
    				})
    			}
    		}
    	}
    }
    
    func TestIndexOfCost(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/prepare_patterns.td

    //===----------------------------------------------------------------------===//
    // Op quantization pass-through patterns.
    //===----------------------------------------------------------------------===//
    // Casts result type of $1 to a quantized type by using the quantization
    // parameters from the type in $0.
    class UpdateShapeWithAxis<int i> : NativeCodeCall<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/quantize_passes.cc

      pm.addNestedPass<mlir::func::FuncOp>(
          mlir::quant::CreateReplaceCastHacksWithTFXLAOpsPass());
      pm.addNestedPass<mlir::func::FuncOp>(mlir::createCSEPass());
      // Use optimize pass to remove double casts that are inserted when inlining
      // functions.
      pm.addNestedPass<mlir::func::FuncOp>(mlir::quant::CreateOptimizePass());
    }
    
    }  // namespace quantization
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tf_tfl_passes.cc

      pass_manager->addPass(
          mlir::tf_saved_model::CreateOptimizeGlobalTensorsPass());
    
      if (pass_config.shape_inference) {
        // Add a shape inference pass to optimize away the unnecessary casts.
        pass_manager->addPass(mlir::TF::CreateTFShapeInferencePass());
      }
    
      // Legalize while early to allow further constant folding.
      // TODO(jpienaar): This may not actually matter as we do canonicalization
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

                IsCompatibleTypeWithTFLCastOp(type)) {
              auto cast = b.create<CastOp>(yield_op->getLoc(), type, value);
              args.push_back(cast);
            } else {
              auto cast = b.create<TF::CastOp>(yield_op->getLoc(), type, value);
              args.push_back(cast);
            }
          }
        }
        args.append(new_args.begin(), new_args.end());
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. tensorflow/c/tf_tensor.cc

    #include "tensorflow/core/framework/tensor_shape.h"
    #include "tensorflow/core/framework/tensor_shape.pb.h"
    #include "tensorflow/core/framework/types.pb.h"
    #include "tensorflow/core/lib/core/coding.h"
    #include "tensorflow/core/platform/casts.h"
    
    using tensorflow::Status;
    using tensorflow::Tensor;
    using tensorflow::TensorBuffer;
    using tensorflow::errors::FailedPrecondition;
    using tensorflow::errors::InvalidArgument;
    
    #ifndef LIBTPU_EXCLUDE_C_API_IMPL
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/passes.h

    // output model of this pass is expected to be ready for the TF quantizer.
    std::unique_ptr<OperationPass<ModuleOp>> CreateConvertTpuModelToCpuPass();
    
    // Creates a pass that casts BFloat16 operations to Float32 operations. This
    // pass is a part of the ConvertTpuModelToCpu pass to support BF16 optimized TPU
    // model quantization.
    std::unique_ptr<OperationPass<ModuleOp>> CreateCastBf16OpsToF32Pass();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

             llvm::all_of(op->getOperands(), IsQintValueDefinedByIntToQintCast);
    }
    
    bool IsCastOpLegal(TF::CastOp cast_op) {
      // Consider qint <-> qint casts illegal.
      if (IsIllegalType(cast_op.getSrcT()) && IsIllegalType(cast_op.getDstT())) {
        return false;
      }
      // Consider CastOp illegal if either of its Src/Dst type is qint and is
      // connected to a non-UQ op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc

    #include "tensorflow/compiler/mlir/lite/utils/const_tensor_utils.h"
    
    #include <cassert>
    #include <cstddef>
    #include <cstdint>
    #include <limits>
    #include <string>
    #include <vector>
    
    #include "absl/base/casts.h"
    #include "absl/status/status.h"
    #include "absl/strings/str_cat.h"
    #include "Eigen/Core"  // from @eigen_archive
    #include "llvm/ADT/APInt.h"
    #include "llvm/ADT/SmallVector.h"
    #include "llvm/ADT/bit.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc

    #include "tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.h"
    
    #include <cstdint>
    #include <limits>
    #include <optional>
    #include <string>
    #include <vector>
    
    #include "absl/base/casts.h"
    #include "absl/container/inlined_vector.h"
    #include "absl/strings/str_cat.h"
    #include "absl/strings/string_view.h"
    #include "llvm/ADT/APFloat.h"
    #include "llvm/ADT/ArrayRef.h"
    #include "llvm/ADT/SmallVector.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 20.5K bytes
    - Viewed (0)
Back to top