Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 89 for emitError (0.14 sec)

  1. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

          } else if (Type element_type =
                         GetFixedElementType(attr_key.getValue(), builder)) {
            output_types->push_back(UnrankedTensorType::get(element_type));
          } else {
            emitError(loc) << "type " << attr_key.getValue()
                           << " can't be resolved for the signature of the op";
            return failure();
          }
          continue;
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

          if (!llvm::is_contained(device_var_reads_indices, it.index()) &&
              !llvm::is_contained(device_var_updates_indices, it.index())) {
            return execute_launch.GetBody().front().emitError("operand #")
                   << it.index()
                   << " is a resource that was neither read nor written to; this "
                      "resource potentially failed to be hoisted";
          }
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc

            std::string err_msg;
            llvm::raw_string_ostream os(err_msg);
            for (unsigned i = 0; i < op->getNumResults(); ++i)
              os << " " << i << ":" << results.GetConstraint(op->getResult(i));
            op->emitError(llvm::formatv(
                "failed to propagate results constraints:{0}", os.str()));
          }
          return failure();
        }
    
        // Update results constraints based on inferred operands constraints.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

        tile_assignment_rank -= sharding->last_tile_dims_size();
    
        if (tensor_rank < tile_assignment_rank) {
          if (partitioned_op) {
            partitioned_op->emitError()
                << "tensor of type " << ranked_type << " (rank=" << tensor_rank
                << ") sharded in " << (tile_assignment_rank - tensor_rank)
                << " extra dimension(s) by: " << sharding->DebugString();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

        if (HasWeightOnlyPtqMethod(op) && !IsHybridQuantizedOp(op)) {
          return failure();
        }
    
        func::FuncOp entry_func_op = GetEntryFuncOp(op, SymbolTable(module_op));
        if (!entry_func_op) {
          op->emitError("Failed to find a valid entry function.");
          return failure();
        }
        Method quantization_method = GetQuantizationMethodOrDefault(op);
        return FuncBodyRewritePatternT(enable_per_channel_quantized_weight_)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

        const llvm::SmallPtrSetImpl<Block*>& control_flow_blocks, bool is_clone) {
      MLIRContext* context = module.getContext();
      if (!llvm::hasSingleElement(func.getBody()))
        return func.emitError()
               << "'" << FuncOp::getOperationName()
               << "' ops with more than one block are not supported";
    
      bool rewrite_block =
          is_clone || (!func.isPublic() && !func.symbolKnownUseEmpty(module));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

            if (Operation* quantize_op = dyn_cast_or_null<QuantizeOpT>(
                    *quantized_op->getResult(i).getUsers().begin())) {
              result = quantize_op->getResult(0);
            } else {
              quantized_op->emitError()
                  << "Output[" << i
                  << "] is expected to have only one user [QUANTIZE]";
              return;
            }
          } else {
            result = quantized_op->getResult(i);
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  8. src/os/exec/exec_test.go

    		// resulting error should be an exec.ExitError without additional wrapping.
    		if _, ok := err.(*exec.ExitError); !ok {
    			t.Errorf("Wait error = %v; want *exec.ExitError", err)
    		}
    	})
    
    	// If Cancel returns ErrProcessDone but the process is not actually done
    	// (and has to be killed), Wait should report the usual SIGKILL ExitError,
    	// not the error from Cancel.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  9. src/os/exec/exec.go

    		// set it to nil to prevent awaitGoroutines from blocking on it.
    		c.goroutineErr = nil
    	}
    
    	resultc <- ctxResult{err: err}
    }
    
    // An ExitError reports an unsuccessful exit by a command.
    type ExitError struct {
    	*os.ProcessState
    
    	// Stderr holds a subset of the standard error output from the
    	// Cmd.Output method if standard error was not otherwise being
    	// collected.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  10. pkg/volume/csi/csi_block_test.go

    	_, err = csiMapper.SetUpDevice()
    	if err == nil {
    		t.Errorf("test should fail, but no error occurred")
    	} else if reflect.TypeOf(transientError) != reflect.TypeOf(err) {
    		t.Fatalf("expected exitError type: %v got: %v (%v)", reflect.TypeOf(transientError), reflect.TypeOf(err), err)
    	}
    }
    
    func TestBlockMapperMapPodDevice(t *testing.T) {
    	plug, tmpDir := newTestPlugin(t, nil)
    	defer os.RemoveAll(tmpDir)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 26.5K bytes
    - Viewed (0)
Back to top