Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 82 for build_list (0.15 sec)

  1. tensorflow/compiler/mlir/tfr/tests/canonicalize.mlir

      %0 = "arith.constant"() {value = 42 : i32} : () -> i32
      %1 = "arith.constant"() {value = 41 : i32} : () -> i32
      %2 = "tfr.build_list"(%0, %1) : (i32, i32) -> !tfr.attr
      %3 = "tfr.build_list"(%0, %1) : (i32, i32) -> !tfr.attr
      %4 = "tfr.build_list"(%2, %3) : (!tfr.attr, !tfr.attr) -> !tfr.attr
      func.return %4 : !tfr.attr
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/tests/decompose.mlir

    // CHECK-NEXT: %[[bl:.*]] = "tfr.build_list"(%[[id1]], %[[id2]]) : (!tfr.tensor, !tfr.tensor) -> !tfr.tensor_list
    // CHECK-NEXT: tfr.return %[[bl]] : !tfr.tensor_list
    }
    
    // CHECK-LABEL: @tf__my_max_pool
    tfr.func @tf__my_max_pool(%input_: !tfr.tensor, %stride_w: i64{tfr.name="stride_w"}, %stride_h: i64{tfr.name="stride_h"}) -> (!tfr.tensor) {
      %cst_1 = arith.constant 1 : i64
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/tests/ops.mlir

      %0 = tfr.get_element %arg0[%cst] : (!tfr.tensor_list<T>, index) -> !tfr.tensor
      func.return %0 : !tfr.tensor
    }
    
    // -----
    
    // CHECK-LABEL: build_list
    func.func @build_list(%arg0: !tfr.tensor<A>, %arg1: !tfr.tensor<B>) -> !tfr.tensor_list {
      %0 = "tfr.build_list"(%arg0, %arg1) : (!tfr.tensor<A>, !tfr.tensor<B>) -> !tfr.tensor_list
      func.return %0 : !tfr.tensor_list
    }
    
    // -----
    
    // CHECK-LABEL: quant_act_range
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jan 14 22:15:06 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/python/tfr_gen_test.py

          CHECK:        %[[list:.*]] = "tfr.build_list"(%[[qparam]]#0, %[[qparam]]#0) : (!tfr.tensor, !tfr.tensor) -> !tfr.tensor_list
          CHECK:        %[[factor:.*]] = tfr.quant_scale_factor(%{{.*}}, %[[list]]) : (f32, !tfr.tensor_list) -> (!tfr.tensor)
          CHECK:        %[[list1:.*]] = "tfr.build_list"(%[[factor]]) : (!tfr.tensor) -> !tfr.tensor_list
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 13 16:33:28 UTC 2021
    - 28.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

      }];
    }
    
    def TFR_BuildListOp : TFR_Op<"build_list", [Pure]> {
      let description = [{
       The `build_list` operation builds a tensor list from a list of tensors, or
       an tfr.attr from a list of scalars.
    
        Example:
    
        ```mlir
        %3 = tfr.build_list(%2, %1, %0) :
          (tfr.tensor, tfr.tensor, tfr.tensor) -> tfr.tensor_list
        %3 = tfr.build_list(%2, %1, %0) : (i32, i32, i32) -> tfr.attr
        ```
      }];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/tests/raise_to_tf.mlir

      %0 = "tfr.cast"(%arg0) : (tensor<f32>) -> !tfr.tensor
      %1 = "tfr.cast"(%arg1) : (tensor<f32>) -> !tfr.tensor
      %2 = "tfr.cast"(%arg2) : (tensor<f32>) -> !tfr.tensor
      %3 = "tfr.build_list"(%0, %1, %2) : (!tfr.tensor, !tfr.tensor, !tfr.tensor) -> !tfr.tensor_list
      %concat = tfr.call @tf__risc_concat(%3) : (!tfr.tensor_list) -> !tfr.tensor
      %4 = "tfr.cast"(%concat) : (!tfr.tensor) -> tensor<3xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

                                     derived_attrs))) {
            return failure();
          }
          continue;
        }
    
        // 2. The preceding op is a tfr.build_list op, which collects multiple
        // values with tensor types via the tfr.cast ops. These ops will be fused
        // to the current op as well, so all the tfr.cast op inputs will be inputs
        // to the result op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/passes/decompose.cc

        // Create the new operands. This is mapping the operands from the target
        // TF ops to the TFR function arguments. If the TFR function argument is
        // a tensor_list, a "tfr.build_list" op is used to concat the available
        // TF op operands. If the TFR function argument isn't a tensor/tensor_list,
        // a constant is created by using the attribute stored in the TF op or the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modload/buildlist.go

    		mg.buildList = slices.Clip(mg.g.BuildList())
    	})
    	return mg.buildList
    }
    
    func (mg *ModuleGraph) findError() error {
    	errStack := mg.g.FindPath(func(m module.Version) bool {
    		_, err := mg.loadCache.Get(m)
    		return err != nil && err != par.ErrCacheEntryNotFound
    	})
    	if len(errStack) > 0 {
    		_, err := mg.loadCache.Get(errStack[len(errStack)-1])
    		var noUpgrade func(from, to module.Version) bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

            # as attribute.
            val, ty = self._index_to_I64(val, ty)
          vals.append(val)
          tys.append(str(ty))
    
        list_val = self._ssa_name('list')
        self.emit('\n{} = "tfr.build_list"({})'.format(list_val, ', '.join(vals)))
        self._emit_with_loc(' : ({}) -> {}'.format(', '.join(tys), out_type), node)
        return (list_val, out_type)
    
      def visit_Tuple(self, node):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
Back to top